/**
* Theme Name:        avanam-medico
* Theme URI:         https://templatemela.com/
* Template:          avanam
* Author:            TemplateMela
* Author URI:        #
* Description:       This is a child theme of Avanam, generated by TemplateMela.
* Version:           1.0.0
* License:           GNU General Public License v3.0 (or later)
* License URI:       https://www.gnu.org/licenses/gpl-3.0.html
* Text Domain:       avanam-medico
* Requires at least: 6.2
* Tested up to:      6.6
* Requires PHP:      7.4
* Tags: translation-ready, two-columns, right-sidebar, left-sidebar, footer-widgets, blog, custom-logo, custom-background, custom-menu, rtl-language-support, editor-style, threaded-comments, custom-colors, featured-images, wide-blocks, full-width-template, theme-options, e-commerce

*/

/* Bulk Enquiry button — same row as cart icon */
.product-action-wrap {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
}

.product-action-wrap a:not(.bulk-enquiry-btn) {
    order: 1;
}

.product-action-wrap .bulk-enquiry-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 10px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    white-space: nowrap !important;
    height: 38px !important;
    letter-spacing: 0.3px;
    width: auto !important;
    flex-shrink: 0;
    order: 2;
}

/* Icon-only Add to Cart button */
.icon-only-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    font-size: 0 !important;
    line-height: 1 !important;
}

.icon-only-btn i {
    font-size: 16px !important;
    line-height: 1;
}

/* ── Shop / Archive / Page hero banner height ── */
.product-archive-hero-section.entry-hero,
.product-archive-hero-section.entry-hero .entry-hero-container-inner,
.entry-hero:not(.product-archive-hero-section),
.entry-hero:not(.product-archive-hero-section) .entry-hero-container-inner {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.entry-hero.product-archive-hero-section .entry-header,
.entry-hero:not(.product-archive-hero-section) .entry-header {
    min-height: 60px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* ── Exit popup left side image ── */
#exit-popup .popup-container {
    padding: 0 !important;
}
#exit-popup .popup-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 0 !important;
}

/* ── Exit popup left column image ── */
#exit-popup .elementor-element-36f8c6e9 {
    padding: 0 !important;
}
#exit-popup .elementor-element-36f8c6e9 .elementor-widget-image {
    line-height: 0;
}
#exit-popup .elementor-element-36f8c6e9 .elementor-widget-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
}

/* ── Custom payment icons inside plugin's fieldset ── */
.single-product-payments ul {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.single-product-payments ul li {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    padding: 5px 8px !important;
    height: 38px !important;
    box-shadow: 0 1px 2px rgba(0,0,0,.06) !important;
}
.single-product-payments ul li img {
    width: auto !important;
    height: auto !important;
    max-height: 24px !important;
    max-width: 60px !important;
    display: block !important;
    object-fit: contain !important;
}
.single-product-payments ul li.single-product-payments-paypal img { max-height: 30px !important; }
.single-product-payments .title {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    text-align: center !important;
    display: block !important;
}

/* ── Hide number input spinners globally on custom steppers ── */
.ssh-qty-display::-webkit-outer-spin-button,
.ssh-qty-display::-webkit-inner-spin-button,
.ssh-enq-qty-val::-webkit-outer-spin-button,
.ssh-enq-qty-val::-webkit-inner-spin-button { -webkit-appearance: none !important; margin: 0 !important; }
.ssh-qty-display, .ssh-enq-qty-val { -moz-appearance: textfield !important; appearance: textfield !important; }



/* ── Shipping Policy Page ── */
.ssh-policy-content-section {
    padding: 48px 0 64px;
    background: #f8f9fa;
}
.ssh-policy-body {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    padding: 40px 48px;
    font-size: 14px;
    line-height: 1.75;
    color: #374151;
}
.ssh-policy-body h1 { font-size: 22px; font-weight: 700; margin: 0 0 8px; }
.ssh-policy-body h3 { font-size: 15px; font-weight: 700; margin: 24px 0 8px; color: #111827; }
.ssh-policy-body h4 { font-size: 14px; font-weight: 600; margin: 16px 0 6px; color: #1f2937; }
.ssh-policy-body p  { margin: 0 0 10px; }
.ssh-policy-body ul { padding-left: 22px; margin: 6px 0 12px; }
.ssh-policy-body ul li { margin-bottom: 4px; }
.ssh-policy-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin: 16px 0;
    overflow-x: auto;
    display: block;
}
.ssh-policy-body table th,
.ssh-policy-body table td {
    border: 1px solid #d1d5db;
    padding: 10px 14px;
    text-align: center;
    min-width: 120px;
}
.ssh-policy-body table thead tr { background: #e0f2fe; }
.ssh-policy-body table tbody tr:nth-child(even) { background: #f9fafb; }
.ssh-policy-body a { color: #0e9e8e; }
@media (max-width: 640px) {
    .ssh-policy-body { padding: 24px 18px; }
}

/* ── Footer About Information — align icon with wrapped text ── */
.contact-info-container p {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px;
}
.contact-info-container p::before {
    flex-shrink: 0;
    margin-top: 3px;
    vertical-align: top !important;
}

/* ── Warranty submit button ── */
button#ssh-wf-submit,
button#ssh-wf-submit:hover,
button#ssh-wf-submit:focus,
button#ssh-wf-submit:active {
    color: #ffffff !important;
    background: #0e9e8e !important;
}

/* ── My Account page — form layout fixes ── */
.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-form-register {
    max-width: 560px;
    margin: 0 auto;
}

.woocommerce-account .woocommerce-Input,
.woocommerce-account .woocommerce-form input[type="text"],
.woocommerce-account .woocommerce-form input[type="email"],
.woocommerce-account .woocommerce-form input[type="password"] {
    max-width: 100%;
    box-sizing: border-box;
}

/* Password eye icon alignment */
.woocommerce-account .woocommerce-form .show-password-input {
    top: 50%;
    transform: translateY(-50%);
    right: 12px;
    font-size: 16px;
}

.woocommerce-account .woocommerce-form .password-input {
    position: relative;
    display: flex;
    align-items: center;
}

.woocommerce-account .woocommerce-form .password-input input {
    padding-right: 40px;
    width: 100%;
}

/* Hide coupon form on checkout page */
.woocommerce-checkout .woocommerce-form-coupon-toggle,
.woocommerce-checkout .woocommerce-form-coupon,
.woocommerce-checkout .coupon_inner_checkout { display: none !important; }
