/* Fonts & Base */
.qva6eb3549-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 26, 45, 0.85); /* Darker navy overlay */
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.qva6eb3549-modal-content {
    background: #f4efeb; /* Cream background from screenshot */
    border-radius: 16px;
    width: 100%;
    max-width: 440px; /* Reduced width */
    max-height: 750px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    color: #1e1a2d; /* Navy text */
    overflow: hidden; /* Hide overflow for slide panel */
    display: flex;
    flex-direction: column;
}

.qva6eb3549-main-scroll-area {
    overflow-y: auto;
    padding: 20px; /* Reduced padding */
    height: 100%;
    flex-grow: 1;
}

/* Close Button */
.qva6eb3549-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #1e1a2d;
    cursor: pointer;
    z-index: 10;
    padding: 5px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.qva6eb3549-close-btn:hover {
    opacity: 1;
}

/* Product Image */
.qva6eb3549-product-image {
    text-align: center;
    margin-bottom: 20px; /* Reduced spacing */
    display: flex;
    justify-content: center;
}

.qva6eb3549-product-image img {
    max-height: 220px; /* Reduced size */
    max-width: 220px; /* Constrain width as requested */
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply; /* Helps blend product image with cream bg */
}

/* Title */
.qva6eb3549-product-title {
    font-family: "Montserrat", sans-serif;
    font-size: 18px; /* Slightly smaller */
    font-weight: 800;
    color: #1e1a2d;
    margin: 0 0 15px 0;
    line-height: 1.2;
    text-align: center;
    letter-spacing: -0.5px;
}

/* Age Notice */
.qva6eb3549-age-notice {
    display: flex;
    align-items: center;
    background: #e8e2de; /* Slightly darker cream */
    border: 1px solid #1e1a2d;
    border-radius: 8px; /* Smaller radius */
    padding: 10px; /* Reduced padding */
    margin-bottom: 15px; /* Reduced spacing */
    gap: 10px;
}

.qva6eb3549-age-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qva6eb3549-age-text {
    font-family: "Montserrat", sans-serif;
    font-size: 13px; /* Smaller */
    line-height: 1.3;
    color: #1e1a2d;
}

/* Price */
.qva6eb3549-product-price {
    font-family: "Montserrat", sans-serif;
    font-size: 24px; /* Slightly smaller */
    font-weight: 800;
    color: #1e1a2d;
    margin: 0 0 15px 0; /* Reduced spacing */
    letter-spacing: -0.5px;
}

.qva6eb3549-product-price del {
    font-size: 14px;
    font-weight: normal;
    opacity: 0.6;
    margin-right: 8px;
}

/* Item Info Toggle */
.qva6eb3549-item-info-toggle {
    background: none;
    border: none;
    padding: 0;
    color: #1e1a2d;
    font-family: "Montserrat", sans-serif;
    font-size: 13px; /* Smaller */
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 15px; /* Reduced spacing */
}

.qva6eb3549-product-excerpt {
    font-family: "Montserrat", sans-serif;
    font-size: 13px; /* Smaller */
    color: #1e1a2d;
    margin-bottom: 15px; /* Reduced spacing */
    line-height: 1.4;
}

.qva6eb3549-product-excerpt p {
    margin: 0;
}

/* Divider */
.qva6eb3549-divider {
    border: none;
    border-top: 1px solid #1e1a2d;
    margin: 0 0 20px 0; /* Reduced spacing */
    opacity: 0.8;
}

/* Messages Wrapper */
.qva6eb3549-messages-wrapper {
    margin-bottom: 15px;
}
.qva6eb3549-messages-wrapper .woocommerce-error {
    background: #ffebe8;
    color: #cc0000;
    border: 1px solid #cc0000;
    padding: 8px 12px;
    border-radius: 6px;
    list-style: none;
    margin: 0;
    font-size: 13px;
    font-family: "Montserrat", sans-serif;
}
.qva6eb3549-messages-wrapper .woocommerce-error li {
    margin-bottom: 4px;
}
.qva6eb3549-messages-wrapper .woocommerce-error li:last-child {
    margin-bottom: 0;
}

/* Add to Cart Area */
.qva6eb3549-add-to-cart-wrapper form.cart {
    display: flex;
    gap: 10px; /* Reduced gap */
    align-items: stretch;
}

/* Quantity Selector */
.qva6eb3549-quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #1e1a2d;
    border-radius: 25px; /* Smaller radius */
    background: #fff;
    height: 48px; /* Slightly shorter */
    padding: 0 8px; /* Less padding */
    width: 110px; /* Narrower */
    justify-content: space-between;
}

.qva6eb3549-qty-btn {
    background: none;
    border: none;
    color: #1e1a2d;
    font-family: "Montserrat", sans-serif;
    font-size: 18px; /* Smaller */
    font-weight: bold;
    cursor: pointer;
    width: 25px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.qva6eb3549-qty-input {
    border: none;
    background: transparent;
    text-align: center;
    width: 35px; /* Narrower */
    font-family: "Montserrat", sans-serif;
    font-size: 16px; /* Smaller */
    font-weight: bold;
    color: #1e1a2d;
    padding: 0;
    -moz-appearance: textfield;
}

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

/* Add Button */
.qva6eb3549-add-btn {
    flex: 1;
    background: #f48424 !important; /* Orange */
    color: #fff !important;
    border: none;
    border-radius: 25px; /* Smaller radius */
    font-family: "Montserrat", sans-serif;
    font-size: 16px; /* Smaller */
    font-weight: 800; /* Bolder */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 48px; /* Matching quantity height */
    cursor: pointer;
    transition: opacity 0.2s;
    padding: 0 15px; /* Less padding */
}

.qva6eb3549-add-btn:hover {
    opacity: 0.9;
}

.qva6eb3549-add-btn.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Hide default woo elements */
.qva6eb3549-add-to-cart-wrapper .quantity:not(.qva6eb3549-quantity-selector) {
    display: none !important;
}

/* Text Link Trigger Style */
.qva6eb3549-trigger-link {
    color: #1e1a2d;
    font-family: "Montserrat", sans-serif;
    text-decoration: underline;
    text-underline-offset: 4px;
    font-size: 14px;
    cursor: pointer;
    display: inline-block;
}

.qva6eb3549-trigger-link:hover {
    opacity: 0.8;
}

.qva6eb3549-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Full Size Sliding Info Panel */
.qva6eb3549-info-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f4efeb;
    z-index: 20;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.qva6eb3549-info-panel.is-active {
    transform: translateY(0);
}

.qva6eb3549-info-header {
    display: flex;
    align-items: center;
    padding: 15px 20px; /* Reduced padding */
    border-bottom: 1px solid rgba(30, 26, 45, 0.1);
    flex-shrink: 0;
}

.qva6eb3549-info-back-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #1e1a2d;
    padding: 0;
    margin-right: 10px; /* Reduced margin */
    display: flex;
    align-items: center;
    justify-content: center;
}

.qva6eb3549-info-back-btn:hover {
    opacity: 0.7;
}

.qva6eb3549-info-header h3 {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-size: 18px; /* Smaller */
    font-weight: 800;
    color: #1e1a2d;
    letter-spacing: -0.5px;
}

.qva6eb3549-info-body {
    padding: 20px; /* Reduced padding */
    overflow-y: auto;
    flex-grow: 1;
    font-family: "Montserrat", sans-serif;
    font-size: 13px; /* Smaller */
    line-height: 1.5;
    color: #1e1a2d;
}

.qva6eb3549-info-body h1, 
.qva6eb3549-info-body h2, 
.qva6eb3549-info-body h3, 
.qva6eb3549-info-body h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-family: "Montserrat", sans-serif;
    color: #1e1a2d;
    font-weight: 800;
}

.qva6eb3549-info-body p {
    margin-bottom: 12px;
}

.qva6eb3549-info-body ul,
.qva6eb3549-info-body ol {
    margin-bottom: 12px;
    padding-left: 20px;
}

.qva6eb3549-info-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 12px;
}