/* ================================================
   Custom Enquiry Form (CEQ) - Product Quote Popup
   ================================================ */

/* Popup Container — override Flatsome lightbox-white defaults */
#custom-enquiry-popup {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

#custom-enquiry-popup.lightbox-white {
    padding: 0 !important;
    background: none !important;
}

.mfp-content #custom-enquiry-popup {
    display: block;
}

.ceq-popup {
    background: linear-gradient(180deg, #f7f9f6 0%, #f0f3ee 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    position: relative;
}

/* Hide Flatsome/Magnific default close button when our popup is open */
.mfp-wrap .mfp-close {
    display: none !important;
}

/* CSS fallback when Magnific Popup not available */
#custom-enquiry-popup.ceq-fallback-open {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 11, 11, 0.8) !important;
    z-index: 100002;
    max-width: none !important;
    border-radius: 0 !important;
    transform: none;
    padding: 15px !important;
    box-sizing: border-box;
    margin: 0 !important;
    overflow: hidden !important;
}

#custom-enquiry-popup.ceq-fallback-open .ceq-popup {
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    margin: 0 auto;
}

#custom-enquiry-popup.ceq-fallback-open~.ceq-drawer-backdrop,
body:has(#custom-enquiry-popup.ceq-fallback-open) .ceq-drawer-backdrop {
    display: none;
}

/* Close Button — hardened against Flatsome overrides */
.ceq-close-btn {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    z-index: 10;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    line-height: 32px !important;
    border: none !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
    padding: 0 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.ceq-close-btn:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: rotate(90deg);
}

.ceq-close-btn svg {
    display: block;
}

/* Header */
.ceq-header {
    background: linear-gradient(135deg, #3d5e34 0%, #5a7e4f 50%, #7c9d6d 100%);
    padding: 20px 24px 16px;
    position: relative;
}

.ceq-header-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ceq-header-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    backdrop-filter: blur(8px);
}

.ceq-header-text {
    flex: 1;
    min-width: 0;
}

.ceq-title {
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px;
    margin: 0 !important;
    padding: 0 !important;
    text-transform: none !important;
    text-align: left !important;
    line-height: 1.3 !important;
}

.ceq-product-name {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 12px !important;
    margin: 3px 0 0 0 !important;
    padding: 0 !important;
    font-weight: 400;
    line-height: 1.4;
    white-space: normal;
    text-align: left;
}

/* Form */
.ceq-form {
    padding: 20px 32px 28px;
}

.ceq-field {
    margin-bottom: 18px;
}

/* Honeypot - must be invisible */
.ceq-hp-field {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}

/* Input Wrapper with Icon + Floating Label */
.ceq-input-wrap {
    position: relative;
}

.ceq-field-icon {
    position: absolute;
    left: 14px;
    top: 24px;
    transform: translateY(-50%);
    color: #6b7280;
    transition: color 0.25s ease;
    z-index: 1;
    pointer-events: none;
}

.ceq-icon-textarea {
    top: 20px;
    transform: none;
}

.ceq-input-wrap input,
.ceq-input-wrap textarea {
    width: 100% !important;
    height: 48px !important;
    padding: 0 14px 0 42px !important;
    border: 1.5px solid #e2e5ea !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    color: #1f2937 !important;
    background: #fff !important;
    line-height: 48px !important;
    transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.ceq-input-wrap textarea {
    height: auto !important;
    min-height: 90px !important;
    padding: 14px 14px 14px 42px !important;
    line-height: 1.5 !important;
    resize: vertical;
}

.ceq-input-wrap label {
    position: absolute;
    left: 42px;
    top: 24px;
    transform: translateY(-50%);
    font-size: 14px !important;
    color: #6b7280 !important;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    padding: 0 4px;
    line-height: 1 !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.ceq-textarea-wrap label {
    top: 20px;
    transform: none;
}

/* Floating label active state */
.ceq-input-wrap input:focus+label,
.ceq-input-wrap input:not(:placeholder-shown)+label,
.ceq-input-wrap textarea:focus+label,
.ceq-input-wrap textarea:not(:placeholder-shown)+label {
    top: 0;
    transform: translateY(-50%);
    font-size: 11px !important;
    color: #3d5e34 !important;
    background: linear-gradient(to bottom, #fff 50%, #f4f6f3 50%);
    font-weight: 600 !important;
    letter-spacing: 0.3px;
    left: 36px;
}

.ceq-textarea-wrap textarea:focus+label,
.ceq-textarea-wrap textarea:not(:placeholder-shown)+label {
    top: 0;
    transform: translateY(-50%);
}

.ceq-input-wrap input:focus,
.ceq-input-wrap textarea:focus {
    border-color: #7c9d6d !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(124, 157, 109, 0.12) !important;
}

.ceq-input-wrap input:focus~.ceq-field-icon,
.ceq-input-wrap textarea:focus~.ceq-field-icon {
    color: #5a7e4f;
}

.ceq-req {
    color: #ef4444;
    font-weight: 700;
}

.ceq-optional {
    color: #6b7280;
    font-weight: 400;
    font-size: 0.9em;
}

/* Phone Row */
.ceq-label-static {
    display: block !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #6b7280 !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    opacity: 1 !important;
    visibility: visible !important;
}

.ceq-phone-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.ceq-country-select-wrap {
    flex-shrink: 0;
    position: relative;
}

/* Custom Flag Dropdown */
.ceq-custom-select {
    position: relative;
    width: 120px;
}

.ceq-select-selected {
    height: 48px !important;
    padding: 0 28px 0 12px !important;
    border: 1.5px solid #e2e5ea;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-sizing: border-box;
    color: #1f2937;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    user-select: none;
    background-image: url("data:image/svg+xml,%3Csvg width='8' height='5' viewBox='0 0 8 5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l3 3 3-3' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 8px 5px;
}

.ceq-select-selected:hover {
    border-color: #7c9d6d;
}

.ceq-select-selected.open {
    border-color: #7c9d6d;
    box-shadow: 0 0 0 3px rgba(124, 157, 109, 0.12);
}

.ceq-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 0 !important;
    flex-shrink: 0;
}

.ceq-select-options {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    width: 160px;
    background: #fff;
    border: 1.5px solid #e2e5ea;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
}

.ceq-select-options.show {
    display: block;
}

.ceq-select-option {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s ease;
}

.ceq-select-option:first-child {
    border-radius: 8px 8px 0 0;
}

.ceq-select-option:last-child {
    border-radius: 0 0 8px 8px;
}

.ceq-select-option:hover {
    background: #f0f3ee;
}

.ceq-select-option.active {
    background: #e8ede5;
    font-weight: 600;
}

.ceq-select-option img {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 0 !important;
    flex-shrink: 0;
}

/* Scrollbar */
.ceq-select-options::-webkit-scrollbar {
    width: 5px;
}

.ceq-select-options::-webkit-scrollbar-track {
    background: transparent;
}

.ceq-select-options::-webkit-scrollbar-thumb {
    background: #c5cfc0;
    border-radius: 3px;
}

.ceq-phone-input {
    flex: 1;
}

.ceq-phone-input input {
    padding-left: 42px !important;
}

/* Submit Button */
.ceq-submit-btn {
    width: 100%;
    padding: 15px 24px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #3d5e34 0%, #7c9d6d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    margin-top: 4px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ceq-submit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #7c9d6d 0%, #3d5e34 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ceq-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(61, 94, 52, 0.35);
}

.ceq-submit-btn:hover::before {
    opacity: 1;
}

.ceq-submit-btn:active {
    transform: translateY(0);
}

.ceq-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ceq-btn-text,
.ceq-btn-icon,
.ceq-btn-loader {
    position: relative;
    z-index: 1;
}

.ceq-btn-icon svg {
    display: block;
}

/* Response Messages */
.ceq-response {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
}

.ceq-response.show {
    max-height: 80px;
    opacity: 1;
    padding: 12px 16px;
    margin-bottom: 14px;
}

.ceq-response.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.ceq-response.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Disclaimer */
.ceq-disclaimer {
    text-align: center;
    font-size: 11px !important;
    color: #8a9580 !important;
    margin: 16px 0 0 0 !important;
    padding: 0 !important;
}

/* Success Overlay */
.ceq-success-overlay {
    padding: 48px 32px 40px;
    text-align: center;
    animation: ceqFadeIn 0.4s ease-out;
}

.ceq-success-icon {
    margin-bottom: 20px;
}

.ceq-success-circle {
    animation: ceqScaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.1s both;
}

.ceq-success-check {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: ceqDraw 0.6s ease 0.4s forwards;
}

.ceq-success-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #3d5e34 !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
}

.ceq-success-msg {
    font-size: 14px !important;
    color: #5a7e4f !important;
    line-height: 1.6 !important;
    margin: 0 0 28px 0 !important;
    padding: 0 !important;
}

.ceq-success-continue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: 1.5px solid #7c9d6d;
    border-radius: 8px;
    background: transparent;
    color: #3d5e34;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    height: 46px;
}

.ceq-success-continue::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #3d5e34, #7c9d6d);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ceq-success-continue svg,
.ceq-success-continue span {
    position: relative;
    z-index: 1;
}

.ceq-success-continue:hover {
    color: #fff;
    border-color: #3d5e34;
    box-shadow: 0 4px 14px rgba(61, 94, 52, 0.25);
}

.ceq-success-continue:hover::before {
    opacity: 1;
}

.ceq-success-continue:hover svg {
    stroke: #fff;
}

.ceq-success-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    background: #25D366;
    border: 1.5px solid #25D366;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
    height: 46px;
}

.ceq-success-whatsapp:hover {
    background: #128C7E;
    border-color: #128C7E;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

@keyframes ceqFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ceqScaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

@keyframes ceqDraw {
    to {
        stroke-dashoffset: 0;
    }
}

/* ================================================
   Button Row (single product page)
   ================================================ */
.ceq-btn-row {
    display: flex;
    gap: 10px;
    margin: 15px 0 20px;
    align-items: stretch;
}

.ceq-btn-row>* {
    margin: 0 !important;
    line-height: 1.4 !important;
}

/* PRIMARY: Add to Enquiry (filled) */
.ceq-add-btn-single {
    flex: 1;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 16px;
    border: 1.5px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    background: linear-gradient(135deg, #3d5e34, #7c9d6d);
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
}

.ceq-add-btn-single svg {
    stroke: #fff;
    transition: stroke 0.3s ease;
}

.ceq-add-btn-single:hover {
    box-shadow: 0 4px 14px rgba(61, 94, 52, 0.35);
    transform: translateY(-1px);
}

.ceq-add-btn-single.added {
    background: #e8ede5;
    color: #3d5e34 !important;
    pointer-events: none;
}

.ceq-add-btn-single.added svg {
    display: none;
}

.ceq-add-btn-single.added span::before {
    content: '\2713 ';
}

/* SECONDARY: Request a Quote (outline) */
.ceq-trigger-btn {
    flex: 1;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 16px;
    border: 1.5px solid #7c9d6d;
    border-radius: 8px;
    background: transparent;
    color: #3d5e34 !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    cursor: pointer;
    text-decoration: none !important;
    text-transform: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
}

.ceq-trigger-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #3d5e34, #7c9d6d);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.ceq-trigger-btn svg,
.ceq-trigger-btn span {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.ceq-trigger-btn svg {
    stroke: #5a7e4f;
    transition: stroke 0.3s ease;
}

.ceq-trigger-btn:hover {
    border-color: #3d5e34;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(61, 94, 52, 0.25);
    transform: translateY(-1px);
}

.ceq-trigger-btn:hover::before {
    opacity: 1;
}

.ceq-trigger-btn:hover svg {
    stroke: #fff;
}

.ceq-trigger-btn:hover span {
    color: #fff;
}

.ceq-trigger-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(61, 94, 52, 0.2);
}

/* Loop button (shop/archive) */
.ceq-add-btn-loop {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin: 0;
    padding: 9px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 4px;
    background: #f0f4ee;
    color: #4a6c40;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    box-sizing: border-box;
}

.ceq-add-btn-loop svg {
    stroke: #4a6c40;
    width: 15px;
    height: 15px;
    transition: stroke 0.3s ease, transform 0.3s ease;
}

.ceq-add-btn-loop:hover {
    background: #3d5e34;
    color: #fff;
    box-shadow: 0 4px 12px rgba(61, 94, 52, 0.25);
    transform: translateY(-2px);
}

.ceq-add-btn-loop:hover svg {
    stroke: #fff;
    transform: scale(1.1);
}

.ceq-add-btn-loop.added {
    background: #e8ede5;
    color: #8a9580;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}

.ceq-add-btn-loop.added svg {
    display: none;
}

.ceq-add-btn-loop.added span::before {
    content: '\2713 ';
}

/* ================================================
   Floating Basket Badge
   ================================================ */
.ceq-basket-badge {
    position: fixed;
    bottom: 130px;
    right: 44px;
    z-index: 9998;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #3d5e34, #7c9d6d);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(61, 94, 52, 0.4);
    transition: all 0.3s ease;
    animation: ceqBadgePulse 2s ease-in-out infinite;
}

.ceq-basket-badge:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(61, 94, 52, 0.5);
}

.ceq-badge-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

@keyframes ceqBadgePulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(61, 94, 52, 0.4);
    }

    50% {
        box-shadow: 0 4px 20px rgba(61, 94, 52, 0.2), 0 0 0 8px rgba(124, 157, 109, 0.1);
    }
}

/* ================================================
   Enquiry Drawer
   ================================================ */
.ceq-drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2147483646;
    backdrop-filter: blur(2px);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.ceq-drawer-backdrop.show {
    display: block;
    opacity: 1;
}

.ceq-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: #f7f9f6;
    z-index: 2147483647;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.ceq-drawer.open {
    right: 0;
}

/* Drawer Header */
.ceq-drawer-header {
    padding: 18px 20px;
    background: linear-gradient(135deg, #3d5e34, #7c9d6d);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.ceq-drawer-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #fff !important;
}

.ceq-drawer-header span {
    font-weight: 400;
    opacity: 0.8;
    font-size: 13px;
    color: #fff !important;
}

#ceq-drawer-close,
.ceq-drawer-close {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    border: none !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.15) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.25s ease;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    flex-shrink: 0;
    -webkit-appearance: none !important;
    appearance: none !important;
}

#ceq-drawer-close:hover,
.ceq-drawer-close:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: rotate(90deg);
}

/* Drawer Body */
.ceq-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.ceq-drawer-empty {
    text-align: center;
    padding: 40px 20px;
    color: #8a9580;
}

.ceq-drawer-empty p {
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.5;
}

/* Product Card in Drawer */
.ceq-product-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    position: relative;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.ceq-product-card.removing {
    transform: translateX(100%);
    opacity: 0;
}

.ceq-product-card-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f0f3ee;
}

.ceq-product-card-info {
    flex: 1;
    min-width: 0;
}

.ceq-product-card-name {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ceq-product-card-sku {
    font-size: 11px;
    color: #8a9580;
    margin: 0 0 6px;
}

.ceq-product-card-qty {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.ceq-qty-stepper {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1px solid #dce3d8;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    height: 26px;
}

.ceq-qty-stepper-btn {
    width: 24px !important;
    height: 26px !important;
    min-width: 24px !important;
    min-height: 26px !important;
    max-width: 24px !important;
    max-height: 26px !important;
    border: none !important;
    background: #f4f6f3 !important;
    color: #5a7e4f !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s ease;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.ceq-qty-stepper-btn:hover {
    background: #e8ede5 !important;
    color: #3d5e34 !important;
}

.ceq-qty-stepper-btn:active {
    background: #dce3d8 !important;
}

.ceq-qty-stepper input {
    width: 44px !important;
    height: 26px !important;
    padding: 0 !important;
    border: none !important;
    border-left: 1px solid #dce3d8 !important;
    border-right: 1px solid #dce3d8 !important;
    font-size: 12px !important;
    text-align: center;
    background: #fff !important;
    color: #1f2937 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    line-height: 26px !important;
    -moz-appearance: textfield !important;
    outline: none !important;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.ceq-qty-stepper input::-webkit-outer-spin-button,
.ceq-qty-stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ceq-qty-stepper input:focus {
    background: #fafdf8 !important;
}

.ceq-qty-unit {
    font-size: 10px;
    color: #8a9580;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.ceq-product-card-remove {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    border: none !important;
    border-radius: 50% !important;
    background: #fef2f2 !important;
    color: #ef4444 !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    font-size: 13px;
    transition: all 0.2s ease;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    flex-shrink: 0;
}

.ceq-product-card-remove:hover {
    background: #fee2e2 !important;
    transform: scale(1.15);
}

/* Drawer Footer */
.ceq-drawer-footer {
    padding: 16px 20px;
    border-top: 1px solid #e2e5ea;
    flex-shrink: 0;
    background: #fff;
}

.ceq-drawer-send-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: linear-gradient(135deg, #3d5e34, #7c9d6d);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.ceq-drawer-send-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(61, 94, 52, 0.3);
}

.ceq-drawer-clear-btn {
    width: 100%;
    margin-top: 8px;
    padding: 8px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: transparent;
    color: #8a9580;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.ceq-drawer-clear-btn:hover {
    color: #ef4444;
    background: #fef2f2;
}

/* Inline confirmation bar */
.ceq-confirm-bar {
    width: 100%;
    box-sizing: border-box;
    margin-top: 8px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fef8f8;
    border: 1px solid #fecaca;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.ceq-confirm-bar.show {
    opacity: 1;
    transform: translateY(0);
}

.ceq-confirm-msg {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #991b1b;
}

.ceq-confirm-msg svg {
    flex-shrink: 0;
}

.ceq-confirm-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.ceq-confirm-cancel,
.ceq-confirm-yes {
    padding: 5px 12px !important;
    border-radius: 5px !important;
    cursor: pointer;
    font-size: 11px !important;
    font-weight: 600 !important;
    border: none !important;
    transition: all 0.15s ease;
    font-family: inherit !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.ceq-confirm-cancel {
    background: #fff !important;
    color: #6b7280 !important;
    border: 1px solid #e5e7eb !important;
}

.ceq-confirm-cancel:hover {
    background: #f3f4f6 !important;
    color: #374151 !important;
}

.ceq-confirm-yes {
    background: #ef4444 !important;
    color: #fff !important;
}

.ceq-confirm-yes:hover {
    background: #dc2626 !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* ================================================
   Mobile Responsive
   ================================================ */
@media (max-width: 480px) {
    .ceq-form {
        padding: 16px 20px 24px;
    }

    .ceq-header {
        padding: 16px 16px 12px;
    }

    .ceq-phone-row {
        flex-direction: column;
        gap: 8px;
    }

    .ceq-custom-select {
        width: 100%;
    }

    .ceq-input-wrap label {
        font-size: 13px;
    }

    .ceq-drawer {
        width: 100%;
        max-width: 100vw;
        right: -100vw;
    }

    .ceq-basket-badge {
        bottom: 110px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .ceq-btn-row {
        flex-direction: column;
        gap: 8px;
    }

    .ceq-success-actions {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .ceq-success-continue,
    .ceq-success-whatsapp {
        width: 100%;
        box-sizing: border-box;
    }

    .ceq-success-msg {
        font-size: 13px !important;
    }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .ceq-basket-badge {
        animation: none;
    }

    .ceq-drawer {
        transition-duration: 0.01ms;
    }

    .ceq-product-card.removing {
        transition-duration: 0.01ms;
    }
}


/* General Enquiry Button (Premium Styling) */
.ceq-general-enquiry-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 26px;
    border: 1.5px solid transparent;
    /* Match border size of call button */
    box-sizing: border-box;
    border-radius: 50px;
    background: linear-gradient(135deg, #3d5e34, #7c9d6d);
    color: #ffffff !important;
    font-size: 14px;
    line-height: 1 !important;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(61, 94, 52, 0.25);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ceq-general-enquiry-btn svg {
    stroke: #ffffff;
    transition: transform 0.3s ease;
}

.ceq-general-enquiry-btn:hover {
    box-shadow: 0 6px 20px rgba(61, 94, 52, 0.4);
    transform: translateY(-2px);
    color: #ffffff !important;
}

.ceq-general-enquiry-btn:hover svg {
    transform: translateX(3px);
}

.ceq-general-enquiry-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(61, 94, 52, 0.2);
}

/* Header Call Button */
.ceq-header-call-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 26px;
    border: 1.5px solid #3d5e34;
    box-sizing: border-box;
    border-radius: 50px;
    background: transparent;
    color: #3d5e34 !important;
    font-size: 14px;
    line-height: 1 !important;
    font-weight: 600;
    /* Matched with enquiry button */
    letter-spacing: 0.3px;
    text-transform: uppercase;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ceq-header-call-btn svg {
    stroke: #3d5e34;
    transition: all 0.3s ease;
}

.ceq-header-call-btn:hover {
    background: linear-gradient(135deg, #3d5e34, #7c9d6d);
    border-color: transparent;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(61, 94, 52, 0.25);
    transform: translateY(-2px);
}

.ceq-header-call-btn:hover svg {
    stroke: #ffffff;
    animation: phoneShake 0.4s ease-in-out;
}

.ceq-header-call-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

@keyframes phoneShake {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-20deg);
    }

    50% {
        transform: rotate(20deg);
    }

    75% {
        transform: rotate(-10deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

/* Button Group Wrapper */
.ceq-header-btn-group {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
}

/* Inline Form Styling */
.ceq-form-container.ceq-inline-form {
    background: #ffffff;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
}

/* ==================================================== */
/* B2B AJAX SEARCH DROPDOWN STYLING                     */
/* ==================================================== */

.autocomplete-suggestions {
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    border-radius: 12px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
    padding: 6px 0 !important;
    margin-top: 6px !important;
}

.autocomplete-suggestion {
    padding: 10px 16px !important;
    transition: all 0.25s ease !important;
    border-bottom: 1px solid #f9f9f9 !important;
    cursor: pointer !important;
    display: flex;
    align-items: center;
}

.autocomplete-suggestion:last-child {
    border-bottom: none !important;
}

.autocomplete-suggestion:hover,
.autocomplete-suggestion.autocomplete-selected {
    background: #f7f9f6 !important;
    padding-left: 20px !important;
}

.autocomplete-suggestion img.search-image {
    width: 45px !important;
    height: 45px !important;
    border-radius: 6px !important;
    object-fit: cover !important;
    margin-right: 12px !important;
}

.autocomplete-suggestion .search-name {
    font-size: 13px !important;
    color: #374151 !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    margin-bottom: 2px !important;
    display: block;
    width: 100%;
}

.autocomplete-suggestion .search-name strong {
    color: #3d5e34 !important;
    font-weight: 700 !important;
}

.autocomplete-suggestion .ceq-search-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    gap: 8px;
}

.autocomplete-suggestion .ceq-search-sku {
    font-size: 11px !important;
    color: #8a9580 !important;
    margin-top: 0 !important;
}

.autocomplete-suggestion .search-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: auto;
    min-width: 70px;
}

.autocomplete-suggestion .amount {
    font-size: 12px !important;
    color: #1f2937 !important;
    font-weight: 600 !important;
}

/* Button override */
.ceq-search-add {
    margin-top: 0 !important;
    padding: 4px 10px !important;
    font-size: 11px !important;
    background: #e8ede5 !important;
    border: 1px solid transparent !important;
    border-radius: 6px !important;
    color: #3d5e34 !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    width: max-content !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    transition: all 0.25s ease !important;
}

.ceq-search-add:hover {
    background: linear-gradient(135deg, #3d5e34, #7c9d6d) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(61, 94, 52, 0.2) !important;
    transform: translateY(-1px) !important;
}