/* Custom site styles — loaded after bootstrap.min.css, so rules here override Bootstrap defaults */

.utility-pro-thin {
    font-family: "ff-utility-web-pro", sans-serif;
    font-weight: 100;
    font-style: normal;
}

.utility-pro-thin-italic {
    font-family: "ff-utility-web-pro", sans-serif;
    font-weight: 100;
    font-style: italic;
}

.utility-pro {
    font-family: "ff-utility-web-pro", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.utility-pro-italic {
    font-family: "ff-utility-web-pro", sans-serif;
    font-weight: 400;
    font-style: italic;
}

.utility-pro-bold {
    font-family: "ff-utility-web-pro", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.utility-pro-bold-italic {
    font-family: "ff-utility-web-pro", sans-serif;
    font-weight: 700;
    font-style: italic;
}

.utility-pro-black,
.utility-pro-black * {
    font-family: "ff-utility-web-pro", sans-serif !important;
    font-weight: 900 !important;
    font-style: normal;
}

.utility-pro-black-italic,
.utility-pro-black-italic * {
    font-family: "ff-utility-web-pro", sans-serif !important;
    font-weight: 900 !important;
    font-style: italic !important;
}

.utility-pro-black .utility-pro,
.utility-pro-black .utility-pro * {
    font-family: "ff-utility-web-pro", sans-serif !important;
    font-weight: 400 !important;
    font-style: normal !important;
}

.utility-pro-black .utility-pro-italic,
.utility-pro-black .utility-pro-italic * {
    font-family: "ff-utility-web-pro", sans-serif !important;
    font-weight: 400 !important;
    font-style: italic !important;
}

/* ==========================================================================================================
   Cart, log-in, account and checkout pages.
   Colors and sizes are defined once as variables here; the pages carry no <style> blocks of their own.
   Rules that restyle Bootstrap form controls are scoped (.checkout-page, .auth-card) so they cannot leak into
   the header, footer or the rest of the site.
   ========================================================================================================== */
:root {
    --mill-navy: #202564;
    --mill-navy-dark: #171b4c;
    --mill-navy-soft: rgba(32, 37, 100, .14);
    --mill-border: #d5d9d9;
    --mill-surface: #f7f8f8;
    --mill-thumb-bg: #f1f3f5;
    --mill-divider: #ddd;
    --mill-muted: #6b7280;
    --mill-field-bg: #f3f4f7;
    --mill-field-border: #e1e4ea;
    --mill-field-border-hover: #c5cad4;
    --mill-input-border: #888c8c;
    --mill-info-bg: #f3f8fc;
    --mill-info-border: #a7c8df;
    --mill-selected-border: #7aa7c7;
    --mill-valid: #2e9e5b;
    --mill-invalid: #c9302c;
    --mill-blue: #0d6efd;
    --mill-blue-dark: #0b5ed7;
    --mill-blue-darker: #0a58ca;
    --mill-green: #198754;
    --mill-green-dark: #157347;
    --mill-green-darker: #146c43;
}

/* ---- Boxed sections (cart, account, checkout) and the order summary ---- */
.cart-section, .account-section, .checkout-section { border: 1px solid var(--mill-border); border-radius: 8px; overflow: hidden; }
.section-heading { background: var(--mill-surface); border-bottom: 1px solid var(--mill-border); }
.section-number { align-items: center; background: var(--mill-navy); border-radius: 50%; color: #fff; display: inline-flex; flex: 0 0 28px; height: 28px; justify-content: center; width: 28px; }
.account-nav a { text-decoration: none; }
.summary-panel { position: sticky; top: 1rem; }
.summary-card { border: 1px solid var(--mill-border); border-radius: 8px; }
.summary-line { display: flex; justify-content: space-between; margin-bottom: .45rem; }
.summary-total { border-top: 1px solid var(--mill-divider); color: #000; font-size: 1.25rem; font-weight: 700; }
.product-image, .item-thumb { align-items: center; background: var(--mill-thumb-bg); border: 1px solid var(--mill-divider); border-radius: 6px; display: flex; justify-content: center; }
.product-image { flex: 0 0 110px; height: 110px; width: 110px; }
.item-thumb { flex: 0 0 64px; height: 64px; width: 64px; }
.quantity-select { width: auto; }
.shipping-choice { cursor: pointer; }
.checkout-nav-action { max-width: 100%; white-space: nowrap; }
@media (max-width: 991.98px) { .summary-panel { position: static; } }
@media (max-width: 575.98px) {
    .product-image { flex-basis: 75px; height: 75px; width: 75px; }
    .checkout-nav-action { font-size: .75rem; padding: .375rem .45rem; }
}

/* ---- Checkout page form ---- */
.checkout-page main .form-label { font-size: .9rem; font-weight: 700; margin-bottom: .25rem; }
.checkout-page main .form-control, .checkout-page main .form-select { border-color: var(--mill-input-border); border-radius: 7px; box-shadow: inset 0 1px 2px rgba(15, 17, 17, .1); }
.same-address-panel { background: var(--mill-info-bg); border: 1px solid var(--mill-info-border); border-radius: 7px; }
.payment-option { border: 1px solid var(--mill-border); border-radius: 7px; }
.payment-option:has(.form-check-input[type="radio"]:checked) { background: var(--mill-info-bg); border-color: var(--mill-selected-border); }
.card-brand { background: var(--mill-navy); border-radius: 4px; color: #fff; display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .04em; padding: .25rem .4rem; }

/* ---- Log-in / create-account card ---- */
.auth-card { margin: 0 auto; max-width: 460px; padding: 0; }
.auth-card--wide { max-width: 520px; }
.auth-card h1 { color: var(--mill-navy); font-size: 1.6rem; font-weight: 700; }
.auth-card a { color: var(--mill-navy); }
.auth-card a:hover { color: var(--mill-navy-dark); }

/* Softer, rounded fields with a clear brand-colored focus state */
.auth-card .form-control, .auth-card .form-select { background-color: var(--mill-field-bg); border: 1px solid var(--mill-field-border); border-radius: 12px; transition: background-color .15s, border-color .15s, box-shadow .15s; }
.auth-card .form-control:hover, .auth-card .form-select:hover { border-color: var(--mill-field-border-hover); }
.auth-card .form-control:focus, .auth-card .form-select:focus { background-color: #fff; border-color: var(--mill-navy); box-shadow: 0 0 0 .25rem var(--mill-navy-soft); }
.auth-card .form-floating > .form-control { height: calc(2.4rem + 2px); min-height: 0; padding: 1rem .75rem .2rem; font-size: .95rem; }
.auth-card .form-floating > label { font-size: .9rem; padding: .45rem .75rem; }
.auth-card .form-select { padding-bottom: .4rem; padding-top: .4rem; }
.auth-card .form-control.is-valid { border-color: var(--mill-valid); }
.auth-card .form-control.is-invalid { border-color: var(--mill-invalid); }
.auth-card .form-control.is-valid:focus { box-shadow: 0 0 0 .25rem rgba(46, 158, 91, .18); }
.auth-card .form-control.is-invalid:focus { box-shadow: 0 0 0 .25rem rgba(201, 48, 44, .18); }
.auth-card .invalid-feedback, .auth-card .field-hint { font-size: .8rem; margin-top: .2rem; }

/* Show/hide password (also used by the checkout phone and password boxes) */
.pw-field { position: relative; }
.pw-field .form-control { padding-right: 2.6rem; }
/* Edge/IE draw their own reveal and clear buttons in password boxes; the page has its own */
.pw-field input::-ms-reveal, .pw-field input::-ms-clear { display: none; }
.pw-field input::-webkit-credentials-auto-fill-button { visibility: hidden; pointer-events: none; position: absolute; right: 0; }
.pw-toggle { align-items: center; background: none; border: 0; border-radius: 8px; color: var(--mill-muted); display: flex; height: 2rem; justify-content: center; padding: 0; position: absolute; right: .4rem; top: .3rem; width: 2rem; z-index: 5; }
.pw-toggle:hover { background: #e6e8ee; color: var(--mill-navy); }
.pw-toggle:focus-visible { box-shadow: 0 0 0 .2rem var(--mill-navy-soft); outline: 0; }
.pw-toggle svg { height: 1.15rem; width: 1.15rem; }

/* Buttons: brand navy, with hover lift and a focus ring */
.auth-card .btn { border-radius: 10px; font-size: 1rem; font-weight: 600; padding: .5rem 1rem; transition: background-color .15s, border-color .15s, box-shadow .15s, transform .1s; }
.auth-card .btn:active:not(:disabled) { transform: translateY(1px); }
.auth-card .btn:focus-visible { box-shadow: 0 0 0 .25rem var(--mill-navy-soft); outline: 0; }
.btn-brand { background: var(--mill-navy); border-color: var(--mill-navy); color: #fff; }
.btn-brand:hover, .btn-brand:focus { background: var(--mill-navy-dark); border-color: var(--mill-navy-dark); color: #fff; box-shadow: 0 4px 12px rgba(32, 37, 100, .25); }
/* Create Online Account: the site blue (as on the cart "Add" button). Checkout as Guest: the site green (as on Secure Checkout). */
.btn-create { background: var(--mill-blue); border-color: var(--mill-blue); color: #fff; }
.btn-create:hover, .btn-create:focus { background: var(--mill-blue-dark); border-color: var(--mill-blue-darker); color: #fff; box-shadow: 0 4px 12px rgba(13, 110, 253, .28); }
.btn-guest { background: var(--mill-green); border-color: var(--mill-green); color: #fff; }
.btn-guest:hover, .btn-guest:focus { background: var(--mill-green-dark); border-color: var(--mill-green-darker); color: #fff; box-shadow: 0 4px 12px rgba(25, 135, 84, .28); }

.auth-divider { align-items: center; color: var(--mill-muted); display: flex; font-size: .85rem; gap: .75rem; margin: 1.25rem 0; }
.auth-divider::before, .auth-divider::after { background: var(--mill-border); content: ""; flex: 1; height: 1px; }

/* Smooth switch between the log-in and create-account views */
@keyframes authEnter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.auth-enter { animation: authEnter .28s ease-out; }
@media (prefers-reduced-motion: reduce) { .auth-enter { animation: none; } .auth-card .btn, .auth-card .form-control { transition: none; } }

/* ---- Checkout card entry ---- */
/* The security code box: same look as the other fields, digits hidden, and no wider than it needs to be */
.checkout-page main .cvv-input { letter-spacing: .15em; max-width: 8rem; }
.checkout-page main .cvv-input::placeholder { letter-spacing: normal; }
/* CardConnect's card frame: one line (number, month / year); the page makes it taller when it is narrow enough to wrap */
.token-frame { display: block; height: 44px; width: 100%; }
/* Shown instead of the card form when a card number has already been entered */
.card-entered { align-items: center; background: var(--mill-info-bg); border: 1px solid var(--mill-info-border); border-radius: 7px; display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between; padding: .5rem .75rem; }
