/* =============================================================================
   ULFUR CHECKOUT - Multi-step cart & checkout styles
   ============================================================================= */

/* -- Hide Astra defaults on Checkout steps ---------------------------------- */

/* Steps 2-4: hide normal Astra header & footer completely */
.ulfur-checkout--step-2 .ast-above-header,
.ulfur-checkout--step-2 .ast-below-header,
.ulfur-checkout--step-2 .site-header,
.ulfur-checkout--step-2 .ast-main-header-wrap,
.ulfur-checkout--step-3 .ast-above-header,
.ulfur-checkout--step-3 .ast-below-header,
.ulfur-checkout--step-3 .site-header,
.ulfur-checkout--step-3 .ast-main-header-wrap,
.ulfur-checkout--step-4 .ast-above-header,
.ulfur-checkout--step-4 .ast-below-header,
.ulfur-checkout--step-4 .site-header,
.ulfur-checkout--step-4 .ast-main-header-wrap {
    display: none !important;
}

/* Hide stray info, notices, or sticky bars on checkout steps */
.ulfur-checkout .woocommerce-info,
.ulfur-checkout .woocommerce-message,
.ulfur-checkout .ast-sticky-add-to-cart,
.ulfur-checkout .single-product-sticky-add-to-cart,
.ulfur-checkout .cart-sticky-bar {
    display: none !important;
}

/* All steps: hide Astra page title & breadcrumbs (we have our own) */
.ulfur-checkout .ast-archive-description,
.ulfur-checkout .entry-header,
.ulfur-checkout .ast-breadcrumbs-wrapper,
.ulfur-checkout .woocommerce-breadcrumb,
.ulfur-checkout .page-header,
.ulfur-checkout .ast-page-header-section {
    display: none !important;
}

/* Cart (step 1): hide duplicate Astra page title */
.ulfur-checkout--step-1 .entry-header,
.ulfur-checkout--step-1 .ast-woo-header-section {
    display: none !important;
}

/* Cart (step 1): hide #order_review that WC adds via hook */
.ulfur-checkout--step-1 #order_review,
.ulfur-checkout--step-1 .woocommerce-checkout-review-order {
    display: none !important;
}

/* Step 3: Hide only the products table header/body/non-shipping rows.
   Keep tr.woocommerce-shipping-totals (shipping methods) VISIBLE. */
.ulfur-checkout--step-3 #order_review .woocommerce-checkout-review-order-table thead,
.ulfur-checkout--step-3 #order_review .woocommerce-checkout-review-order-table tbody {
    display: none !important;
}
.ulfur-checkout--step-3 #order_review .woocommerce-checkout-review-order-table tfoot tr:not(.woocommerce-shipping-totals) {
    display: none !important;
}
/* Break out of the table layout so the shipping row can render as a card */
.ulfur-checkout--step-3 #order_review .woocommerce-checkout-review-order-table,
.ulfur-checkout--step-3 #order_review .woocommerce-checkout-review-order-table tfoot {
    display: block !important;
    width: 100% !important;
}
.ulfur-checkout--step-3 #order_review .woocommerce-checkout-review-order-table tfoot tr.woocommerce-shipping-totals {
    display: block !important;
}
.ulfur-checkout--step-3 #order_review #place_order {
    display: none !important;
}
/* Privacy text is hidden (scoped to the step, since the terms wrapper that
   contains it is relocated out of #order_review by JS - see below). */
.ulfur-checkout--step-3 .woocommerce-privacy-policy-text {
    display: none !important;
}
/* The terms checkbox + "Uwagi do zamowienia" are moved by JS into
   .ulfur-checkout__finalize, leaving an empty .place-order row - keep it
   collapsed and harmless. */
.ulfur-checkout--step-3 #order_review .form-row.place-order {
    margin: 0 !important;
    padding: 0 !important;
}
/* Drop the payment box's own bottom margin so the gap below it is driven solely
   by the relocated block (keeps the spacing consistent). */
.ulfur-checkout--step-3 #payment {
    margin-bottom: 0 !important;
}

/* -- Relocated finalize block --------------------------------------------------
   "Uwagi do zamowienia" + terms checkbox, sitting below the payment box and
   OUTSIDE its border, with consistent gaps. Plain block layout with explicit
   full width - a flex container here collapses to min-content (the main grid
   column has min-width:0), which wrapped every label one letter per line. */
.ulfur-checkout__finalize {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-top: 24px;
    clear: both;
}
.ulfur-checkout__finalize > * {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    box-sizing: border-box;
    margin: 0 0 24px !important;
}
.ulfur-checkout__finalize > *:last-child {
    margin-bottom: 0 !important;
}
.ulfur-checkout__finalize .form-row {
    width: 100% !important;
    box-sizing: border-box;
    margin: 0 !important;
}
.ulfur-checkout__finalize textarea {
    width: 100% !important;
    box-sizing: border-box;
}
.ulfur-checkout__finalize .woocommerce-terms-and-conditions-wrapper {
    float: none !important;
}

/* Remove icon: no border */
.woocommerce-js a.remove:before {
    border: none !important;
}

/* Register panel: transparent bg */
.ulfur-checkout__register-panel {
    background: transparent !important;
    border: 1px solid #979797;
}

/* -- Step Header ------------------------------------------------------------ */

.ulfur-checkout-header {
    padding: 16px 0;
    border: none;
}

.ulfur-checkout-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.ulfur-checkout-header__logo img {
    max-height: 50px;
    width: auto;
}

/* Steps progress bar */
.ulfur-checkout-steps {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    justify-content: center;
}

.ulfur-checkout-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    flex: 1;
    max-width: 200px;
}

/* Connecting line between steps */
/* Connector line between steps removed per design - keep only the circles. */
.ulfur-checkout-step:not(:last-child)::after {
    content: none;
    display: none;
}

.ulfur-checkout-step--completed:not(:last-child)::after {
    background: #22c55e;
}

.ulfur-checkout-step__circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

/* Upcoming step */
.ulfur-checkout-step--upcoming .ulfur-checkout-step__circle {
    background: var(--ast-global-color-6);
    border: 2px solid #979797;
    color: var(--ast-global-color-3);
}

/* Active step */
.ulfur-checkout-step--active .ulfur-checkout-step__circle {
    background: #22c55e;
    border: 2px solid #22c55e;
    color: #fff;
}

/* Completed step */
.ulfur-checkout-step--completed .ulfur-checkout-step__circle {
    background: #22c55e;
    border: 2px solid #22c55e;
    color: #fff;
}

.ulfur-checkout-step__label {
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
    color: var(--ast-global-color-3);
    opacity: 0.6;
}

.ulfur-checkout-step--active .ulfur-checkout-step__label,
.ulfur-checkout-step--completed .ulfur-checkout-step__label {
    opacity: 1;
}

.ulfur-checkout-header__lang {
    flex-shrink: 0;
}

/* -- Cart Page (Step 1) ----------------------------------------------------- */

.ulfur-cart {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 64px;
}

.ulfur-cart__breadcrumbs {
    font-size: 13px;
    margin-bottom: 24px;
    opacity: 0.7;
}
.ulfur-cart__breadcrumbs a { text-decoration: none; }
.ulfur-cart__breadcrumb-sep { margin: 0 6px; }

.ulfur-cart__title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.ulfur-cart__title {
    margin: 0;
    font-size: 1.6rem;
}

.ulfur-cart__count {
    font-weight: 400;
    font-size: 0.9rem;
    opacity: 0.7;
    margin-left: 8px;
}

.ulfur-cart__clear-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    opacity: 0.7;
    transition: opacity 0.2s;
    color: inherit;
}
.ulfur-cart__clear-btn:hover { opacity: 1; }

.ulfur-cart__grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

/* Product items */
.ulfur-cart__products {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ulfur-cart__item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 1px solid #979797;
    border-radius: 12px;
    margin-bottom: 12px;
}

.ulfur-cart__item-thumb { flex-shrink: 0; }
.ulfur-cart__item-thumb img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.ulfur-cart__item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ulfur-cart__item-name { font-weight: 600; }
.ulfur-cart__item-name a { text-decoration: none; }
.ulfur-cart__item-sku { font-size: 12px; opacity: 0.6; }

/* Quantity stepper - use Astra default (no custom buttons) */
.ulfur-cart__item-qty {
    display: flex;
    align-items: center;
    gap: 0;
}

.ulfur-cart__item-price {
    min-width: 80px;
    text-align: right;
    font-weight: 600;
}

.ulfur-cart__item-remove { flex-shrink: 0; }
.ulfur-cart__item-remove .remove {
    display: flex;
    opacity: 0.5;
    transition: opacity 0.2s;
    text-decoration: none;
    color: inherit !important;
}
.ulfur-cart__item-remove .remove:hover { opacity: 1; }

.ulfur-cart__update-btn { display: none !important; }

/* Empty cart */
.ulfur-cart--empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    text-align: center;
}

.ulfur-cart__empty-card {
    text-align: center;
    padding: 64px 32px;
}
.ulfur-cart__empty-card svg { opacity: 0.3; margin-bottom: 24px; }
.ulfur-cart__empty-card h1 { margin: 0 0 12px; }
.ulfur-cart__empty-card p { margin: 0 0 24px; opacity: 0.7; }

/* -- Order Sidebar ---------------------------------------------------------- */

.ulfur-order-sidebar {
    border: 1px solid #979797;
    border-radius: 12px;
    padding: 12px;
    position: relative;   /* containing block for the loading overlay ::after */
}

/* Sticky must live on the GRID COLUMN, not the inner aside: with the grid's
   align-items:start the column is only as tall as the sidebar, so a sticky
   aside has no room to travel. The column sticks within the (tall) grid row. */
.ulfur-cart__sidebar,
.ulfur-checkout__sidebar {
    position: sticky;
    top: 24px;
    align-self: start;
}

/* Loading overlay */
.ulfur-order-sidebar--loading {
    pointer-events: none;
}
.ulfur-order-sidebar--loading::after {
    content: '';
    position: absolute;
    inset: -1px; /* cover border */
    background: rgba(18, 18, 18, 0.65);
    border-radius: 12px;
    z-index: 5;
}
.ulfur-sidebar-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: #F5A623;
    border-radius: 50%;
    animation: ulfurSidebarSpin 0.7s linear infinite;
    z-index: 6;
}
@keyframes ulfurSidebarSpin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* =========================================================================
   WooCommerce BlockUI override - replace WC's default grey spinner
   with our branded dark overlay + yellow spinner
   ========================================================================= */
.blockUI.blockOverlay {
    background: rgba(18, 18, 18, 0.65) !important;
    border-radius: 12px;
}
.blockUI.blockOverlay::before {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin-top:  -15px;
    margin-left: -15px;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: #F5A623;
    border-radius: 50%;
    animation: ulfurSidebarSpin 0.7s linear infinite;
    /* reset anything WC sets inline */
    background: transparent !important;
    box-shadow: none !important;
}


/* Items */
.ulfur-order-sidebar__items {
    margin-bottom: 16px;
}

.ulfur-order-sidebar__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}
.ulfur-order-sidebar__item:not(:last-child) {
    border-bottom: 1px solid #979797;
}

.ulfur-order-sidebar__thumb { flex-shrink: 0; }
.ulfur-order-sidebar__thumb img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.ulfur-order-sidebar__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ulfur-order-sidebar__name { font-weight: 600; font-size: 14px; }
.ulfur-order-sidebar__sku { font-size: 11px; opacity: 0.6; }
.ulfur-order-sidebar__qty { font-size: 13px; opacity: 0.7; white-space: nowrap; }
.ulfur-order-sidebar__price { font-weight: 600; font-size: 14px; white-space: nowrap; }

/* Coupon toggle */
.ulfur-order-sidebar__coupon {
    border-top: 1px solid #979797;
    padding-top: 16px;
    margin-bottom: 16px;
}

.ulfur-order-sidebar__coupon-toggle {
    width: 100%;
    background: none;
    border: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
}
.ulfur-order-sidebar__coupon-toggle:hover,
.ulfur-order-sidebar__coupon-toggle:focus {
    background: transparent !important;
}

.ulfur-order-sidebar__coupon-chevron {
    margin-left: auto;
    transition: transform 0.2s;
}
.ulfur-order-sidebar__coupon-toggle[aria-expanded="true"] .ulfur-order-sidebar__coupon-chevron {
    transform: rotate(180deg);
}

.ulfur-order-sidebar__coupon-form {
    margin-top: 12px;
}

.ulfur-coupon-form {
    display: flex;
    gap: 8px;
}

.ulfur-order-sidebar__coupon-input {
    flex: 1;
    min-width: 0;
}

.ulfur-order-sidebar__coupon-btn {
    white-space: nowrap;
    padding: 8px 16px !important;
    font-size: 13px !important;
    background: var(--ast-global-color-0) !important;
    color: #252525 !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.2s;
}
.ulfur-order-sidebar__coupon-btn:hover {
    opacity: 0.85;
}

/* Applied coupons */
.ulfur-order-sidebar__applied-coupon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    padding: 8px 0;
}
.ulfur-order-sidebar__remove-coupon {
    color: #ef4444;
    text-decoration: none;
    font-size: 18px;
}

/* Totals */
.ulfur-order-sidebar__totals {
    border-top: 1px solid #979797;
    padding-top: 16px;
    margin-bottom: 16px;
}

.ulfur-order-sidebar__row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
}

.ulfur-order-sidebar__row--discount { color: #22c55e; }

.ulfur-order-sidebar__row--total {
    border-top: 1px solid #979797;
    margin-top: 8px;
    padding-top: 12px;
    font-size: 16px;
}

/* Cart (Step 1): sidebar should ONLY show coupon + final total + CTA.
   The cart items list and intermediate subtotal/shipping rows are redundant
   because the cart view already lists everything in the main column.
   However, we DO want to show the discount row if a coupon is applied. */
body.ulfur-checkout--step-1 .ulfur-order-sidebar__items,
body.ulfur-checkout--step-1 .ulfur-order-sidebar__row:not(.ulfur-order-sidebar__row--total):not(.ulfur-order-sidebar__row--discount) {
    display: none !important;
}

body.ulfur-checkout--step-1 .ulfur-order-sidebar__row--total {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

/* CTA button - secondary (yellow/brand) color */
.ulfur-order-sidebar__cta {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    font-size: 15px !important;
    padding: 12px 24px !important;
    background: var(--ast-global-color-0) !important;
    color: #252525;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.2s;
    text-decoration: none;
}
.ulfur-order-sidebar__cta:hover {
    opacity: 0.85;
}

/* Back link */
.ulfur-order-sidebar__back {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.ulfur-order-sidebar__back:hover { opacity: 1; }

/* -- Step 2: Login / Register ----------------------------------------------- */

.ulfur-checkout__step--login {
    max-width: 1000px;
    margin: 0 auto;
    padding: 48px 20px;
}

.ulfur-checkout__login-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.ulfur-checkout__login-panel {
    border: 1px solid #979797;
    border-radius: 12px;
    padding: 32px;
}

.ulfur-checkout__login-title {
    margin: 0 0 8px;
    font-size: 1.4rem;
}
.ulfur-checkout__login-subtitle {
    margin: 0 0 24px;
    opacity: 0.7;
    font-size: 14px;
}

.ulfur-checkout__login-submit {
    width: 100%;
    margin-top: 8px;
}

/* Register panel */
.ulfur-checkout__register-panel {
    background: transparent !important;
    border: 1px solid #979797;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
}

.ulfur-checkout__register-title {
    margin: 0 0 24px;
    font-size: 1.4rem;
}

.ulfur-checkout__guest-btn {
    width: 100%;
    box-sizing: border-box;
}

.ulfur-checkout__register-btn {
    width: 100%;
    box-sizing: border-box;
    display: block;
    text-align: center;
    text-decoration: none;
    background: var(--ast-global-color-5) !important;
    border: 1px solid #979797 !important;
    color: var(--ast-global-color-3) !important;
}
.ulfur-checkout__register-btn:hover {
    border-color: var(--ast-global-color-0) !important;
}

/* -- Step 3: Delivery & Payment --------------------------------------------- */

.ulfur-checkout__step--delivery {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px 64px;
}

.ulfur-checkout__step-title {
    margin: 0 0 32px;
    font-size: 1.4rem;
}

.ulfur-checkout__grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

.ulfur-checkout__main { min-width: 0; }

/* -- Hide (opcjonalnie) on NIP ------------------------------------------- */
.ulfur-hide-optional .optional {
    display: none !important;
}

/* -- Step 3: Shipping & Payment section (inside #order_review) ----------- */

/* Fix white backgrounds on WC fields inside order_review */
.ulfur-checkout--step-3 #order_review,
.ulfur-checkout--step-3 #order_review * {
    background-color: transparent !important;
}

/* Exception: restore checkbox checked state that the wildcard above overrides */
.ulfur-checkout--step-3 #order_review input[type="checkbox"]:checked,
.ulfur-checkout--step-3 #order_review input#terms:checked {
    background-color: #FCFCFC !important;
    background: #FCFCFC !important;
    border-color: #FCFCFC !important;
}

/* Shipping methods card */
.ulfur-checkout--step-3 #order_review #shipping_method,
.ulfur-checkout--step-3 #order_review .woocommerce-shipping-methods {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ulfur-checkout--step-3 #order_review .woocommerce-shipping-totals,
.ulfur-checkout--step-3 .wc_payment_methods_wrap,
.ulfur-checkout--step-3 #order_review .woocommerce-checkout-payment {
    display: block !important;       /* <tr> needs this so border + padding work */
    border: 1px solid #979797;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.ulfur-checkout--step-3 #order_review .woocommerce-shipping-totals th,
.ulfur-checkout--step-3 #order_review .woocommerce-shipping-totals td {
    display: block;
    width: 100% !important;
    padding: 0 !important;
    border: none !important;
}

.ulfur-checkout--step-3 #order_review .woocommerce-shipping-totals th {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 16px !important;
    color: #FCFCFC !important;
    padding-bottom: 12px !important;
}

/* Payment container needs an inner "Platnosc" heading like the shipping
   container has via its <th>. Inject it via ::before. */
.ulfur-checkout--step-3 #order_review .woocommerce-checkout-payment::before {
    content: "Płatność";
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 16px;
    color: #FCFCFC;
    margin-bottom: 12px;
}

/* Shipping + payment method rows - IDENTICAL look across both lists.
   Each option = bordered rounded row, brighter border when selected. */
.ulfur-checkout--step-3 #order_review .woocommerce-shipping-methods,
.ulfur-checkout--step-3 #order_review .wc_payment_methods {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Shipping rows: bordered card (visible at rest). */
.ulfur-checkout--step-3 #order_review .woocommerce-shipping-methods li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin: 0;
    border: 1px solid #979797;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s;
}

/* Payment rows: NO border by default, only when the option is selected. */
.ulfur-checkout--step-3 #order_review .wc_payment_method {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

/* -----------------------------------------------------------------------------
   Hover effect for ALL selectable rows (Top Level Priority)
   ----------------------------------------------------------------------------- */
.ulfur-zakup-option:hover,
.ulfur-checkout--step-3 #order_review .woocommerce-shipping-methods li:hover,
.ulfur-checkout--step-3 #order_review .wc_payment_method:hover {
    border:1px solid #FCFCFC !important;
    transition: border-color 0.2s ease;
}
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.ulfur-checkout--step-3 #order_review .woocommerce-shipping-methods li:hover,
.ulfur-checkout--step-3 #order_review .wc_payment_method:hover {
    border-color: #FCFCFC;
}

.ulfur-checkout--step-3 #order_review .woocommerce-shipping-methods li:has(input:checked),
.ulfur-checkout--step-3 #order_review .wc_payment_method:has(input:checked) {
    border-color: #FCFCFC !important;
}

/* Radio + label on one line, price/amount pushed to the right */
.ulfur-checkout--step-3 #order_review .woocommerce-shipping-methods li label,
.ulfur-checkout--step-3 #order_review .wc_payment_method label {
    flex: 1 1 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    cursor: pointer;
    color: #FCFCFC;
    font-size: 14px !important;
    font-family: 'Montserrat', sans-serif !important;
}

.ulfur-checkout--step-3 #order_review .woocommerce-shipping-methods li .amount,
.ulfur-checkout--step-3 #order_review .wc_payment_method .amount {
    margin-left: auto;
    font-weight: 600;
    white-space: nowrap;
}

/* The payment_box description appears under the radio when selected */
.ulfur-checkout--step-3 #order_review .wc_payment_method .payment_box {
    flex: 0 0 100%;
    margin: 6px 0 0;
}

#ulfur-cart-modal {
    display: none;
}

/* Payment-box description text (shown under the selected method) */
.ulfur-checkout--step-3 #order_review .payment_box {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    font-size: 13px;
    color: #FCFCFC;
    opacity: 0.85;
}
.ulfur-checkout--step-3 #order_review .payment_box::before {
    display: none !important;
}
.ulfur-checkout--step-3 #order_review .payment_box p {
    margin: 0;
}

/* -- Zakup jako radio group --------------------------------------------- */
#zakup_jako_field {
    display: flex;
    flex-direction: column;
    border: none;
    padding: 0;
}

/* Top label: "Zakup jako" / "Wybierz adres" - Figma heading style (Montserrat 700 / 16/16) */
#zakup_jako_field > label,
.ulfur-addr-picker__heading {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 16px !important;
    color: #FCFCFC !important;
    margin: 0 0 12px 0 !important;
    display: block !important;
}

/* Hide (opcjonalne) and required stars */
#zakup_jako_field .optional,
#zakup_jako_field .required {
    display: none !important;
}

/* Wrapper holds the option divs */
#zakup_jako_field > .woocommerce-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
}

/* Each option row: styled same as payment methods */
.ulfur-zakup-option {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: border-color 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
}

.ulfur-zakup-option:last-child {
    margin-bottom: 0;
}

.ulfur-zakup-option:has(input:checked),
.ulfur-zakup-option--active {
    border: 1px solid #fff;
}

.ulfur-zakup-option label {
    display: inline-flex !important;
    align-items: center;
    cursor: pointer;
    gap: 8px;
    font-size: 14px !important;
    font-weight: 400 !important;
    margin: 0 !important;
}

/* Override old class styles */
.ulfur-checkout .ulfur-checkout-zakup-jako {
    display: contents;
    gap: unset;
    border: none;
}
.ulfur-thankyou__btn--primary{    height: auto !important;
    display: flex !important;
    align-items: center !important;}
/* -- Step 4: Review --------------------------------------------------------- */

.ulfur-checkout__step--review {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px 64px;
}

.ulfur-review-card {
    border: 1px solid #979797;
    border-radius: 12px;
    padding: 32px;
}

.ulfur-review-card__section {
    padding: 16px 0;
}
.ulfur-review-card__section:not(:last-child) {
    border-bottom: 1px solid #979797;
}

.ulfur-review-card__heading {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 8px;
}

.ulfur-review-card__section p {
    margin: 0 0 4px;
    font-size: 14px;
    opacity: 0.85;
}

/* -- Thank You -------------------------------------------------------------- */

.ulfur-checkout--thankyou .site-header,
.ulfur-checkout--thankyou .ast-above-header,
.ulfur-checkout--thankyou .ast-below-header,
.ulfur-checkout--thankyou .ast-main-header-wrap,
.ulfur-checkout--thankyou .ast-primary-header-bar,
.ulfur-checkout--thankyou .site-footer,
.ulfur-checkout--thankyou .ast-footer-overlay,
.ulfur-checkout--thankyou .ast-small-footer,
.ulfur-checkout--thankyou .ast-breadcrumbs-wrapper,
.ulfur-checkout--thankyou .woocommerce-breadcrumb,
.ulfur-checkout--thankyou .entry-header,
.ulfur-checkout--thankyou .page-header,
.ulfur-checkout--thankyou .ast-page-header-section,
.ulfur-checkout--thankyou #ulfur-cart-modal {
    display: none !important;
}

/* -- Global overrides ------------------------------------------------------- */

.woocommerce-checkout-review-order {
    width: 100% !important;
    border: none !important;
    padding: 0 !important;
}

.payment_box p,
.ulfur-order-sidebar__row {
    color: #C3C3C3 !important;
}

.place-order {
    padding: 0 !important;
    height: 0;
}

.ulfur-order-sidebar__qty {
    color: #C3C3C3 !important;
}

.wpcf7-text::placeholder,
.dgwt-wcas-search-input::placeholder,
.ulfur-auth__field input::placeholder {
    color: #C3C3C3 !important;
}

.wpcf7-text:focus,
.dgwt-wcas-search-input:focus,
.ulfur-auth__field input:focus {
    border-color: #fff !important;
}

.ulfur-thankyou {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 32px 20px;
}

.ulfur-thankyou__card {
    text-align: center;
    border: 1px solid #979797;
    border-radius: 16px;
    padding: 64px 48px;
    max-width: 520px;
    width: 100%;
}

.ulfur-thankyou__icon {
    margin-bottom: 32px;
}
.ulfur-thankyou__icon img {
    width: 120px;
    height: auto;
}

.ulfur-thankyou__title {
    font-weight: 700;
    margin: 0 0 16px;
    font-size: 1.4rem;
}

.ulfur-thankyou__subtitle {
    margin: 0 0 32px;
    opacity: 0.7;
    font-size: 14px;
}

.ulfur-thankyou__actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.ulfur-thankyou__btn {
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
}

.ulfur-thankyou__btn--outline {
    background: transparent;
    border: 1.5px solid #979797;
}
.ulfur-thankyou__btn--outline:hover {
    border-color: var(--ast-global-color-0);
    color: var(--ast-global-color-0);
}

.ulfur-thankyou__social-label {
    font-size: 13px;
    opacity: 0.7;
    margin: 0 0 12px;
}

.ulfur-thankyou__social-icons {
    display: flex;
    justify-content: center;
    gap: 24px;
}
.ulfur-thankyou__social-icons a {
    text-decoration: none;
    transition: color 0.2s;
}
.ulfur-thankyou__social-icons a:hover { color: var(--ast-global-color-0); }
.ulfur-thankyou__social-icons svg { width: 24px; height: 24px; fill: currentColor; }

/* -- Responsive ------------------------------------------------------------- */

@media (max-width: 992px) {
    .ulfur-cart__grid {
        grid-template-columns: 1fr;
    }

    .ulfur-checkout__grid {
        grid-template-columns: 1fr;
    }

    /* Single column on mobile — drop the sticky so the sidebar flows normally */
    .ulfur-cart__sidebar,
    .ulfur-checkout__sidebar {
        position: static;
    }

    .ulfur-checkout__login-grid {
        grid-template-columns: 1fr;
    }

    /* Step header: stack on small screens */
    .ulfur-checkout-header__inner {
        flex-wrap: wrap;
        gap: 16px;
    }

    .ulfur-checkout-steps {
        
        width: 100%;
        /* reserve room for the single absolute-positioned active label */
        padding-bottom: 22px;
    }

    /* The four step labels are too long to sit side-by-side on phones and
       overlap each other. Show only the ACTIVE step's label, centered under
       its circle (absolute so it doesn't push the layout). */
    .ulfur-checkout-step__label {
        display: none;
    }
    .ulfur-checkout-step--active .ulfur-checkout-step__label {
        display: block;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 6px;
        white-space: nowrap;
        font-size: 12px;
    }
}

@media (max-width: 600px) {
    .ulfur-cart__item {
        flex-wrap: wrap;
        gap: 12px;
    }

    .ulfur-cart__item-info { width: 100%; order: 1; }
    .ulfur-cart__item-thumb { order: 0; }
    .ulfur-cart__item-qty { order: 2; }
    .ulfur-cart__item-price { order: 3; flex: 1; }
    .ulfur-cart__item-remove { order: 4; }

    .ulfur-thankyou__card {
        padding: 48px 24px;
    }
}

/* -- Global Inputs ---------------------------------------------------------- */

.ulfur-checkout textarea{
    width: 100% !important;
    box-sizing: border-box !important;
    background: transparent !important;
    border: 1.5px solid #979797 !important;
    border-radius: 8px !important;
    color: var(--ast-global-color-3) !important;
    font-size: 14px !important;
    outline: none !important;
    transition: border-color 0.2s !important;
    box-shadow: none !important;
}
.ulfur-checkout input[type="text"],
.ulfur-checkout input[type="email"],
.ulfur-checkout input[type="tel"],
.ulfur-checkout input[type="password"] {
    width: 100% !important;
    height: 40px !important;
    padding: 0 14px !important;
    box-sizing: border-box !important;
    background: transparent !important;
    border: 1.5px solid #979797 !important;
    border-radius: 8px !important;
    color: var(--ast-global-color-3) !important;
    font-size: 14px !important;
    outline: none !important;
    transition: border-color 0.2s !important;
    box-shadow: none !important;
}

.ulfur-checkout input[type="text"]:focus,
.ulfur-checkout input[type="email"]:focus,
.ulfur-checkout textarea:focus,
.ulfur-checkout input[type="tel"]:focus,
.ulfur-checkout input[type="password"]:focus {
    border-color: color-mix(in srgb, var(--ast-global-color-3) 90%, transparent) !important;
}

.ulfur-checkout input[type="text"]::placeholder,
.ulfur-checkout input[type="email"]::placeholder,
.ulfur-checkout textarea::placeholder,
.ulfur-checkout input[type="tel"]::placeholder,
.ulfur-checkout input[type="password"]::placeholder {
    color: color-mix(in srgb, var(--ast-global-color-3) 50%, transparent) !important;
}

.ulfur-checkout textarea {
    width: 100% !important;
    padding: 14px !important;
    background: transparent !important;
    border: 1.5px solid #979797 !important;
    border-radius: 8px !important;
    color: var(--ast-global-color-3) !important;
    font-size: 14px !important;
    outline: none !important;
    transition: border-color 0.2s !important;
    box-shadow: none !important;
}

.ulfur-checkout textarea:focus {
    border-color: color-mix(in srgb, var(--ast-global-color-3) 90%, transparent) !important;
}

.ulfur-checkout textarea::placeholder {
    color: color-mix(in srgb, var(--ast-global-color-3) 50%, transparent) !important;
}

.ulfur-checkout select {
    width: 100% !important;
    height: 40px !important;
    padding: 0 40px 0 14px !important;
    box-sizing: border-box !important;
    background: transparent url('data:image/svg+xml;utf8,<svg width="12" height="8" viewBox="0 0 12 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10.5 1.5L6 6L1.5 1.5" stroke="%23ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat right 14px center !important;
    border: 1.5px solid #979797 !important;
    border-radius: 8px !important;
    color: var(--ast-global-color-3) !important;
    font-size: 14px !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    transition: border-color 0.2s !important;
    box-shadow: none !important;
}
.ulfur-checkout select:focus {
    border-color: color-mix(in srgb, var(--ast-global-color-3) 90%, transparent) !important;
}

/* -- Select2 (WooCommerce country dropdown) dark theme ------------------ */

/* Main container */
.ulfur-checkout .select2-container .select2-selection--single {
    height: 40px !important;
    background: transparent !important;
    border: 1.5px solid #979797 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

.ulfur-checkout .select2-container .select2-selection--single .select2-selection__rendered {
    color: var(--ast-global-color-3) !important;
    line-height: 38px !important;
    padding-left: 14px !important;
    font-size: 14px !important;
}

.ulfur-checkout .select2-container .select2-selection--single .select2-selection__arrow {
    height: 38px !important;
    right: 10px !important;
}

.ulfur-checkout .select2-container .select2-selection--single .select2-selection__arrow b {
    border-color: var(--ast-global-color-3) transparent transparent transparent !important;
}

/* Dropdown panel */
.select2-container--default .select2-dropdown {
    background-color: #252525 !important;
    border: 1.5px solid #979797 !important;
    border-radius: 8px !important;
}

/* Search input inside dropdown */
.select2-container--default .select2-search--dropdown .select2-search__field {
    background: #252525 !important;
    color: #FCFCFC !important;
    border: 1.5px solid #979797 !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    outline: none !important;
    box-shadow: none !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #fff !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field::placeholder {
    color: color-mix(in srgb, var(--ast-global-color-3) 50%, transparent) !important;
}

/* Results list */
.select2-container--default .select2-results__option {
    color: var(--ast-global-color-3) !important;
    padding: 8px 14px !important;
    font-size: 14px !important;
    position: relative;
    transition: border-color 0.15s;
    border: 1px solid transparent;
    border-radius: 6px;
    margin: 2px 4px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted {
    background-color: transparent !important;
    color: var(--ast-global-color-3) !important;
    border-color: #fff !important;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: transparent !important;
    border-color: #fff !important;
}

/* Checkmark on selected item */
.select2-container--default .select2-results__option[aria-selected="true"]::after {
    content: '✓';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--ast-global-color-3);
}

.select2-results {
    background: #252525 !important;
}

.select2-results__options {
    background: #252525 !important;
}

/* User-provided overrides */
.select2-container--default .select2-results__option[aria-selected=true],
.select2-container--default .select2-results__option[data-selected=true] {
    background: transparent !important;
    transition: none !important;
}

.select2-results__option {
    transition: none !important;
}

.select2-selection--single {
    padding: 0 !important;
}

.payment_method:not(:last-of-type) {
    border-bottom: none;
}

/* Make labels look nice and consistent */
.ulfur-checkout .form-row label {
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-bottom: 6px !important;
    display: block !important;
    color: var(--ast-global-color-3) !important;
}
.ulfur-checkout .form-row .required {
    color: #ef4444 !important;
    text-decoration: none !important;
}

/* -- Radio Buttons -------------------------------------------------------- */

html body.ulfur-checkout input[type="radio"],
html body.ulfur-checkout input.input-radio,
html body.ulfur-checkout input.shipping_method {
    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    flex-shrink: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    border: 2px solid #979797 !important;
    border-radius: 50% !important;
    background: transparent !important;
    cursor: pointer !important;
    margin: 0 8px 0 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
    position: relative !important;
    display: inline-block !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s !important;
}

.ulfur-checkout input[type="radio"]:checked {
    border-color: #fff !important;
}

.ulfur-checkout input[type="radio"]:checked::after {
    content: '' !important;
    display: block !important;
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background: #fff !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

/* Radio label inline alignment */
.ulfur-checkout .woocommerce-checkout .form-row.ulfur-checkout-zakup-jako label {
    display: inline-flex !important;
    align-items: center !important;
    margin-right: 16px !important;
}

/* -----------------------------------------------------------------------------
   Saved-address picker (above the billing form on checkout step 3)
   ----------------------------------------------------------------------------- */
.ulfur-addr-picker {
    margin-bottom: 24px;
}

.ulfur-addr-picker__select {
    margin-bottom: 12px;
}

.ulfur-addr-picker__select label {
    display: block;
    margin-bottom: 6px;
    color: #FCFCFC;
    font-size: 13px;
    font-weight: 500;
}

.ulfur-addr-picker__select select {
    display: none; /* hidden - replaced by custom dropdown */
}

.ulfur-addr-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    background: transparent;
    border: 1px solid #979797;
    border-radius: 8px;
}

.ulfur-addr-card__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ulfur-addr-card__body span:empty,
.ulfur-addr-card__body strong:empty {
    display: none;
}

.ulfur-addr-card__name {
    color: #FCFCFC;
    font-weight: 600;
    font-size: 14px;
}

.ulfur-addr-card__company,
.ulfur-addr-card__nip,
.ulfur-addr-card__street,
.ulfur-addr-card__city,
.ulfur-addr-card__phone {
    color: #FCFCFC !important;
    opacity: 0.85;
    font-size: 13px;
}

/* -- Custom address dropdown (matches .ulfur-filter__btn style) --------- */
.ulfur-addr-custom-dropdown {
    position: relative;
}

.ulfur-addr-dropdown__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid #979797 !important;
    border-radius: 8px;
    background: transparent !important;
    color: #FCFCFC;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    text-align: left;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.ulfur-addr-dropdown__btn:hover,
.ulfur-addr-dropdown__btn:focus,
.ulfur-addr-dropdown__btn:active,
.ulfur-addr-dropdown__btn[aria-expanded="true"] {
    border: 1px solid #979797 !important;
    background: rgba(255, 255, 255, 0.04) !important;
    outline: none !important;
    box-shadow: none !important;
}

.ulfur-addr-dropdown__label { flex: 1; }

.ulfur-addr-dropdown__chevron {
    flex-shrink: 0;
    transition: transform 0.2s;
}

.ulfur-addr-dropdown__btn[aria-expanded="true"] .ulfur-addr-dropdown__chevron {
    transform: rotate(180deg);
}

.ulfur-addr-dropdown__panel {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--ast-global-color-4, #252525);
    border: 1px solid #979797;
    border-radius: 8px;
    padding: 8px;
    z-index: 200;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.ulfur-addr-dropdown__panel.is-open { display: block; }

/* Search input inside dropdown panel (country/state selects) */
.ulfur-custom-select__search {
    width: 100%;
    box-sizing: border-box;
    background: #1e1e1e !important;
    border: 1px solid #979797 !important;
    border-radius: 6px;
    color: #FCFCFC !important;
    padding: 7px 10px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
}

.ulfur-custom-select__search::placeholder { color: rgba(252,252,252,0.4); }
.ulfur-custom-select__search:focus { border-color: #FCFCFC !important; }

/* Scrollable options list */
.ulfur-custom-select__options {
    max-height: 220px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #555 transparent;
}

.ulfur-custom-select__options::-webkit-scrollbar { width: 4px; }
.ulfur-custom-select__options::-webkit-scrollbar-thumb { background: #555; border-radius: 4px; }

.ulfur-addr-dropdown__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}

.ulfur-addr-dropdown__option:hover {
    background: rgba(255, 255, 255, 0.06);
}

.ulfur-addr-dropdown__option-label {
    font-size: 14px;
    color: #FCFCFC;
    flex: 1;
}

.ulfur-addr-dropdown__check {
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.15s, transform 0.15s;
    transform: scale(0.8);
    color: #FCFCFC;
}

.ulfur-addr-dropdown__option.is-selected .ulfur-addr-dropdown__check {
    opacity: 1;
    transform: scale(1);
}

.ulfur-addr-card__edit {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #979797;
    border-radius: 8px;
    background: transparent;
    color: #FCFCFC;
    cursor: pointer;
    transition: border-color 0.15s;
}

.ulfur-addr-card__edit svg {
    width: 18px;
    height: 18px;
    color: #FCFCFC;
    stroke: #FCFCFC;
    pointer-events: none;
}

.ulfur-addr-card__edit:hover {
    border-color: #FCFCFC;
}

/* Terms & conditions wrapper: ensure checkbox is fully interactive
   (the #order_review * rule would otherwise block visual feedback) */
.ulfur-checkout--step-3 #order_review .woocommerce-terms-and-conditions-wrapper input[type="checkbox"] {
    pointer-events: auto !important;
    cursor: pointer !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    width: 20px !important;
    min-width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
}

.ulfur-checkout--step-3 #order_review .woocommerce-terms-and-conditions-wrapper label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    font-size: 14px !important;
}

/* While in display mode the WC billing inputs (name, address_1, postcode, ...)
   stay in the DOM (so WC processes submit normally) but are hidden. The user
   switches to input mode by clicking the pencil - JS removes the class. */
.woocommerce-billing-fields.ulfur-addr-display-mode .form-row {
    display: none !important;
}

/* Exceptions: these fields must stay visible even in display-mode.
   #zakup_jako_field is moved before the picker by JS but is still a
   .form-row inside woocommerce-billing-fields, so it needs the exception.
   NIP + Company are intentionally excluded - JS toggles them only when Firma. */
.woocommerce-billing-fields.ulfur-addr-display-mode #zakup_jako_field,
.woocommerce-billing-fields.ulfur-addr-display-mode #ship-to-different-address {
    display: block !important;
}

/* NIP + Company: always hidden in display-mode; JS toggles them on firma select */
.woocommerce-billing-fields.ulfur-addr-display-mode #billing_nip_field,
.woocommerce-billing-fields.ulfur-addr-display-mode #billing_company_field {
    display: none !important;
}

/* Keep the picker visible even while editing; collapse the card, show edit actions */
.ulfur-addr-picker.is-editing .ulfur-addr-card {
    display: none;
}

/* Save / Cancel buttons shown during address edit mode */
.ulfur-addr-edit-actions {
    display: none;
    gap: 10px;
    margin-top: 16px;
    margin-bottom: 16px;
}

.ulfur-addr-picker.is-editing .ulfur-addr-edit-actions {
    display: flex;
    align-items: center;
}

.ulfur-addr-edit-actions__save {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: none;
    border-radius: 8px;
    background: var(--ast-global-color-0) !important;
    col or: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    transition: opacity 0.2s;
}
.ulfur-addr-edit-actions__save:hover { opacity: 0.85; }

.ulfur-addr-edit-actions__cancel {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid #979797;
    border-radius: 8px;
    background: transparent;
    color: #FCFCFC;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s;
}
.ulfur-addr-edit-actions__cancel:hover { border-color: #FCFCFC; }

/* Checkbox styling moved to global.css so login / checkout / account all match. */

/* -- User overrides --------------------------------------------------------- */

.select2-container--default .select2-results__option[aria-selected=true],
.select2-container--default .select2-results__option[data-selected=true] {
    background: transparent !important;
    transition: none !important;
}

#zakup_jako_field,
#payment,
.ulfur-addr-picker {
    padding: 12px !important;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    border: 1px solid #979797;
}

.select2-results__option {
    transition: none !important;
}

.payment_box {
    padding: 0 !important;
    border: none !important;
}

.select2-selection--single {
    padding: 0 !important;
}

#customer_details h3:not(.elementor-widget-woocommerce-checkout-page h3) {
    border-color: #979797 !important;
}

/* =============================================================================
   ZINTEGROWANE "SUPERIOR" CSS - checkout / koszyk
   ============================================================================= */
#order_review {
    margin-bottom: 24px;
}
.woocommerce-js #customer_details,
.woocommerce-js .woocommerce table.shop_table {
    margin: 0 !important;
}
.ulfur-checkout-header {
    border: none !important;
}
.ulfur-checkout-header__inner,
.ulfur-checkout__step {
    padding: 0 !important;
}
.ulfur-checkout__step--delivery {
    padding: 0 !important;
}
.ulfur-checkout-step:after {
    display: none;
}
.ulfur-checkout__main h3 {
    display: none;
}
.woocommerce-billing-fields__field-wrapper {
    order: -8;
}
#zakup_jako_field {
    margin-bottom: 24px !important;
}
html body #content .ulfur-zakup-option label {
    margin: 0 !important;
}
#shipping_method li {
    padding: 12px 16px !important;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: border-color 0.2s;
    cursor: pointer;
    text-indent: 0 !important;
}
#content #order_review .woocommerce-shipping-methods li:not(:has(input:checked)) {
    border-color: transparent;
}
#order_review > table > tfoot > tr.woocommerce-shipping-totals.shipping {
    padding: 12px !important;
}
.ulfur-cart .ulfur-order-sidebar__coupon {
    padding: 0 !important;
    border: none !important;
}
#add_payment_method #payment ul.payment_methods li:not(.woocommerce-notice)::after,
#add_payment_method #payment ul.payment_methods li:not(.woocommerce-notice)::before,
.woocommerce-cart #payment ul.payment_methods li:not(.woocommerce-notice)::after,
.woocommerce-cart #payment ul.payment_methods li:not(.woocommerce-notice)::before,
.woocommerce-checkout #payment ul.payment_methods li:not(.woocommerce-notice)::after,
.woocommerce-checkout #payment ul.payment_methods li:not(.woocommerce-notice)::before {
    display: none;
}
.woocommerce-customer-details address {
    margin-bottom: 35px !important;
    padding: 15px !important;
    border-style: solid !important;
    border-color: var(--ast-border-color) !important;
    border-width: 0 1px 1px 1px !important;
}

@media (max-width: 496px) {
    .ulfur-checkout-steps {
        order: 3;
    }
}
