/* ==========================================================================
   Checkout page
   --------------------------------------------------------------------------
   Restyles the WooCommerce Checkout block to match the cart page and the
   cart drawer: same tokens, same card, same buttons. Scoped to
   `body.woocommerce-checkout` so it follows whichever page WooCommerce is
   configured to use, in every environment — it replaces the `.page-id-12`
   rules that used to live in style.css.

   Enqueued after the other child-theme sheets (see inc/tobor-cart-ui.php),
   so equal-specificity rules here win.
   ========================================================================== */

body.woocommerce-checkout {
    --tc-ink: #101114;
    --tc-ink-mid: #5b606b;
    --tc-ink-soft: #8a8f99;
    --tc-line: #e4e6eb;
    --tc-line-mid: #d3d7de;
    --tc-surface: #fff;
    --tc-tile: #f7f8fa;
    --tc-blue: #506ccd;
    --tc-green: #99c300;
    --tc-green-dark: #6a8700;
    --tc-danger: #b4232a;
    --tc-radius: 16px;
    /* Fixed header is 93px tall; the sticky summary must clear it. */
    --tc-sticky-top: 117px;
}

/* --------------------------------------------------------------------------
   Page frame — mirrors the cart page
   -------------------------------------------------------------------------- */

body.woocommerce-checkout #content-pro {
    padding-top: 28px;
    padding-bottom: 64px;
}

/* The parent theme forces `width: 100% !important` on this container, so the
   cap has to come from max-width, which that rule cannot override. */
body.woocommerce-checkout #content-pro .width-container-pro {
    max-width: min(1320px, calc(100% - 48px));
}

body.woocommerce-checkout .wp-block-woocommerce-checkout {
    margin: 0;
}

/* Page heading block ("Checkout") authored in the editor. */
body.woocommerce-checkout .custom-heading {
    margin-top: 0 !important;
    margin-bottom: 8px;
}

body.woocommerce-checkout .page-content-pro h2 {
    text-transform: none;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

body.woocommerce-checkout .wc-block-components-sidebar-layout {
    align-items: start;
}

body.woocommerce-checkout .wc-block-components-main {
    padding-right: 40px;
}

body.woocommerce-checkout .wc-block-components-checkout-step {
    margin-bottom: 28px;
    padding: 0;
}

/* The guest-checkout line ends this step early, so its share of the section
   gap is smaller — otherwise the pause before Shipping Address reads double. */
body.woocommerce-checkout .wc-block-checkout__contact-fields {
    margin-bottom: 12px;
}

/* Express-payment containers reserve space while probing for Apple/Google
   Pay and can end up as a blank block when no wallet materialises (seen on
   iOS Safari). Collapse them unless they actually hold a button. */
body.woocommerce-checkout .wp-block-woocommerce-checkout-express-payment-block:empty,
body.woocommerce-checkout .wp-block-woocommerce-checkout-express-payment-block:not(:has(.wc-block-components-express-payment__event-buttons li)),
body.woocommerce-checkout .wc-block-components-express-payment--checkout:not(:has(.wc-block-components-express-payment__event-buttons li)),
body.woocommerce-checkout .wc-block-components-express-payment-continue-rule--checkout:not(:has(+ * .wc-block-components-express-payment__event-buttons li)) {
    display: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* The contact step reserves height for a login prompt it rarely shows. */
body.woocommerce-checkout .wc-block-checkout__contact-fields,
body.woocommerce-checkout .wc-block-checkout__contact-fields .wc-block-components-checkout-step__container,
body.woocommerce-checkout .wc-block-checkout__contact-fields .wc-block-components-checkout-step__content {
    height: auto !important;
    min-height: 0 !important;
}

body.woocommerce-checkout .wc-block-checkout__contact-fields .wc-block-components-checkout-step__content {
    display: block;
}

body.woocommerce-checkout .wc-block-checkout__contact-fields .wc-block-components-checkout-step__content > * {
    margin-bottom: 12px;
}

body.woocommerce-checkout .wc-block-checkout__contact-fields .wc-block-components-checkout-step__content > :empty {
    display: none !important;
}

/* --------------------------------------------------------------------------
   Section headings — quieter than the old 28px shout
   -------------------------------------------------------------------------- */

body.woocommerce-checkout .wc-block-components-title.wc-block-components-title {
    margin-bottom: 6px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--tc-ink);
}

body.woocommerce-checkout .wc-block-components-checkout-step__description {
    margin-bottom: 16px;
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--tc-ink-mid);
}

/* --------------------------------------------------------------------------
   Fields
   -------------------------------------------------------------------------- */

/* The phone field renders outside .wc-block-components-text-input, so it is
   matched by type as well. The #content-pro id is deliberate: the theme
   options print a generated stylesheet (progression_studios_custom_styles)
   whose checkout rules carry four classes and !important, and only an id
   outranks them. */
body.woocommerce-checkout #content-pro .wc-block-checkout__shipping-fields input[type="tel"],
body.woocommerce-checkout #content-pro .wc-block-checkout__billing-fields input[type="tel"],
body.woocommerce-checkout #content-pro .wc-block-checkout__contact-fields input[type="tel"],
body.woocommerce-checkout #content-pro .wc-block-components-text-input input,
body.woocommerce-checkout #content-pro .wc-block-components-text-input input:focus,
body.woocommerce-checkout #content-pro .wc-block-components-textarea,
body.woocommerce-checkout #content-pro .wc-block-components-textarea:focus,
body.woocommerce-checkout #content-pro .wc-block-components-combobox .wc-block-components-combobox-control .components-form-token-field,
body.woocommerce-checkout #content-pro .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
body.woocommerce-checkout #content-pro .wc-block-components-combobox .wc-block-components-combobox-control .components-form-token-field:focus-within {
    min-height: 46px;
    background: var(--tc-surface);
    border: 1px solid var(--tc-line-mid) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    color: var(--tc-ink);
}

body.woocommerce-checkout #content-pro .wc-block-components-text-input input:focus,
body.woocommerce-checkout #content-pro .wc-block-checkout__shipping-fields input[type="tel"]:focus,
body.woocommerce-checkout #content-pro .wc-block-components-textarea:focus,
body.woocommerce-checkout #content-pro .wc-block-components-combobox .wc-block-components-combobox-control .components-form-token-field:focus-within {
    border-color: var(--tc-blue) !important;
    outline: 2px solid rgba(80, 108, 205, 0.25);
    outline-offset: 0;
}

body.woocommerce-checkout .wc-block-components-textarea {
    padding: 12px 14px;
    resize: vertical;
}

/* Country / state selects use their own component, not text-input. */
body.woocommerce-checkout #content-pro .wc-blocks-components-select__select {
    min-height: 46px;
    background: var(--tc-surface);
    border: 1px solid var(--tc-line-mid) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    color: var(--tc-ink);
}

body.woocommerce-checkout #content-pro .wc-blocks-components-select__select:focus {
    border-color: var(--tc-blue) !important;
    outline: 2px solid rgba(80, 108, 205, 0.25);
    outline-offset: 0;
}

body.woocommerce-checkout #content-pro .wc-blocks-components-select label,
body.woocommerce-checkout #content-pro .wc-blocks-components-select__label {
    color: var(--tc-ink-soft);
    font-size: 12px !important;
    font-weight: 600;
    letter-spacing: 0;
}

/* Floating labels, rebuilt: resting in the middle of the field, rising to a
   small caption when the field is focused or filled. The theme's overrides
   left them clipped against the field's top border. */
body.woocommerce-checkout #content-pro .wc-block-components-text-input input {
    padding: 22px 14px 6px !important;
}

body.woocommerce-checkout #content-pro .wc-block-components-text-input label {
    position: absolute !important;
    /* Half the input's 50px height, not 50% — a validation message inside
       the wrapper would drag a percentage-centred label below the field. */
    top: 25px !important;
    left: 15px !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
    transform-origin: left top;
    color: var(--tc-ink-soft) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    letter-spacing: 0;
    line-height: 1.3;
    pointer-events: none;
    transition: top 0.12s ease, font-size 0.12s ease;
}

body.woocommerce-checkout #content-pro .wc-block-components-text-input.is-active label {
    top: 6px !important;
    transform: none !important;
    font-size: 11px !important;
    font-weight: 600 !important;
}

body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control label.components-base-control__label {
    color: var(--tc-ink-soft);
    font-size: 12px !important;
    font-weight: 600;
    letter-spacing: 0;
}

/* "+ Add apartment, suite, unit" is an action; give it the same inline-link
   voice as the Terms and Privacy links. */
body.woocommerce-checkout .wc-block-components-address-form__address_2-toggle {
    padding: 0;
    background: none;
    border: 0;
    color: var(--tc-blue);
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color 0.16s ease;
}

body.woocommerce-checkout .wc-block-components-address-form__address_2-toggle:hover {
    color: var(--tc-ink);
}

/* Invalid fields: the border and the message carry the error — the value
   text stays ink, so a red field never reads as red *content*. The id keeps
   these ahead of the base field rule above. */
body.woocommerce-checkout #content-pro .wc-block-components-text-input.has-error input,
body.woocommerce-checkout #content-pro .wc-block-components-combobox.has-error .wc-block-components-combobox-control .components-form-token-field,
body.woocommerce-checkout #content-pro .has-error .wc-blocks-components-select__select,
body.woocommerce-checkout #content-pro .wc-block-components-country-input.has-error .wc-blocks-components-select__select {
    border-color: var(--tc-danger) !important;
}

body.woocommerce-checkout #content-pro .wc-block-components-text-input.has-error input,
body.woocommerce-checkout #content-pro .has-error .wc-blocks-components-select__select {
    color: var(--tc-ink) !important;
}

/* The label stays neutral on error — a red 14px label inside the field reads
   as red user text. The border and the message below carry the state. */
body.woocommerce-checkout #content-pro .wc-block-components-text-input.has-error label {
    color: var(--tc-ink-soft) !important;
}

body.woocommerce-checkout .wc-block-components-validation-error p {
    margin: 6px 0 2px;
    font-size: 12.5px !important;
    line-height: 1.45;
    color: var(--tc-danger);
}

/* Room between the last address row's error message and this checkbox. */
body.woocommerce-checkout .wc-block-checkout__use-address-for-billing {
    margin-top: 18px;
}

body.woocommerce-checkout .wc-block-checkout__terms {
    margin: 24px 0 0;
}

body.woocommerce-checkout .wc-block-components-validation-error svg {
    fill: var(--tc-danger);
}

/* Checked and unchecked must read as the same control — the default
   unchecked border was nearly invisible next to the solid checked fill. */
body.woocommerce-checkout .wc-block-components-checkbox__input[type="checkbox"] {
    border: 1.5px solid var(--tc-ink-soft);
    border-radius: 5px;
}

body.woocommerce-checkout .wc-block-components-checkbox__input[type="checkbox"]:checked {
    background: var(--tc-ink);
    border-color: var(--tc-ink);
}

/* The check itself: white on the ink fill, or the box reads as a solid
   black square. */
body.woocommerce-checkout .wc-block-components-checkbox__mark {
    fill: #fff !important;
}

body.woocommerce-checkout .wc-block-components-checkbox__input[type="checkbox"]:focus-visible,
body.woocommerce-checkout .wc-block-components-radio-control__input:focus-visible {
    outline: 2px solid var(--tc-blue);
    outline-offset: 2px;
}

/* Radios sized and weighted to match the checkboxes. The id and !important
   out-rank the theme rules that filled the whole control solid ink. */
body.woocommerce-checkout #content-pro .wc-block-components-radio-control__input {
    width: 20px !important;
    height: 20px !important;
    background: var(--tc-surface) !important;
    border: 1.5px solid var(--tc-ink-soft) !important;
}

body.woocommerce-checkout #content-pro .wc-block-components-radio-control__input:checked {
    background: var(--tc-surface) !important;
    border-color: var(--tc-ink) !important;
}

body.woocommerce-checkout #content-pro .wc-block-components-radio-control__input:checked::before {
    background: var(--tc-ink) !important;
    width: 10px !important;
    height: 10px !important;
    min-width: 10px;
    min-height: 10px;
    margin: 0;
}

body.woocommerce-checkout .wc-block-components-checkbox__label {
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.45 !important;
    color: var(--tc-ink);
}

/* The theme paints these links red — the colour of the validation errors
   two lines up. Legal links are navigation, not warnings. */
body.woocommerce-checkout .wc-block-components-checkbox__label a,
body.woocommerce-checkout .wc-block-checkout__terms a {
    color: var(--tc-blue) !important;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Shipping options / payment methods — one card language
   -------------------------------------------------------------------------- */

body.woocommerce-checkout .wc-block-components-radio-control__option,
body.woocommerce-checkout .wc-block-components-panel {
    background: var(--tc-surface);
    border: 1px solid var(--tc-line-mid);
    border-radius: 12px;
}

body.woocommerce-checkout .wc-block-components-radio-control__option {
    margin-bottom: 0;
}

body.woocommerce-checkout .wc-block-components-radio-control--highlight-checked::after,
body.woocommerce-checkout .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option::after,
body.woocommerce-checkout .wc-block-components-radio-control--highlight-checked div.wc-block-components-radio-control-accordion-option::after {
    display: none !important;
}

body.woocommerce-checkout .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
body.woocommerce-checkout .wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted {
    border: 1px solid var(--tc-ink) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

body.woocommerce-checkout .wc-block-components-radio-control__input:checked {
    background: var(--tc-ink);
    border-color: var(--tc-ink);
}

/* Payment method row: name and card icons on one line that survives
   narrow screens. */
body.woocommerce-checkout .wc-block-components-payment-method-label--with-icon,
body.woocommerce-checkout .wc-block-components-payment-method-label {
    display: flex;
    align-items: center;
    gap: 10px;
}

body.woocommerce-checkout .wc-block-components-payment-method-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
}

body.woocommerce-checkout .wc-block-components-payment-method-icon {
    height: 22px;
    margin: 0;
}

body.woocommerce-checkout .wc-block-components-radio-control-accordion-content {
    margin-top: 0;
    padding: 10px 14px 0 44px;
    background: transparent;
    border: 0;
    color: var(--tc-ink-mid);
    font-size: 13px;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Order summary — the same card as the cart totals
   -------------------------------------------------------------------------- */

body.woocommerce-checkout .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block {
    padding: 24px;
    background: var(--tc-surface);
    border: 1px solid var(--tc-line);
    border-radius: var(--tc-radius);
    box-shadow: 0 1px 2px rgba(16, 17, 20, 0.04), 0 18px 40px -24px rgba(16, 17, 20, 0.16);
}

body.woocommerce-checkout .wc-block-checkout__sidebar.is-sticky .wp-block-woocommerce-checkout-order-summary-block {
    top: var(--tc-sticky-top) !important;
}

/* The page content wraps the totals in its own bordered .checkout_cart_total
   div; the card above replaces it, so strip the wrapper entirely. */
body.woocommerce-checkout .checkout_cart_total {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

/* Card heading in the cart page's micro-label voice. */
body.woocommerce-checkout .wc-block-components-checkout-order-summary__title {
    margin: 0 0 12px;
    padding: 0;
    font-size: 11px !important;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--tc-ink-soft);
}

body.woocommerce-checkout .wc-block-components-checkout-order-summary__title-icon,
body.woocommerce-checkout .wc-block-components-checkout-order-summary__title-icon * {
    pointer-events: none;
}

body.woocommerce-checkout .wc-block-components-order-summary {
    margin-bottom: 0;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-cart-items-block {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

body.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item:last-child {
    padding-bottom: 6px;
}

body.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item {
    padding: 14px 0;
    font-size: 14px;
}

/* Product image in the same quiet tile the cart page uses — no gradient. */
body.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__image {
    position: relative;
    min-height: auto;
    margin-top: 0;
    /* The badge hangs off the tile's corner; don't crop it. */
    overflow: visible;
}

body.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__description {
    min-height: 0 !important;
}

body.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__image > img {
    width: 72px;
    height: 72px;
    padding: 6px;
    object-fit: contain;
    background: var(--tc-tile);
    border: 1px solid var(--tc-line);
    border-radius: 12px;
}

/* The quantity badge ships unpositioned here — white on white, in flow,
   shoving the image down. Pin it to the tile corner as a proper badge. */
body.woocommerce-checkout .wc-block-components-order-summary-item__quantity {
    /* !important: an inline style pins this to position:unset!important. */
    position: absolute !important;
    top: -7px !important;
    left: -7px !important;
    right: auto !important;
    z-index: 1;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: auto !important;
    min-width: 24px;
    height: 24px;
    padding: 0 7px !important;
    background: var(--tc-ink) !important;
    border: 2px solid var(--tc-surface) !important;
    border-radius: 999px;
    box-shadow: none;
    color: #fff !important;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    opacity: 1;
}

/* The parent theme appends a literal "x" to the badge, which overflows the
   circle. The count alone says it. */
body.woocommerce-checkout .wc-block-components-order-summary-item__quantity::after {
    content: none !important;
}

body.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__description {
    padding-left: 14px;
}

body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-product-name {
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--tc-ink);
}

body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-formatted-money-amount {
    font-size: 14.5px;
    font-variant-numeric: tabular-nums;
}

/* Item descriptions repeat the product page inside a totals card — drop them. */
body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-product-metadata__description {
    display: none;
}

body.woocommerce-checkout .wc-block-components-product-metadata {
    margin-top: 6px;
}

body.woocommerce-checkout .wc-block-components-product-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.woocommerce-checkout .wc-block-components-product-details li {
    margin: 0;
    color: var(--tc-ink-mid);
    font-size: 12.5px;
    line-height: 1.4;
}

body.woocommerce-checkout .wc-block-components-product-details__name {
    margin-right: 4px;
    color: var(--tc-ink);
    font-weight: 600;
}

/* Totals rows ------------------------------------------------------------- */

body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-totals-wrapper {
    padding: 0;
    border: 0 !important;
}

body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-totals-coupon {
    padding: 10px 0 12px;
    border: 0 !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-subtotal-block {
    border: 0 !important;
}

body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-totals-item {
    padding: 5px 0;
    font-size: 14px;
    color: var(--tc-ink);
}

body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-totals-item__label {
    font-weight: 500;
    color: var(--tc-ink-mid);
}

body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-totals-item__value {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Discount in the same green the drawer uses — Woo's own success green is
   off this palette. */
body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-totals-discount .wc-block-components-totals-item__value {
    color: var(--tc-green-dark) !important;
}

body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-totals-discount__coupon-list {
    margin: 2px 0 0;
    padding: 0;
}

body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-totals-footer-item {
    margin-top: 6px;
    padding: 12px 0 0;
    border-top: 1px solid var(--tc-line);
}

body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    font-size: 15px;
    font-weight: 600;
    color: var(--tc-ink);
}

body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Coupon field inside the summary — same controls as the cart page. */
body.woocommerce-checkout .wc-block-components-totals-coupon__input input {
    height: 44px;
    background: var(--tc-surface);
    border: 1px solid var(--tc-line-mid);
    border-radius: 10px;
    box-shadow: none;
    font-size: 14px;
}

body.woocommerce-checkout button.wc-block-components-totals-coupon__button.contained {
    min-height: 44px;
    padding: 0 18px;
    background: var(--tc-ink) !important;
    border: 0 !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

body.woocommerce-checkout button.wc-block-components-totals-coupon__button.contained:hover {
    background: #2b2e35 !important;
}

/* --------------------------------------------------------------------------
   Actions
   -------------------------------------------------------------------------- */

body.woocommerce-checkout .wc-block-checkout__actions {
    margin-top: 28px;
}

/* Back link left, primary button filling the rest — not floating mid-column. */
body.woocommerce-checkout .wc-block-checkout__actions_row {
    display: flex;
    align-items: center;
    gap: 24px;
}

body.woocommerce-checkout .wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button {
    flex: 1 1 auto;
    width: auto;
}

body.woocommerce-checkout .wc-block-components-checkout-return-to-cart-button {
    color: var(--tc-ink-mid);
    font-weight: 500;
    transition: color 0.16s ease;
}

body.woocommerce-checkout .wc-block-components-checkout-return-to-cart-button:hover {
    color: var(--tc-ink);
}

body.woocommerce-checkout button.wc-block-components-button.wp-element-button.wc-block-components-checkout-place-order-button {
    min-height: 54px;
    padding: 14px 32px !important;
    background: var(--tc-green) !important;
    border: 0 !important;
    border-radius: 12px !important;
    color: #14170c !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    box-shadow: 0 1px 2px rgba(16, 17, 20, 0.06);
    transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

body.woocommerce-checkout button.wc-block-components-button.wp-element-button.wc-block-components-checkout-place-order-button:hover {
    background: var(--tc-green-dark) !important;
    border: 0 !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px -10px rgba(106, 135, 0, 0.6);
}

body.woocommerce-checkout button.wc-block-components-button.wp-element-button.wc-block-components-checkout-place-order-button:focus-visible {
    outline: 3px solid rgba(80, 108, 205, 0.45);
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Narrow screens
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    body.woocommerce-checkout #content-pro .width-container-pro {
        width: calc(100% - 32px);
    }

    body.woocommerce-checkout .wc-block-components-main {
        padding-right: 0;
    }
}

@media (max-width: 781px) {
    /* The fixed mobile header (header-sm) hangs below the theme's offset and
       was clipping the Return to Cart line; !important because another
       mobile rule pins this padding at zero. */
    body.woocommerce-checkout #content-pro {
        padding-top: 48px !important;
        padding-bottom: 40px;
    }

    /* Woo repeats the order summary on phones: a collapsed peek at the top
       and a full "Order summary" step above the button. The top one now
       opens itself, so the bottom repeat only says everything twice. */
    body.woocommerce-checkout .wc-block-components-checkout-step:has(.wp-block-woocommerce-checkout-order-summary-block) {
        display: none;
    }

    /* The old mobile rules squeeze the place-order button to 55% width and
       centre it; full width, back link centred beneath. */
    body.woocommerce-checkout .wc-block-checkout__actions_row {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 14px;
    }

    body.woocommerce-checkout .wp-block-woocommerce-checkout-actions-block .wc-block-checkout__actions_row button.wc-block-components-button.wp-element-button.wc-block-components-checkout-place-order-button {
        width: 100% !important;
        font-size: 16px !important;
        font-weight: 700 !important;
    }

    body.woocommerce-checkout .wc-block-components-checkout-return-to-cart-button {
        align-self: center;
    }

    /* "Credit Card" was squeezed to 75px and wrapped; the name holds one
       line and the card icons wrap on their own row edge. */
    body.woocommerce-checkout .wc-block-components-payment-method-label {
        flex: 1 1 auto;
        white-space: nowrap;
    }

    body.woocommerce-checkout .wc-block-components-payment-method-icons {
        flex: 0 1 auto;
    }

    body.woocommerce-checkout .wc-block-components-payment-method-icon {
        height: 18px;
    }

    /* iOS Safari zooms into any focused input below 16px. */
    body.woocommerce-checkout .wc-block-components-totals-coupon__input input {
        font-size: 16px !important;
    }

    body.woocommerce-checkout #content-pro .width-container-pro {
        width: calc(100% - 24px);
    }

    body.woocommerce-checkout .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block {
        padding: 18px;
    }

    body.woocommerce-checkout .wc-block-components-checkout-step {
        margin-bottom: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.woocommerce-checkout button.wc-block-components-button.wp-element-button.wc-block-components-checkout-place-order-button:hover {
        transform: none;
        box-shadow: 0 1px 2px rgba(16, 17, 20, 0.06);
    }
}
