/*
 * LIV International — Single Product Page — Buy Widget
 * =====================================================
 * Reusable base for all single-product pages.
 * Scoped under .product-form (ActionForm cssName).
 *
 * Aesthetic: "Botanical Calm" — sage/gold palette,
 * consistent with liv-tiktok-product.css.
 *
 * RULES:
 *  - ZERO font-size declarations (DNN theme controls sizing)
 *  - All colors hardcoded — no CSS variable dependencies
 *  - All classes prefixed liv-sp- (single product)
 *  - Self-contained — no external dependencies
 *
 * Deploy: /Portals/0/frm/css/liv-single-product.css?ver=1
 * =====================================================
 */


/* =============================================================
   1. FORM CARD WRAPPER
   ============================================================= */

.product-form {
    background: #ffffff;
    border-left: 3px solid #3d5441;
    border-radius: 12px;
    box-shadow:
        0 4px 20px rgba(61, 84, 65, 0.10),
        0 1px 4px rgba(61, 84, 65, 0.06);
    padding: 20px 18px !important;
    margin-top: 8px;
}


/* =============================================================
   2. INFO BAR  (1 Bottle | 30 ml | 30 Days)
   ============================================================= */

.product-form .mgz-icon-list-horizontal {
    display: flex !important;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding: 14px 0 16px 0;
    border-top: 1px solid rgba(92, 125, 98, 0.20);
    border-bottom: 1px solid rgba(92, 125, 98, 0.20);
    margin-bottom: 10px;
}

.product-form .mgz-icon-list-item {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    text-align: center;
}

/* Force FA5 Free rendering — mgz-fa-* classes use a DNN extension
   font that isn't loaded on product pages; FA5 is confirmed available. */
.product-form .mgz-icon-list-item-icon {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: auto;
    line-height: 1;
    display: block !important;
    color: #5c7d62 !important;
    transform: scale(1.6);
    margin-bottom: 2px;
}

/*
 * Icon mapping — type-specific slots
 *
 * Slot 1 (container)  → fa-leaf       always: natural/botanical, brand-neutral
 * Slot 2 (amount)     → fa-tint       DEFAULT (liquid products like SereZen)
 *                     → fa-pills      when .liv-sp-capsule is on the form
 * Slot 3 (days)       → fa-calendar-alt  always: universal
 *
 * To switch a product page to capsule mode:
 *   ActionForm → Settings → CSS Class field → add: liv-sp-capsule
 *   (space-separated alongside existing classes, e.g. "product-form liv-sp-capsule")
 */

/* Slot 1 — container (all product types) */
.product-form .mgz-fa-prescription-bottle-alt::before { content: "\f06c" !important; } /* fa-leaf */

/* Slot 2 — amount: liquid default (tint/droplet) */
.product-form .mgz-fa-pills::before                   { content: "\f043" !important; } /* fa-tint */

/* Slot 2 — amount: capsule override */
.product-form.liv-sp-capsule .mgz-fa-pills::before    { content: "\f484" !important; } /* fa-pills */

/* Slot 3 — days (all product types) */
.product-form .mgz-fa-medrt::before                   { content: "\f073" !important; } /* fa-calendar-alt */

.product-form .mgz-icon-list-item-text {
    color: #3d5441;
    font-weight: 600;
    letter-spacing: 0.2px;
}


/* =============================================================
   3. PRICE TABLE CONTAINER
   ============================================================= */

.product-form .table {
    border-collapse: separate !important;
    border-spacing: 0 4px !important;
    margin: 0 !important;
    width: 100%;
}

.product-form .table td {
    border: none !important;
    vertical-align: middle !important;
    padding: 10px 14px !important;
}


/* =============================================================
   4. STORE PRICE ROW  (.promoRow)
   ============================================================= */

.product-form .promoRow {
    background: linear-gradient(135deg, #e8f0ea 0%, #f2f7f3 100%) !important;
    border-radius: 10px !important;
}

.product-form .promoRow td:first-child {
    border-radius: 10px 0 0 10px !important;
}

.product-form .promoRow td:last-child {
    border-radius: 0 10px 10px 0 !important;
    text-align: right;
}

.product-form .promoLabel b {
    color: #3d5441 !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Replace red circle badge with sage gradient pill */
.product-form .ibPromo {
    background: linear-gradient(135deg, #3d5441 0%, #5c7d62 100%) !important;
    color: #ffffff !important;
    border-radius: 20px !important;
    padding: 6px 14px !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    line-height: 1.4 !important;
    display: inline-block !important;
    font-weight: 900 !important;
    letter-spacing: -0.3px;
    box-shadow: 0 2px 8px rgba(61, 84, 65, 0.28) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}


/* =============================================================
   5. MEMBER / MSP PRICE ROWS
   ============================================================= */

/* "Member Price" label — override inline font-size: small */
.product-form tr:nth-child(3) td:first-child {
    color: #6b7a6e;
    font-weight: 600;
    font-size: inherit !important;
}

/* "MSP Member Price" label */
.product-form tr:nth-child(4) td:first-child {
    color: #6b7a6e;
    font-weight: 600;
    font-size: inherit !important;
}

/* "Become a member at check out!" — override inline color:#00ab54 */
.product-form tr:nth-child(4) td:first-child em {
    color: #b8955a !important;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.2px;
    display: block;
    margin-top: 3px;
}

/* Price amounts ($38, $34) */
.product-form .otherprice {
    color: #3d5441 !important;
    font-weight: 700;
    text-align: right;
}


/* =============================================================
   6. BUY BUTTON
   ============================================================= */

.product-form .wsc-button.btn-block {
    position: relative !important;
    overflow: hidden !important;
    background: linear-gradient(135deg,
        #3d5441 0%,
        #5c7d62 50%,
        #3d5441 100%
    ) !important;
    background-size: 200% 100% !important;
    background-position: left center !important;
    border: none !important;
    border-radius: 30px !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    padding: 14px 24px !important;
    margin-top: 8px !important;
    transition:
        background-position 0.4s ease,
        box-shadow 0.3s ease !important;
    box-shadow:
        0 4px 16px rgba(61, 84, 65, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
}

/* Shimmer sweep */
.product-form .wsc-button.btn-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255, 255, 255, 0.10) 45%,
        rgba(255, 255, 255, 0.20) 50%,
        rgba(255, 255, 255, 0.10) 55%,
        transparent 70%
    );
    animation: liv-sp-shimmer 4s ease-in-out infinite;
    pointer-events: none;
    border-radius: inherit;
}

@keyframes liv-sp-shimmer {
    0%   { left: -100%; }
    40%  { left: 150%; }
    100% { left: 150%; }
}

.product-form .wsc-button.btn-block:hover {
    background-position: right center !important;
    box-shadow:
        0 6px 24px rgba(61, 84, 65, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

/* Cart icon spacing */
.product-form .wsc-button.btn-block .fa-cart-arrow-down {
    margin-left: 8px;
    opacity: 0.9;
}


/* =============================================================
   7. RESPONSIVE — Mobile (max-width: 767px)
   ============================================================= */

@media (max-width: 767px) {
    .product-form {
        padding: 14px 12px !important;
        border-radius: 10px;
    }

    .product-form .mgz-icon-list-horizontal {
        gap: 0;
        padding: 10px 0 12px 0;
    }

    .product-form .mgz-icon-list-item {
        gap: 5px;
    }

    .product-form .mgz-icon-list-item-icon {
        transform: scale(1.3);
    }

    .product-form .ibPromo {
        padding: 5px 10px !important;
    }

    .product-form .wsc-button.btn-block {
        padding: 12px 18px !important;
        border-radius: 24px !important;
    }
}


/* =============================================================
   8. ACCESSIBILITY — Reduced motion
   ============================================================= */

@media (prefers-reduced-motion: reduce) {
    .product-form .wsc-button.btn-block::before {
        animation: none;
    }

    .product-form .wsc-button.btn-block {
        transition: box-shadow 0.3s ease !important;
    }
}
