/*
| RR_PRODUCT_CARD_TABLET_BUTTON_AUTHORITY_V1
| Loaded after the older product-card stack. Tablet must use a clean text button.
*/
@media (min-width: 641px) and (max-width: 1180px) {
    html body:not(.admin) main article.rr-central-product-card > form.rr-mobile-product-add-form {
        display: block !important;
        position: relative !important;
        inset: auto !important;
        width: calc(100% - 32px) !important;
        max-width: calc(100% - 32px) !important;
        height: auto !important;
        margin: 0 16px 18px !important;
        padding: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        overflow: visible !important;
        pointer-events: auto !important;
        transform: none !important;
        translate: none !important;
        box-sizing: border-box !important;
        z-index: 30 !important;
    }

    html body:not(.admin) main article.rr-central-product-card > form.rr-mobile-product-add-form > button.rr-mobile-product-add-btn,
    html body:not(.admin) main article.rr-central-product-card > form.rr-mobile-product-add-form > button.shared-product-cart-btn,
    html body:not(.admin) main article.rr-central-product-card > form.rr-mobile-product-add-form > button[type="submit"] {
        position: relative !important;
        inset: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: 52px !important;
        min-height: 52px !important;
        max-height: 52px !important;
        margin: 0 !important;
        padding: 0 18px !important;
        border: 0 !important;
        border-radius: 14px !important;
        background: var(--rr-lc-primary, var(--rr-card-theme-accent, var(--products-accent, #f97316))) !important;
        background-image: none !important;
        color: var(--rr-lc-highlight-text, #ffffff) !important;
        box-shadow: 0 12px 24px color-mix(in srgb, var(--rr-lc-primary, var(--products-accent, #f97316)) 18%, transparent) !important;
        font-size: 17px !important;
        font-weight: 750 !important;
        line-height: 1 !important;
        letter-spacing: 0 !important;
        text-align: center !important;
        text-transform: none !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        cursor: pointer !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
        transform: none !important;
        translate: none !important;
        box-sizing: border-box !important;
        appearance: none !important;
        -webkit-appearance: none !important;
    }

    html body:not(.admin) main article.rr-central-product-card > form.rr-mobile-product-add-form > button.rr-mobile-product-add-btn::before,
    html body:not(.admin) main article.rr-central-product-card > form.rr-mobile-product-add-form > button.rr-mobile-product-add-btn::after,
    html body:not(.admin) main article.rr-central-product-card > form.rr-mobile-product-add-form > button.shared-product-cart-btn::before,
    html body:not(.admin) main article.rr-central-product-card > form.rr-mobile-product-add-form > button.shared-product-cart-btn::after,
    html body:not(.admin) main article.rr-central-product-card > form.rr-mobile-product-add-form > button[type="submit"]::before,
    html body:not(.admin) main article.rr-central-product-card > form.rr-mobile-product-add-form > button[type="submit"]::after,
    html body:not(.admin) main article.rr-central-product-card > form.rr-mobile-product-add-form > button.rr-mobile-product-add-btn > svg,
    html body:not(.admin) main article.rr-central-product-card > form.rr-mobile-product-add-form > button.shared-product-cart-btn > svg,
    html body:not(.admin) main article.rr-central-product-card > form.rr-mobile-product-add-form > button[type="submit"] > svg {
        content: none !important;
        display: none !important;
        width: 0 !important;
        min-width: 0 !important;
        max-width: 0 !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
        flex: 0 0 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        background: transparent !important;
        background-image: none !important;
        border: 0 !important;
        box-shadow: none !important;
        transform: none !important;
        pointer-events: none !important;
    }

    html body:not(.admin) main article.rr-central-product-card > form.rr-mobile-product-add-form > button.rr-mobile-product-add-btn > span,
    html body:not(.admin) main article.rr-central-product-card > form.rr-mobile-product-add-form > button.shared-product-cart-btn > span,
    html body:not(.admin) main article.rr-central-product-card > form.rr-mobile-product-add-form > button[type="submit"] > span {
        display: block !important;
        position: static !important;
        max-width: 100% !important;
        color: inherit !important;
        font: inherit !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        transform: none !important;
        pointer-events: none !important;
    }
}

/* Phone cards use the same clean button rule, just smaller. */
@media (max-width: 640px) {
    html body:not(.admin) main article.rr-central-product-card > form.rr-mobile-product-add-form > button.rr-mobile-product-add-btn,
    html body:not(.admin) main article.rr-central-product-card > form.rr-mobile-product-add-form > button.shared-product-cart-btn,
    html body:not(.admin) main article.rr-central-product-card > form.rr-mobile-product-add-form > button[type="submit"] {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
        padding: 0 8px !important;
        border-radius: 9px !important;
        background: var(--rr-lc-primary, var(--rr-card-theme-accent, var(--products-accent, #f97316))) !important;
        background-image: none !important;
        color: var(--rr-lc-highlight-text, #ffffff) !important;
        font-size: 11.5px !important;
        font-weight: 750 !important;
        line-height: 1 !important;
        overflow: hidden !important;
        cursor: pointer !important;
        pointer-events: auto !important;
        transform: none !important;
        box-sizing: border-box !important;
    }

    html body:not(.admin) main article.rr-central-product-card > form.rr-mobile-product-add-form > button.rr-mobile-product-add-btn::before,
    html body:not(.admin) main article.rr-central-product-card > form.rr-mobile-product-add-form > button.rr-mobile-product-add-btn::after,
    html body:not(.admin) main article.rr-central-product-card > form.rr-mobile-product-add-form > button.shared-product-cart-btn::before,
    html body:not(.admin) main article.rr-central-product-card > form.rr-mobile-product-add-form > button.shared-product-cart-btn::after,
    html body:not(.admin) main article.rr-central-product-card > form.rr-mobile-product-add-form > button[type="submit"]::before,
    html body:not(.admin) main article.rr-central-product-card > form.rr-mobile-product-add-form > button[type="submit"]::after,
    html body:not(.admin) main article.rr-central-product-card > form.rr-mobile-product-add-form > button.rr-mobile-product-add-btn > svg,
    html body:not(.admin) main article.rr-central-product-card > form.rr-mobile-product-add-form > button.shared-product-cart-btn > svg,
    html body:not(.admin) main article.rr-central-product-card > form.rr-mobile-product-add-form > button[type="submit"] > svg {
        content: none !important;
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        min-width: 0 !important;
        min-height: 0 !important;
        opacity: 0 !important;
        flex: 0 0 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        transform: none !important;
        pointer-events: none !important;
    }

    html body:not(.admin) main article.rr-central-product-card > form.rr-mobile-product-add-form > button.rr-mobile-product-add-btn > span,
    html body:not(.admin) main article.rr-central-product-card > form.rr-mobile-product-add-form > button.shared-product-cart-btn > span,
    html body:not(.admin) main article.rr-central-product-card > form.rr-mobile-product-add-form > button[type="submit"] > span {
        display: block !important;
        max-width: 100% !important;
        color: inherit !important;
        font: inherit !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        transform: none !important;
    }
}
