
/*
 * OrponShop V16.5
 * Universal Premium Purchase Panel
 * Shared across all appearance presets.
 */

html body .orpon-purchase-v165,
html body .orpon-v165-support {
    --purchase-surface: var(--orpon-surface, #eeefe4);
    --purchase-text: var(--orpon-text, #414a35);
    --purchase-border: var(--orpon-gold-light, #c6cbb6);
    --purchase-soft: var(--orpon-search, var(--purchase-surface));
    box-sizing: border-box;
    font-family: inherit;
    width: 100%;
    max-width: 100%;
}

html body .guardian-buy-area.orpon-purchase-v165 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    padding: 12px 0 16px !important;
    margin: 0 !important;
    align-items: stretch !important;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
}

html body .orpon-purchase-v165 .qty-cart {
    grid-column: 1 / -1 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    max-width: none !important;
    padding: 10px 0 14px !important;
    margin: 0 !important;
    border-bottom: 1px solid var(--purchase-border) !important;
    background: transparent !important;
}

html body .orpon-v165-qty-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--purchase-text);
}

html body .orpon-purchase-v165 .quantity {
    display: flex !important;
    align-items: center !important;
    width: 142px !important;
    min-width: 142px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid var(--purchase-border) !important;
    border-radius: 9px !important;
    background: var(--purchase-surface) !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

html body .orpon-purchase-v165 .quantity button {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    background: var(--purchase-soft) !important;
    color: var(--purchase-text) !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 19px !important;
}

html body .orpon-purchase-v165 .quantity input {
    flex: 1 1 0 !important;
    width: 0 !important;
    min-width: 0 !important;
    height: 42px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: center !important;
    font-size: 17px !important;
}

html body .orpon-purchase-v165 .store-action {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 54px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 12px 8px !important;
    border-radius: 10px !important;
    font-family: inherit !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-align: center !important;
    text-shadow: none !important;
    box-shadow: none !important;
    animation: none !important;
    transform: none !important;
    transition: filter .18s ease !important;
}

html body .orpon-purchase-v165 .store-action-secondary {
    background: var(--purchase-soft) !important;
    color: var(--purchase-text) !important;
    border: 1px solid var(--purchase-border) !important;
}

html body .orpon-purchase-v165 .guardian-order-action {
    background: var(--orpon-v165-accent, #41454b) !important;
    color: #fff !important;
    border: 1px solid transparent !important;
}

html body .orpon-purchase-v165 .store-action::before,
html body .orpon-purchase-v165 .store-action::after {
    content: none !important;
}

html body .orpon-purchase-v165 .store-action:hover {
    filter: brightness(.94) !important;
}

/* Compact support actions */

html body .orpon-v165-support {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-around !important;
    gap: 6px !important;
    padding: 16px 0 8px !important;
    margin: 0 !important;
    border-top: 1px solid var(--purchase-border) !important;
}

html body .orpon-v165-support .guardian-contact-actions {
    display: flex !important;
    flex: 3 1 0 !important;
    justify-content: space-around !important;
    align-items: flex-start !important;
    gap: 6px !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

html body .orpon-v165-support .guardian-contact-link,
html body .orpon-v165-support .orpon-share-button[data-orpon-native-share] {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex: 1 1 0 !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 78px !important;
    height: auto !important;
    padding: 0 2px !important;
    margin: 0 !important;
    background: transparent !important;
    color: var(--purchase-text) !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    text-decoration: none !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: center !important;
    line-height: 1.4 !important;
    animation: none !important;
    transform: none !important;
}

html body .orpon-v165-support .guardian-contact-link > i,
html body .orpon-v165-support .guardian-contact-link > svg,
html body .orpon-v165-support [data-orpon-native-share] > i {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    padding: 12px !important;
    margin: 0 auto !important;
    border: 1px solid var(--purchase-border) !important;
    border-radius: 50% !important;
    background: var(--purchase-soft) !important;
    color: var(--purchase-text) !important;
    font-size: 21px !important;
    box-shadow: none !important;
    filter: none !important;
}

html body .orpon-v165-support .guardian-whatsapp > svg {
    background: #e8f3e9 !important;
    border-color: #bdd4c0 !important;
    padding: 8px !important;
}

html body .orpon-v165-support .guardian-contact-link > small {
    display: none !important;
}

html body .orpon-v165-support .orpon-product-share {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

html body .orpon-v165-support .orpon-share-actions {
    display: flex !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

html body .orpon-v165-support .guardian-contact-link:hover > i,
html body .orpon-v165-support .guardian-contact-link:hover > svg,
html body .orpon-v165-support [data-orpon-native-share]:hover > i {
    filter: brightness(.94) !important;
}

html body .orpon-purchase-v165 button:focus-visible,
html body .orpon-purchase-v165 input:focus-visible,
html body .orpon-v165-support a:focus-visible,
html body .orpon-v165-support button:focus-visible {
    outline: 2px solid var(--purchase-text) !important;
    outline-offset: 3px !important;
}

@media (max-width: 575px) {
    html body .guardian-buy-area.orpon-purchase-v165 {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
    }

    html body .orpon-purchase-v165 .qty-cart {
        grid-row: 1 !important;
    }

    html body .orpon-purchase-v165 .guardian-order-action {
        grid-row: 2 !important;
    }

    html body .orpon-purchase-v165 .store-action-secondary {
        grid-row: 3 !important;
    }

    html body .orpon-purchase-v165 .store-action {
        min-height: 50px !important;
        font-size: 16px !important;
    }

    html body .orpon-v165-support .guardian-contact-link,
    html body .orpon-v165-support [data-orpon-native-share] {
        font-size: 12px !important;
        overflow-wrap: anywhere;
    }

    html body .orpon-v165-support .guardian-contact-link > i,
    html body .orpon-v165-support .guardian-contact-link > svg,
    html body .orpon-v165-support [data-orpon-native-share] > i {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        padding: 10px !important;
        font-size: 19px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .orpon-purchase-v165 *,
    .orpon-v165-support * {
        transition: none !important;
    }
}


/*
 * V16.5.1 - Heritage Purchase Refinement
 * Central shared design for all six themes.
 */

html body .guardian-buy-area.orpon-purchase-v165,
html body .orpon-v165-support {
    width: 100% !important;
    max-width: 500px !important;
    margin-inline: 0 !important;
    box-sizing: border-box !important;
}

/* Theme-based order button */

html body .guardian-buy-area.orpon-purchase-v165
.guardian-order-action.guardian-order-action {
    --purchase-order-color: var(--orpon-text, #59683d);

    background: var(--purchase-order-color) !important;

    background: color-mix(
        in srgb,
        var(--purchase-order-color) 82%,
        var(--purchase-surface, #eeefe4)
    ) !important;

    background-image: none !important;
    color: #ffffff !important;
    border: 1px solid transparent !important;
    border-radius: 9px !important;
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
    animation: none !important;
    transform: none !important;
}

html body .guardian-buy-area.orpon-purchase-v165
.guardian-order-action.guardian-order-action::before,
html body .guardian-buy-area.orpon-purchase-v165
.guardian-order-action.guardian-order-action::after {
    content: none !important;
    display: none !important;
}

html body .guardian-buy-area.orpon-purchase-v165
.guardian-order-action.guardian-order-action:hover {
    filter: brightness(.93) !important;
}

/* Equal purchase button widths */

html body .guardian-buy-area.orpon-purchase-v165
.store-action.store-action {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    justify-self: stretch !important;
    min-height: 50px !important;
}

/* Compact four-action support row */

html body .orpon-v165-support.orpon-v165-support {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    gap: 8px !important;
    padding: 14px 0 4px !important;
}

html body .orpon-v165-support
.guardian-contact-actions.guardian-contact-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    flex: 3 1 0 !important;
    gap: 8px !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Remove old share card appearance */

html body .orpon-v165-support
.orpon-product-share.orpon-product-share,
html body .orpon-v165-support
.orpon-share-actions.orpon-share-actions {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
    max-width: none !important;
}

html body .orpon-v165-support
.orpon-product-share.orpon-product-share {
    flex: 1 1 0 !important;
}

html body .orpon-v165-support
.guardian-contact-link.guardian-contact-link,
html body .orpon-v165-support
.orpon-share-button[data-orpon-native-share],
html body .orpon-v165-support
button[data-orpon-native-share] {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 72px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    background-image: none !important;
    color: var(--purchase-text) !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    transform: none !important;
    animation: none !important;
}

html body .orpon-v165-support
[data-orpon-native-share]::before,
html body .orpon-v165-support
[data-orpon-native-share]::after {
    content: none !important;
    display: none !important;
}

/* Uniform icon dimensions */

html body .orpon-v165-support
.guardian-contact-link > i,
html body .orpon-v165-support
.guardian-contact-link > svg,
html body .orpon-v165-support
[data-orpon-native-share] > i {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    margin: 0 auto !important;
    box-shadow: none !important;
}

html body .orpon-v165-support
[data-orpon-native-share] > span {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: inherit !important;
    padding: 0 !important;
    font-size: inherit !important;
}

/* Mobile refinement */

@media (max-width: 575px) {
    html body .guardian-buy-area.orpon-purchase-v165,
    html body .orpon-v165-support.orpon-v165-support {
        width: 100% !important;
        max-width: 100% !important;
    }

    html body .orpon-v165-support.orpon-v165-support,
    html body .orpon-v165-support
    .guardian-contact-actions.guardian-contact-actions {
        gap: 3px !important;
    }

    html body .orpon-v165-support
    .guardian-contact-link.guardian-contact-link,
    html body .orpon-v165-support
    [data-orpon-native-share] {
        font-size: clamp(10px, 2.7vw, 12px) !important;
        gap: 6px !important;
    }

    html body .orpon-v165-support
    .guardian-contact-link > i,
    html body .orpon-v165-support
    .guardian-contact-link > svg,
    html body .orpon-v165-support
    [data-orpon-native-share] > i {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
    }
}


/*
 * V16.5.2
 * Scoped purchase panel cascade correction.
 * All six appearance presets.
 */

/* Purchase panel dimensions */

html body.gotop
.guardian-buy-area.orpon-purchase-v165 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: 420px !important;
    column-gap: 10px !important;
    row-gap: 10px !important;
    margin-inline: 0 !important;
}

html body.gotop
.guardian-buy-area.orpon-purchase-v165
> .qty-cart {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: none !important;
}

/* Exact order button selector */

html body.gotop
.guardian-buy-area.orpon-purchase-v165
> button.store-action.store-action-primary.guardian-order-action.orpon-ultra-order[name="order_now"] {
    background: var(--orpon-text, #59683d) !important;

    background-color: color-mix(
        in srgb,
        var(--orpon-text, #414831) 78%,
        var(--orpon-surface, #eeefe4) 22%
    ) !important;

    background-image: none !important;
    color: #ffffff !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 50px !important;
    min-height: 50px !important;
    margin: 0 !important;
    padding: 10px 8px !important;
    border: 1px solid transparent !important;
    border-radius: 9px !important;
    box-shadow: none !important;
    text-shadow: none !important;
    animation: none !important;
    transform: none !important;
    justify-self: stretch !important;
    font-size: 17px !important;
}

html body.gotop
.guardian-buy-area.orpon-purchase-v165
> button.store-action.guardian-order-action.orpon-ultra-order[name="order_now"]::before,
html body.gotop
.guardian-buy-area.orpon-purchase-v165
> button.store-action.guardian-order-action.orpon-ultra-order[name="order_now"]::after {
    content: none !important;
    display: none !important;
    background: none !important;
    box-shadow: none !important;
}

/* Cart button: preserve theme color */

html body.gotop
.guardian-buy-area.orpon-purchase-v165
> input.store-action.store-action-secondary[name="add_cart"] {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 50px !important;
    min-height: 50px !important;
    margin: 0 !important;
    padding: 10px 8px !important;
    justify-self: stretch !important;
    border-radius: 9px !important;
    font-size: 17px !important;
}

/* Four equal support actions */

html body.gotop
.orpon-v165-support.orpon-v165-support {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 420px !important;
    gap: 6px !important;
    padding: 14px 0 5px !important;
    margin-inline: 0 !important;
}

html body.gotop
.orpon-v165-support
> .guardian-contact-actions {
    display: contents !important;
}

html body.gotop
.orpon-v165-support
> .orpon-product-share[data-orpon-share] {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

html body.gotop
.orpon-v165-support
.orpon-product-share[data-orpon-share]
> .orpon-share-actions {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Exact share button selector */

html body.gotop
.orpon-v165-support
.orpon-product-share[data-orpon-share]
.orpon-share-actions
> button.orpon-share-button[data-orpon-native-share] {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 72px !important;
    height: auto !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    background-image: none !important;
    color: var(--orpon-text, #414831) !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    transform: none !important;
    animation: none !important;
}

html body.gotop
.orpon-v165-support
.orpon-product-share[data-orpon-share]
.orpon-share-actions
> button.orpon-share-button[data-orpon-native-share]::before,
html body.gotop
.orpon-v165-support
.orpon-product-share[data-orpon-share]
.orpon-share-actions
> button.orpon-share-button[data-orpon-native-share]::after {
    content: none !important;
    display: none !important;
}

/* Equal circular icon sizes */

html body.gotop
.orpon-v165-support
.guardian-contact-link > i,
html body.gotop
.orpon-v165-support
.guardian-contact-link > svg,
html body.gotop
.orpon-v165-support
button.orpon-share-button[data-orpon-native-share] > i {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
    border-radius: 50% !important;
}

html body.gotop
.orpon-v165-support
.guardian-contact-link,
html body.gotop
.orpon-v165-support
button.orpon-share-button[data-orpon-native-share] {
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    text-align: center !important;
}

/* Preserve hidden copy action */

html body.gotop
.orpon-v165-support
button[data-orpon-copy][hidden] {
    display: none !important;
}

/* Mobile */

@media (max-width: 575px) {
    html body.gotop
    .guardian-buy-area.orpon-purchase-v165 {
        grid-template-columns: minmax(0, 1fr) !important;
        max-width: 100% !important;
    }

    html body.gotop
    .guardian-buy-area.orpon-purchase-v165
    > button[name="order_now"] {
        grid-row: 2 !important;
    }

    html body.gotop
    .guardian-buy-area.orpon-purchase-v165
    > input[name="add_cart"] {
        grid-row: 3 !important;
    }

    html body.gotop
    .orpon-v165-support.orpon-v165-support {
        max-width: 100% !important;
        gap: 3px !important;
    }

    html body.gotop
    .orpon-v165-support
    .guardian-contact-link,
    html body.gotop
    .orpon-v165-support
    .orpon-product-share[data-orpon-share]
    .orpon-share-actions
    > button.orpon-share-button[data-orpon-native-share] {
        font-size: clamp(10px, 2.65vw, 12px) !important;
    }

    html body.gotop
    .orpon-v165-support
    .guardian-contact-link > i,
    html body.gotop
    .orpon-v165-support
    .guardian-contact-link > svg,
    html body.gotop
    .orpon-v165-support
    button.orpon-share-button[data-orpon-native-share] > i {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
    }
}
