/* The price controls share the storefront's responsive layout in split-page-product. */
#productBuyBlock {
    container: price-panel / inline-size;
}

#productBuyBlock > .product-price-block {
    border-color: rgba(0, 122, 255, .2) !important;
    background: linear-gradient(145deg, #fff, #f8fbff 25%, #eff6ff 50%, #e3f0ff) !important;
    box-shadow: 0 12px 48px rgba(0, 122, 255, .12), 0 6px 24px rgba(0, 0, 0, .08),
        inset 0 0 0 1px rgba(255, 255, 255, .95), inset 0 -2px rgba(0, 122, 255, .06) !important;
}

#productBuyBlock > .product-price-block:hover { border-color: rgba(0, 122, 255, .35) !important; }
#productBuyBlock > .product-price-block::before {
    background: linear-gradient(135deg, rgba(0, 122, 255, .06), rgba(72, 157, 255, .03) 50%, transparent);
}
#productBuyBlock > .product-price-block::after {
    background: radial-gradient(circle, rgba(0, 122, 255, .1), transparent 70%);
}

#productBuyBlock .price-choice-main { flex: 1 1 0; }
#productBuyBlock .price-choice-toggle { flex: 0 1 48%; }
#productBuyBlock .price-choice-note,
#productBuyBlock .price-choice-installment { color: #53657b; }
#productBuyBlock .price-choice-installment { align-self: flex-start; text-decoration: none; }
#productBuyBlock .price-choice-installment:hover,
#productBuyBlock .price-choice-installment:focus-visible { text-decoration: underline; }

:is(#productBuyBlock, .product-mobile-price) a.price-choice-terms {
    background: #075bb6;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

#productBuyBlock .price-tier-main .price-tier-label,
#productBuyBlock .price-tier-main .price-tier-label i,
#productBuyBlock .price-payment-note,
#productBuyBlock .price-payment-note i { color: #0058c8 !important; }

#productBuyBlock .price-tier-main .price-tier-value-main {
    background: linear-gradient(135deg, #0058c8, #007aff) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
}

#productBuyBlock .price-payment-note {
    background: rgba(0, 122, 255, .08) !important;
    border-color: rgba(0, 122, 255, .15) !important;
}
#productBuyBlock .price-badge-wrapper { border-left-color: rgba(0, 122, 255, .15) !important; }
#productBuyBlock .price-stack::before {
    background: linear-gradient(180deg, #8e8e9340, #8e8e9326 30%, #007aff33 70%, #007aff66) !important;
}
#productBuyBlock .price-tier-main::after {
    background: linear-gradient(90deg, transparent, #007aff33 20%, #007aff66 50%, #007aff33 80%, transparent) !important;
}

.imoff-sku-promo-link[href] {
    color: #a31a27;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: .15em;
}

.product-action-primary .btn-cart-detail,
.product-action-primary .btn-order-detail,
#stickyProductBar :is(.btn-cart-sticky, .btn-order-sticky) {
    background: linear-gradient(135deg, #0048ab, #0069d9 55%, #0058c8) !important;
    background-size: 200% 100% !important;
    color: #fff !important;
    border-color: #0058c8 !important;
    box-shadow: 0 5px 18px rgba(0, 90, 190, .24) !important;
}
.product-action-primary .btn-buy-detail,
.product-action-primary :is(.btn-installment-detail, .btn-credit-detail),
#stickyProductBar .btn-buy-sticky {
    background: #fff !important;
    color: #064f9d !important;
    border-color: #89b8eb !important;
}
#buyOneClickBtn :is(i, span),
.product-action-primary :is(.btn-installment-detail, .btn-credit-detail) :is(i, span),
#stickyProductBar .btn-buy-sticky :is(i, span) { color: inherit !important; }
.product-action-primary :is(.btn-buy-detail, .btn-installment-detail, .btn-credit-detail):hover,
#stickyProductBar .btn-buy-sticky:hover {
    background: #eaf4ff !important;
    color: #004591 !important;
    border-color: #2877ce !important;
    box-shadow: 0 5px 16px rgba(0, 90, 190, .18) !important;
}
.product-hero-light .info-card-icon-purple {
    background: linear-gradient(135deg, #007aff, #0058c8) !important;
    box-shadow: 0 3px 10px rgba(0, 95, 190, .2) !important;
}
#productVariantOptions :is(.memory-option-detail, .sim-option-detail).active {
    background: #075bb6;
    border-color: #075bb6;
    color: #fff;
    box-shadow: 0 3px 9px rgba(0, 95, 190, .18);
}

.purchase-request-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 14px;
    padding: 8px 18px;
    border: 0;
    border-radius: 12px;
    background: #0058c8;
    color: #fff;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}
.purchase-request-action[hidden] { display: none; }

:is(#productBuyBlock, .product-mobile-price, #stickyProductBar) :is(a, button):focus-visible {
    outline: 2px solid #0058c8;
    outline-offset: 3px;
}

@container price-panel (max-width: 515px) {
    #productBuyBlock > .product-price-block--choice {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    #productBuyBlock .price-choice-toggle {
        width: 100%;
        padding: 10px 0 0;
        border: 0;
        border-top: 1px solid rgba(0, 0, 0, .08);
    }
    #productBuyBlock .price-tier-on-request .price-tier-value-main {
        font-size: clamp(20px, 5vw, 28px) !important;
        white-space: normal;
    }
}

@media (max-width: 992px) {
    .product-mobile-price { background: #f5f9ff; }
    .product-mobile-price .pmp-cta { background: #075bb6; color: #fff; }
    .product-mobile-price .pmp-cta:is(:hover, :focus-visible) { background: #004791; }
    .product-mobile-price .pmp-request-title { font-size: 1.2rem; font-weight: 700; }
    .product-mobile-price .pmp-cta.btn-order-detail { border: 0; width: 100%; }
}

@media (max-width: 375px) {
    #productBuyBlock > .product-price-block:not(.product-price-block--choice) { flex-wrap: wrap; }
    #productBuyBlock .price-badge-wrapper { padding-left: 0; border-left: 0; }
    #stickyProductBar .sticky-product-price { flex-wrap: wrap; gap: 2px 6px; }
}

@media (forced-colors: active) {
    #productBuyBlock .price-tier-main .price-tier-value-main { -webkit-text-fill-color: CanvasText !important; }
}
