/* 4hifi purchase colours. Shared by the Hyva cart drawer and Luma checkout. */
/* Luma's desktop left:50% assumes a fixed negative margin; center the resized agreement instead. */
@media (min-width: 768px) {
    body.checkout-index-index.ip-checkout .modal-popup.agreements-modal .modal-inner-wrap {
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;
    }
}

body.checkout-index-index.ip-checkout,
body #cart-drawer {
    --hifi-purchase-red: #dd0b35;
    --hifi-purchase-red-hover: #b6092b;
    --hifi-purchase-text: #28282c;
    --hifi-purchase-muted: #62626a;
    --hifi-purchase-border: #e0e0e6;
    --hifi-purchase-soft: #f6f6f8;
    --ip-primary: var(--hifi-purchase-red);
    color: var(--hifi-purchase-text);
}

body.checkout-index-index.ip-checkout {
    --ip-checkout-primary: var(--hifi-purchase-red);
    --ip-checkout-primary-dark: var(--hifi-purchase-red-hover);
    --ip-checkout-accent: var(--hifi-purchase-red);
    --ip-checkout-text: var(--hifi-purchase-text);
    --ip-checkout-muted: var(--hifi-purchase-muted);
    --ip-checkout-border: var(--hifi-purchase-border);
    --ip-checkout-surface: #fff;
    --ip-checkout-soft: var(--hifi-purchase-soft);
    --ip-checkout-radius: 6px;
}

body.checkout-index-index.ip-checkout .opc-progress-bar-item > span,
body.checkout-index-index.ip-checkout .opc-progress-bar-item > span::before {
    color: var(--hifi-purchase-muted);
}
body.checkout-index-index.ip-checkout .opc-progress-bar-item > span::before {
    border-color: var(--hifi-purchase-border);
    background: var(--hifi-purchase-soft);
    font-family: inherit;
}
body.checkout-index-index.ip-checkout .opc-progress-bar-item._active > span,
body.checkout-index-index.ip-checkout .opc-progress-bar-item._complete > span {
    color: var(--hifi-purchase-text);
}
body.checkout-index-index.ip-checkout .opc-progress-bar-item._active > span::before,
body.checkout-index-index.ip-checkout .opc-progress-bar-item._complete > span::before {
    border-color: var(--hifi-purchase-red);
    background: var(--hifi-purchase-red);
    color: #fff;
}
body.checkout-index-index.ip-checkout .field .control :is(input, select, textarea),
body.checkout-index-index.ip-checkout .ip-order-comment textarea {
    border-color: #aaaab5;
    border-radius: 6px;
}
body.checkout-index-index.ip-checkout .field .control :is(input, select, textarea):focus,
body.checkout-index-index.ip-checkout .ip-order-comment textarea:focus {
    border-color: var(--hifi-purchase-red);
    box-shadow: 0 0 0 1px var(--hifi-purchase-red);
}
body.checkout-index-index.ip-checkout .field .control .mage-error {
    border-color: #b00026;
}
body.checkout-index-index.ip-checkout .action.primary,
body.checkout-index-index.ip-checkout .action.continue.primary,
body.checkout-index-index.ip-checkout .payment-method-content .action.primary {
    border-radius: 6px;
    text-transform: none;
}
body.checkout-index-index.ip-checkout :is(input[type=radio], input[type=checkbox]) {
    accent-color: var(--hifi-purchase-red);
}
body.checkout-index-index.ip-checkout #checkout a:not(.action.primary) {
    color: var(--hifi-purchase-text);
    text-decoration-color: var(--hifi-purchase-red);
}
body.checkout-index-index.ip-checkout #checkout a:not(.action.primary):hover {
    color: var(--hifi-purchase-red-hover);
}
body.checkout-index-index.ip-checkout .table-checkout-shipping-method .ip-shipping-rate.is-selected {
    background: #fff5f7;
}
body.checkout-index-index.ip-checkout .billing-address-details,
body.checkout-index-index.ip-checkout .ip-shipping-details {
    border-color: var(--hifi-purchase-border);
    background: var(--hifi-purchase-soft);
}
body.checkout-index-index.ip-checkout #checkout :is(a, button):focus-visible,
body #cart-drawer :is(a, button, input):focus-visible {
    outline: 2px solid var(--hifi-purchase-red);
    outline-offset: 3px;
}

body #cart-drawer {
    background: #fff;
    font-family: HifiRoboto, sans-serif;
    --color-primary: var(--hifi-purchase-red);
}
body #cart-drawer::backdrop { background: rgb(0 0 0 / 35%); }
body #cart-drawer #cart-drawer-title { color: #17171b; }
body #cart-drawer .btn {
    background: var(--hifi-purchase-soft);
    border-color: var(--hifi-purchase-border);
    color: var(--hifi-purchase-text);
    border-radius: 6px;
}
body #cart-drawer .btn:hover {
    background: #ececf0;
    border-color: #aaaab5;
}
body #cart-drawer .btn-primary {
    background: var(--hifi-purchase-red);
    border-color: var(--hifi-purchase-red);
    color: #fff;
}
body #cart-drawer .btn-primary:hover {
    background: var(--hifi-purchase-red-hover);
    border-color: var(--hifi-purchase-red-hover);
}
body #cart-drawer .btn-secondary {
    background: #fff;
    border-color: var(--hifi-purchase-border);
    color: var(--hifi-purchase-text);
}
body #cart-drawer .btn-secondary:hover {
    background: #fff5f7;
    border-color: var(--hifi-purchase-red);
    color: var(--hifi-purchase-red-hover);
}
body #cart-drawer button[aria-label][class*="bg-transparent"] {
    background: transparent;
    border-color: transparent;
}
body #cart-drawer .ip-minicart-qty { background: var(--hifi-purchase-soft); }
body #cart-drawer .ip-minicart-qty strong { color: var(--hifi-purchase-text); }
body #cart-drawer .ip-minicart-value-label { color: var(--hifi-purchase-muted); }
body #cart-drawer .divide-y > :not([hidden]) ~ :not([hidden]) {
    border-color: var(--hifi-purchase-border);
}
