.checkout-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.checkout-column {
    padding: 2rem;
}

.checkout-left {
    border-right: 1px solid #e5e5e5;
}

.checkout-section {
    border-bottom: 1px solid #e5e5e5;
}

.checkout-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    color: #2c3e50;
    letter-spacing: -0.3px;
}

.woocommerce-checkout {
    margin: 0;
}

.woocommerce-checkout .form-row {
    margin-bottom: 1rem;
}

.woocommerce-checkout .form-row input[type="text"],
.woocommerce-checkout .form-row input[type="email"],
.woocommerce-checkout .form-row input[type="tel"],
.woocommerce-checkout .form-row input[type="number"],
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #ffffff;
}

.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
    border-color: #12B328;
    outline: none;
    box-shadow: 0 0 0 3px rgba(18, 179, 40, 0.1);
}

.woocommerce-checkout .form-row label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
    font-size: 0.95rem;
}

.woocommerce-checkout .form-row label .required {
    color: #dc2626;
    margin-left: 0.25rem;
}

.form-row-first,
.form-row-last {
    width: calc(50% - 0.5rem);
    display: inline-block;
}

.form-row-first {
    margin-right: 1rem;
}

.form-row-first,
.form-row-last {
    margin-bottom: 1rem;
}

.form-row-wide {
    width: 100%;
}

.order-review-sticky {
    position: sticky;
    top: 2rem;
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.order-review-products {
    margin-bottom: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.order-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e5e5;
}

.order-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.item-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    background: #ffffff;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    flex: 1;
    min-width: 0;
}

.item-name {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.item-quantity {
    color: #6b7280;
    font-size: 0.9rem;
}

.item-total {
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
}

.order-totals {
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid #d1d5db;
    border-bottom: 1px solid #d1d5db;
}

.totals {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.totals tr {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.totals tr td {
    padding: 0;
}

.totals tr.order-total {
    font-size: 1.125rem;
    font-weight: 700;
    color: #2c3e50;
    border-top: 2px solid #e5e5e5;
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.payment-options {
    margin: 1.5rem 0;
}

.woocommerce_payment_methods {
    margin: 0 0 1rem 0;
}

.woocommerce_payment_methods li {
    margin-bottom: 0.75rem;
    list-style: none;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.woocommerce_payment_methods li:hover {
    border-color: #12B328;
    background: #f0fce7;
}

.woocommerce_payment_methods li.woocommerce_payment_method input[type="radio"]:checked+label {
    color: #12B328;
    font-weight: 600;
}

.btn-place-order {
    width: 100%;
    padding: 1rem;
    background-image: linear-gradient(170deg, #5AE117 0%, #147A22 100%);
    background-color: #12B328;
    color: #ffffff;
    border: 1px solid #12B328;
    box-shadow: 3px 3px 12px 0px rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.3px;
}

.btn-place-order:hover {
    box-shadow: 3px 3px 16px 0px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.btn-place-order:active {
    transform: translateY(1px);
}

.btn-place-order:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    box-shadow: none;
}

@media (max-width: 768px) {
    .modern-checkout-container {
        padding: 1rem;
    }

    .checkout-wrapper {
        grid-template-columns: 1fr;
        gap: 1rem;
        border-radius: 4px;
    }

    .checkout-column {
        padding: 1rem;
    }

    .checkout-left {
        border-right: none;
        border-bottom: 1px solid #e5e5e5;
    }

    .form-row-first,
    .form-row-last {
        width: 100%;
        margin-right: 0;
    }

    .order-review-sticky {
        position: static;
        top: auto;
        margin-top: 1rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .checkout-column {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .modern-checkout-container {
        padding: 0.5rem;
    }

    .checkout-wrapper {
        gap: 0.5rem;
    }

    .checkout-column {
        padding: 0.75rem;
    }

    .btn-place-order {
        padding: 0.875rem;
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .order-review-sticky {
        border-radius: 4px;
    }
}

.woocommerce-billing-fields,
.woocommerce-shipping-fields {
    margin: 0;
}

.woocommerce form .form-row {
    margin-bottom: 1rem;
}

.woocommerce-error,
.woocommerce-message {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
}

.woocommerce-error {
    background: #fee;
    color: #c33;
    border: 1px solid #c33;
}

.woocommerce-message {
    background: #efe;
    color: #3c3;
    border: 1px solid #3c3;
}

.checkout-section.shipping-methods-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e5e5;
}

.checkout-section.shipping-methods-section .section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: #2c3e50;
    letter-spacing: -0.3px;
}

.woocommerce-shipping-methods {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.shipping-method-option {
    display: flex;
    align-items: flex-start;
    padding: 0.65rem 0.85rem;
    border: 1.5px solid #e5e5e5;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
    position: relative;
    margin-bottom: -1.5px;
}

.shipping-method-option:first-of-type {
    border-radius: 4px 4px 0 0;
}

.shipping-method-option:last-of-type {
    border-radius: 0 0 4px 4px;
    margin-bottom: 0;
}

.shipping-method-option+.shipping-method-details+.shipping-method-option {
    border-radius: 0;
}

.shipping-method-option:hover {
    border-color: #12B328;
    background: #f0fce7;
    box-shadow: 0 1px 4px rgba(18, 179, 40, 0.08);
    z-index: 2;
}

.shipping-method-option:has(input:checked) {
    border-color: #12B328;
    background: #f0fce7;
    box-shadow: 0 2px 6px rgba(18, 179, 40, 0.12);
    z-index: 3;
}

.shipping-method-option:has(input:checked)+.shipping-method-details {
    border-color: #12B328;
    background: #f0fce7;
    box-shadow: 0 1px 4px rgba(18, 179, 40, 0.08);
    display: block !important;
}

.shipping-method-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin: 0;
    margin-right: 0.75rem;
    cursor: pointer;
    flex-shrink: 0;
    border: 2px solid #ddd;
    border-radius: 50%;
    background: #fff;
    transition: all 0.2s ease;
    outline: none;
}

.shipping-method-option input[type="radio"]:hover {
    border-color: #12B328;
    box-shadow: 0 0 0 4px rgba(18, 179, 40, 0.1);
}

.shipping-method-option input[type="radio"]:focus-visible {
    border-color: #12B328;
    box-shadow: 0 0 0 4px rgba(18, 179, 40, 0.2);
}

.shipping-method-option input[type="radio"]:checked {
    border-color: #12B328;
    background: #fff;
}

.shipping-method-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #12B328;
    transition: all 0.2s ease;
}

.shipping-method-option input[type="radio"]:active {
    transform: scale(0.95);
}

.shipping-method-option label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.shipping-method-option label {
    margin: 0;
    cursor: pointer;
    flex: 1;
    display: flex;
    flex-direction: column;
    font-weight: 500;
    color: #374151;
}

.shipping-method-option label> :first-child {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.3rem;
}

.shipping-method-option .method-name-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    flex: 1;
}

.shipping-method-option .method-icon-wrapper {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shipping-method-option .shipping-method-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: all 0.2s ease;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.05));
}

.shipping-method-option:hover .shipping-method-icon {
    filter: drop-shadow(0 2px 3px rgba(18, 179, 40, 0.15));
    transform: scale(1.03);
}

.shipping-method-option:has(input:checked) .shipping-method-icon {
    filter: drop-shadow(0 2px 4px rgba(18, 179, 40, 0.25));
    transform: scale(1.05);
}

.shipping-method-option .method-label {
    flex: 1;
    font-size: 0.875rem;
    color: #2c3e50;
    font-weight: 600;
    word-break: break-word;
    min-width: 0;
    line-height: 1.3;
}

.shipping-method-option .method-cost {
    flex: 0 0 auto;
    font-weight: 700;
    color: #12B328;
    white-space: nowrap;
    font-size: 0.9rem;
    margin-left: auto;
}

.method-cost .woocommerce-Price-amount {
    display: inline-block;
}

.method-cost .woocommerce-Price-currencySymbol {
    margin-left: 0.2rem;
}

.shipping-method-option .shipping-countdown {
    font-size: 11px;
    color: #2e7d32;
    margin-top: 0.25rem;
    display: block;
    width: 100%;
    text-align: left;
    line-height: 1.3;
}

@keyframes move {
    from {
        background-position: 0px;
    }

    to {
        background-position: 1000px;
    }
}

.shipping-method-option .method-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
}

@media (max-width: 768px) {
    .shipping-method-option {
        padding: 0.6rem 0.75rem;
    }

    .shipping-method-option label {
        gap: 0.3rem;
    }

    .shipping-method-option .method-name-icon {
        gap: 0.4rem;
    }

    .shipping-method-option .method-label {
        font-size: 0.85rem;
    }

    .shipping-method-option .shipping-method-icon {
        width: 28px;
        height: 28px;
    }

    .shipping-method-option .method-cost {
        font-size: 0.85rem;
    }

    .shipping-method-option .shipping-countdown {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .shipping-method-option {
        padding: 0.55rem 0.65rem;
    }

    .shipping-method-option input[type="radio"] {
        width: 14px;
        height: 14px;
        min-width: 14px;
        margin-right: 0.5rem;
    }

    .shipping-method-option label {
        gap: 0.25rem;
    }

    .shipping-method-option .method-name-icon {
        gap: 0.35rem;
    }

    .shipping-method-option .method-label {
        font-size: 0.8rem;
    }

    .shipping-method-option .shipping-method-icon {
        width: 26px;
        height: 26px;
    }

    .shipping-method-option .method-cost {
        font-size: 0.8rem;
    }

    .shipping-method-option .shipping-countdown {
        font-size: 10px;
    }
}

.shipping-method-details {
    display: none;
    padding: 1rem;
    background: #fafbfc;
    border: 1.5px solid #e5e5e5;
    border-top: none;
    margin: 0;
    margin-bottom: -1.5px;
    font-size: 0.875rem;
    animation: slideDown 0.25s ease;
}

.shipping-method-details:empty {
    display: none !important;
}

.shipping-method-details:last-of-type {
    border-radius: 0 0 4px 4px;
    margin-bottom: 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.paczkomat_id_wrapper {
    display: block;
}

.shipping-method-details .form-row {
    margin-bottom: 0.75rem;
}

.shipping-method-details .form-row:last-child {
    margin-bottom: 0;
}

.shipping-method-details .form-row label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    color: #374151;
    font-size: 0.85rem;
}

.shipping-method-details .form-row label .required {
    color: #dc2626;
    margin-left: 0.2rem;
}

.shipping-method-details .form-row input[type="text"],
.shipping-method-details .form-row input[type="email"],
.shipping-method-details .form-row input[type="tel"],
.shipping-method-details .form-row input[type="hidden"],
.shipping-method-details .form-row select,
.shipping-method-details .form-row textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.875rem;
    font-family: inherit;
    background: #ffffff;
    transition: all 0.2s;
}

.shipping-method-details .form-row input:focus,
.shipping-method-details .form-row select:focus,
.shipping-method-details .form-row textarea:focus {
    border-color: #12B328;
    outline: none;
    box-shadow: 0 0 0 2px rgba(18, 179, 40, 0.1);
}

.shipping-method-details .select2-container--default {
    width: 100% !important;
}

.shipping-method-details .select2-container--default .select2-selection--single {
    height: 34px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 0.4rem;
}

.shipping-method-details .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #12B328;
    box-shadow: 0 0 0 2px rgba(18, 179, 40, 0.1);
}

.shipping-method-details .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0.3rem 0;
    color: #374151;
    font-size: 0.875rem;
}

.shipping-method-details .select2-results__option--highlighted {
    background-color: #12B328 !important;
}

.shipping-method-details .select2-results__option[aria-selected="true"] {
    background-color: #f0fce7 !important;
    color: #12B328;
}

.shipping-method-details .form-row.hidden {
    display: none !important;
}

.shipping-method-details .woocommerce-input-wrapper {
    display: block;
}

#ship-to-different-address .checkout-toggle-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-top: 0.75rem;
}

#ship-to-different-address .checkout-toggle-row .woocommerce-form__label {
    margin: 0;
}

#open-geowidget {
    width: 100% !important;
    padding: 10px 16px;
    background: #ffd700;
    color: #333;
    text-align: center;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    box-sizing: border-box;
}

#open-geowidget:hover {
    background: #ffcc00 !important;
}

.js--choose-point-dpd {
    display: inline-block;
    width: 100%;
    margin-top: 10px;
    padding: 10px 16px;
    border-radius: 8px;
    background: #E4003B;
    color: #ffffff;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
}

.shipping-method-details #map,
.shipping-method-details .easypack,
.shipping-method-details .geowidget-container,
.shipping-method-details [class*="inpost"],
.shipping-method-details [class*="locker"] {
    margin: 0.75rem 0;
    border-radius: 4px;
    overflow: hidden;
}

.shipping-method-details #map {
    min-height: 300px;
    background: #e5e7eb;
    border: 1px solid #d1d5db;
}

.shipping-method-details .parcel-list,
.shipping-method-details .inpost-list,
.shipping-method-details .lockers-list,
.shipping-method-details [class*="list"] {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 0.4rem;
}

.shipping-method-details .parcel-item,
.shipping-method-details .inpost-item,
.shipping-method-details .locker-item,
.shipping-method-details [class*="item"] {
    padding: 0.6rem;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.shipping-method-details .parcel-item:hover,
.shipping-method-details .inpost-item:hover,
.shipping-method-details .locker-item:hover {
    border-color: #12B328;
    background: #f0fce7;
}

.shipping-method-details .parcel-item.selected,
.shipping-method-details .inpost-item.selected,
.shipping-method-details .locker-item.selected {
    border-color: #12B328;
    background-image: linear-gradient(170deg, #5AE117 0%, #147A22 100%);
    background-color: #12B328;
    color: #ffffff;
    font-weight: 600;
}

.shipping-method-details .woocommerce-error,
.shipping-method-details .error {
    padding: 0.6rem;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 4px;
    font-size: 0.85rem;
    margin: 0.4rem 0;
}

.shipping-method-details .woocommerce-message,
.shipping-method-details .success {
    padding: 0.6rem;
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
    border-radius: 4px;
    font-size: 0.85rem;
    margin: 0.4rem 0;
}

.shipping-method-details.loading {
    opacity: 0.6;
    pointer-events: none;
}

@media (max-width: 768px) {
    .shipping-method-details {
        padding: 0.85rem;
    }

    .shipping-method-details .form-row {
        margin-bottom: 0.65rem;
    }

    .shipping-method-details #map {
        min-height: 250px;
    }

    .shipping-method-details .button,
    .shipping-method-details button {
        width: 100%;
        padding: 0.6rem;
    }
}

@media (max-width: 480px) {
    .shipping-method-details {
        padding: 0.75rem;
    }

    .shipping-method-details .form-row label {
        font-size: 0.8rem;
    }

    .shipping-method-details .form-row input,
    .shipping-method-details .form-row select,
    .shipping-method-details .form-row textarea {
        padding: 0.55rem;
        font-size: 0.85rem;
    }

    .shipping-method-details #map {
        min-height: 220px;
    }

    .shipping-method-details .button,
    .shipping-method-details button {
        width: 100%;
        padding: 0.55rem;
        font-size: 0.8rem;
    }

    .shipping-method-details .select2-container--default .select2-selection--single {
        height: 32px;
    }
}

.shipping-method-details .parcel-list::-webkit-scrollbar,
.shipping-method-details .inpost-list::-webkit-scrollbar {
    width: 5px;
}

.shipping-method-details .parcel-list::-webkit-scrollbar-track,
.shipping-method-details .inpost-list::-webkit-scrollbar-track {
    background: #e5e7eb;
    border-radius: 3px;
}

.shipping-method-details .parcel-list::-webkit-scrollbar-thumb,
.shipping-method-details .inpost-list::-webkit-scrollbar-thumb {
    background: #12B328;
    border-radius: 3px;
}

.shipping-method-details .parcel-list::-webkit-scrollbar-thumb:hover,
.shipping-method-details .inpost-list::-webkit-scrollbar-thumb:hover {
    background: #147A22;
}

.form-row label.checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
    color: #374151;
}

.form-row label.checkbox input[type="checkbox"] {
    width: auto !important;
    margin-right: 0.6rem;
    accent-color: #12B328;
    cursor: pointer;
}

.woocommerce-shipping-fields label.woocommerce-form__label-for-checkbox input[type="checkbox"],
#ship-to-different-address label.checkbox input[type="checkbox"] {
    width: auto !important;
    margin-right: 0.6rem;
    accent-color: #12B328;
    cursor: pointer;
}

.checkout-checkboxes-row {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    margin-bottom: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.checkout-checkboxes-row>p,
.checkout-checkboxes-row>h3 {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    width: auto !important;
    height: 100% !important;

    margin: 0 !important;
    box-sizing: border-box !important;

    font-size: 15px !important;
    white-space: normal !important;
}

#ship-to-different-address::before,
#ship-to-different-address::after {
    content: ' ';
    display: table;
}

#ship-to-different-address {
    padding: 3px;
}

.checkout-checkboxes-row label {
    display: flex !important;
    align-items: center !important;
    font-size: 15px !important;
    color: #222 !important;
    font-weight: 400 !important;
    cursor: pointer !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.checkout-checkboxes-row input[type="checkbox"] {
    min-width: 18px !important;
}

@media (max-width: 768px) {
    .checkout-checkboxes-row {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
}

.woocommerce-shipping-fields {
    animation: slideDown 0.25s ease !important;
}

.shop_table.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
    border: none !important;
}

.shop_table.woocommerce-checkout-review-order-table thead {
    display: none;
}

.shop_table.woocommerce-checkout-review-order-table tbody {
    display: block;
}

.shop_table.woocommerce-checkout-review-order-table tbody tr.cart_item {
    display: flex;
    gap: 1.2rem;
    border-bottom: 1px solid #f0f0f0;
    align-items: flex-start;
}

.shop_table.woocommerce-checkout-review-order-table tbody tr.cart_item:last-child {
    border-bottom: none;
}

.shop_table.woocommerce-checkout-review-order-table td.product-image {
    width: 64px;
    flex-shrink: 0;
    padding: 0;
    border: none;
}

.shop_table.woocommerce-checkout-review-order-table td.product-image img {
    width: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.shop_table.woocommerce-checkout-review-order-table td.product-name {
    flex: 1;
    padding: 0;
    border: none;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-start;
}

.shop_table.woocommerce-checkout-review-order-table .ast-product-name {
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.4;
}

.shop_table.woocommerce-checkout-review-order-table strong.product-quantity {
    color: #999;
    font-weight: 400;
    font-size: 0.85rem;
    margin-top: 0;
}

.shop_table.woocommerce-checkout-review-order-table td.product-total {
    width: 100px;
    padding: 0;
    border: none;
    text-align: right;
    font-weight: 600;
    color: #333;
}

.shop_table.woocommerce-checkout-review-order-table tfoot {
    display: block;
    border-top: 1px solid #f0f0f0;
}

.shop_table.woocommerce-checkout-review-order-table tfoot tr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0 !important;
}

.shop_table.woocommerce-checkout-review-order-table tfoot th {
    padding: 0;
    text-align: left;
    font-weight: 500;
    color: #666;
    font-size: 0.9rem;
    background: transparent;
    border: none !important;
}

.shop_table.woocommerce-checkout-review-order-table tfoot td {
    padding: 0;
    text-align: right;
    border: none !important;
    font-weight: 500;
    color: #333;
}

.shop_table.woocommerce-checkout-review-order-table tr.cart-subtotal td {
    color: #666;
}

.shop_table.woocommerce-checkout-review-order-table tr.shipping td {
    color: #666;
}

.shop_table.woocommerce-checkout-review-order-table tr.order-total {
    border-top: 2px solid #333;
    border-bottom: none;
}

.shop_table.woocommerce-checkout-review-order-table tr.order-total th {
    font-size: 1rem;
    font-weight: 600;
    color: #000;
}

.shop_table.woocommerce-checkout-review-order-table tr.order-total td {
    font-size: 1.15rem;
    font-weight: 700;
    color: #000;
}

@media (max-width: 768px) {
    .shop_table.woocommerce-checkout-review-order-table tbody tr.cart_item {
        gap: 1rem;
    }


    .shop_table.woocommerce-checkout-review-order-table td.product-total {
        width: 80px;
        font-size: 0.95rem;
    }

    .checkout-wrapper {
        display: block !important;
    }
}

@media (max-width: 480px) {
    .shop_table.woocommerce-checkout-review-order-table tbody tr.cart_item {
        gap: 0.8rem;
    }


    .shop_table.woocommerce-checkout-review-order-table .ast-product-name {
        font-size: 0.9rem;
    }

    .shop_table.woocommerce-checkout-review-order-table td.product-total {
        width: 70px;
        font-size: 0.9rem;
    }

    .shop_table.woocommerce-checkout-review-order-table tr.order-total th,
    .shop_table.woocommerce-checkout-review-order-table tr.order-total td {
        font-size: 1rem;
    }
}

.payment-section {
    margin-bottom: 1.5rem;
}

.payment-section .section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: #2c3e50;
    letter-spacing: -0.3px;
}

.wc_payment_methods.payment_methods {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wc_payment_methods li.wc_payment_method {
    padding: 0.65rem 0.85rem;
    border: 1.5px solid #e5e5e5;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
    position: relative;
    margin-bottom: -1.5px;
    list-style: none;
}

.wc_payment_methods li.wc_payment_method:first-of-type {
    border-radius: 4px 4px 0 0;
}

.wc_payment_methods li.wc_payment_method:last-of-type {
    border-radius: 0 0 4px 4px;
    margin-bottom: 0;
}

.wc_payment_methods li.wc_payment_method:hover {
    border-color: #12B328;
    background: #f0fce7;
    z-index: 2;
}

.wc_payment_methods li.wc_payment_method:has(input[name="payment_method"]:checked) {
    border-color: #12B328;
    background: #f0fce7;
    z-index: 3;
}

.wc_payment_methods li.wc_payment_method:has(input[name="payment_method"]:checked)+.payment_box {
    border-color: #12B328;
    background: #f0fce7;
}

.wc_payment_methods li.wc_payment_method>input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin: 0;
    margin-right: 0.75rem;
    cursor: pointer;
    flex-shrink: 0;
    border: 2px solid #ddd;
    border-radius: 50%;
    background: #fff;
    transition: all 0.2s ease;
    outline: none;
    float: left;
}

.wc_payment_methods li.wc_payment_method>input[type="radio"]:hover {
    border-color: #12B328;
    box-shadow: 0 0 0 4px rgba(18, 179, 40, 0.1);
}

.wc_payment_methods li.wc_payment_method>input[type="radio"]:focus-visible {
    border-color: #12B328;
    box-shadow: 0 0 0 4px rgba(18, 179, 40, 0.2);
}

.wc_payment_methods li.wc_payment_method>input[type="radio"]:checked {
    border-color: #12B328;
    background: #fff;
}

.wc_payment_methods li.wc_payment_method>input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #12B328;
    transition: all 0.2s ease;
}

.wc_payment_methods li.wc_payment_method>input[type="radio"]:active {
    transform: scale(0.95);
}

.wc_payment_methods li.wc_payment_method label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}


.wc_payment_methods li.wc_payment_method>label {
    margin: 0;
    cursor: pointer;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.875rem;
    line-height: 1.3;
    display: block;
    padding-left: 0;
}

.wc_payment_methods .payment_box {
    display: none;
    padding: 1rem;
    background: #fafbfc;
    border: none !important;
    border-top: none !important;
    margin: 0;
    margin-bottom: -1.5px;
    font-size: 0.875rem;
    animation: slideDown 0.25s ease;
    color: #495057;
    line-height: 1.5;
}

.wc_payment_methods li.wc_payment_method:has(input[name="payment_method"]:checked) .payment_box {
    display: block !important;
    border-color: #12B328;
    background: #f0fce7 !important;
}

.wc_payment_methods .payment_box p {
    margin: 0;
}

.wc_payment_methods .payment_box:last-child {
    border-radius: 0 0 4px 4px;
    margin-bottom: 0;
}

.wc_payment_methods .payment_box::before {
    display: none !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .wc_payment_methods li.wc_payment_method {
        padding: 0.6rem 0.75rem;
    }

    .wc_payment_methods li.wc_payment_method>label {
        font-size: 0.85rem;
    }

    .wc_payment_methods .payment_box {
        padding: 0.85rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .wc_payment_methods li.wc_payment_method {
        padding: 0.55rem 0.65rem;
    }

    .wc_payment_methods li.wc_payment_method>input[type="radio"] {
        width: 14px;
        height: 14px;
        min-width: 14px;
        margin-right: 0.5rem;
    }

    .wc_payment_methods li.wc_payment_method>label {
        font-size: 0.8rem;
    }

    .wc_payment_methods .payment_box {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
}

.thank-you-wrapper {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.thank-you-header {
    text-align: center;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(135deg, #f0fce7 0%, #ffffff 100%);
    border-bottom: 2px solid #12B328;
}

.success-icon {
    margin-bottom: 1.5rem;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.thank-you-title {
    font-size: 2rem;
    font-weight: 700;
    color: #12B328;
    margin: 0 0 1rem 0;
}

.thank-you-subtitle {
    font-size: 1.1rem;
    color: #495057;
    margin: 0;
}

.thank-you-content {
    padding: 2rem;
}

.thank-you-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e5e5;
}

.thank-you-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.thank-you-section .section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 1.5rem 0;
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.order-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.order-info-item .label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.order-info-item .value {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

.order-info-item .value.total {
    color: #12B328;
    font-size: 1.25rem;
}

.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-items-list .order-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    align-items: center;
}

.order-items-list .item-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
}

.order-items-list .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-items-list .item-details {
    flex: 1;
}

.order-items-list .item-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.order-items-list .item-quantity {
    font-size: 0.9rem;
    color: #6c757d;
}

.order-items-list .item-total {
    font-weight: 700;
    color: #12B328;
}

.address-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.address-column {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.address-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 1rem 0;
}

.address-column address {
    font-style: normal;
    line-height: 1.6;
    color: #495057;
}

@media (max-width: 768px) {
    .modern-checkout-container.thank-you-page {
        padding: 1rem;
    }

    .thank-you-header {
        padding: 2rem 1rem 1.5rem;
    }

    .thank-you-title {
        font-size: 1.5rem;
    }

    .thank-you-subtitle {
        font-size: 1rem;
    }

    .thank-you-content {
        padding: 1.5rem;
    }

    .order-info-grid {
        grid-template-columns: 1fr;
    }

    .address-columns {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.modern-checkout-error-popup {
    border-radius: 10px !important;
    padding: 2rem !important;
}

.modern-checkout-error-title {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
}

.modern-checkout-error-content {
    font-size: 0.95rem !important;
    color: #495057 !important;
    line-height: 1.6 !important;
}

.modern-checkout-error-content ul {
    list-style: none !important;
    padding-left: 0 !important;
}

.modern-checkout-error-content ul li {
    position: relative;
    padding-left: 25px;
}

.modern-checkout-error-button {
    padding: 0.75rem 2rem !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    background-image: linear-gradient(170deg, #5AE117 0%, #147A22 100%) !important;
    transition: all 0.2s ease !important;
}

.modern-checkout-error-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(18, 179, 40, 0.3) !important;
}

.error-field-highlight {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2) !important;
    animation: shake 0.5s ease, pulse 2s ease-in-out 1;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(220, 38, 38, 0.3);
    }
}

.coupon-form-wrapper {
    background: #ffffff;
    padding: 0;
}

.coupon-input-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.coupon-input-wrapper input[type="text"],
.coupon-input-wrapper .input-text {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s;
    background: #ffffff;
}

.coupon-input-wrapper input[type="text"]:focus,
.coupon-input-wrapper .input-text:focus {
    border-color: #12B328;
    outline: none;
    box-shadow: 0 0 0 3px rgba(18, 179, 40, 0.1);
}

.coupon-input-wrapper input[type="text"]::placeholder,
.coupon-input-wrapper .input-text::placeholder {
    color: #9ca3af;
}

.btn-apply-coupon {
    padding: 0.75rem 1.5rem;
    background-image: linear-gradient(170deg, #5AE117 0%, #147A22 100%);
    background-color: #12B328;
    color: #ffffff;
    border: 1px solid #12B328;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-apply-coupon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(18, 179, 40, 0.3);
}

.btn-apply-coupon:active {
    transform: translateY(0);
}

.btn-apply-coupon:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.applied-coupon-item .remove-coupon svg {
    width: 14px;
    height: 14px;
}

@media (max-width: 768px) {
    .coupon-input-wrapper {
        gap: 0.5rem;
    }

    .coupon-input-wrapper input[type="text"],
    .coupon-input-wrapper .input-text {
        padding: 0.65rem 0.85rem;
        font-size: 0.9rem;
    }

    .btn-apply-coupon {
        padding: 0.65rem 1.2rem;
        font-size: 0.9rem;
    }

    .coupon-message {
        padding: 0.65rem 0.85rem;
        font-size: 0.85rem;
    }

    .applied-coupon-item {
        padding: 0.65rem 0.85rem;
    }

    .applied-coupon-item .coupon-code {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .coupon-input-wrapper {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn-apply-coupon {
        width: 100%;
        padding: 0.75rem;
    }

    .coupon-input-wrapper input[type="text"],
    .coupon-input-wrapper .input-text {
        width: 100%;
    }
}

.btn-apply-coupon.loading {
    position: relative;
    color: transparent;
}

.btn-apply-coupon.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.checkout-section.points-earned-section {
    margin-bottom: 1.5rem;
    padding-bottom: 0;
    border-bottom: none;
}

.points-messages-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#yith-par-message-cart.woocommerce-info {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f0fce7;
    border: 1.5px solid #12B328;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #2c3e50;
    margin: 0;
    line-height: 1.4;
}

#yith-par-message-cart img {
    max-width: 16px !important;
    height: 16px;
    margin-right: 0 !important;
    padding-right: 0 !important;
    flex-shrink: 0;
}

#yith-par-message-cart strong {
    color: #12B328;
    font-weight: 600;
}

#yith-par-message-reward-cart.woocommerce-info {
    padding: 0.75rem 1rem;
    background: #ffffff;
    border: 1.5px solid #e5e5e5;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #374151;
    margin: 0;
    line-height: 1.5;
}

#yith-par-message-reward-cart strong {
    color: #2c3e50;
    font-weight: 600;
}

.ywpar_apply_discounts {
    display: inline;
    margin: 0;
}

#ywpar-points-max {
    width: 70px !important;
    padding: 0.35rem 0.5rem !important;
    border: 1px solid #d1d5db !important;
    border-radius: 4px !important;
    font-size: 0.875rem !important;
    text-align: center !important;
    margin: 0 0.35rem !important;
    font-weight: 600 !important;
    color: #12B328 !important;
    transition: all 0.2s !important;
    height: 25px !important;
}

#billing_country_field.ah-single-country {
    display: none;
}

#ywpar-points-max:focus {
    border-color: #12B328 !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(18, 179, 40, 0.1) !important;
}

button.ywpar_apply_discounts {
    padding: 0.4rem 1rem !important;
    background-image: linear-gradient(170deg, #5AE117 0%, #147A22 100%) !important;
    background-color: #12B328 !important;
    color: #ffffff !important;
    border: 1px solid #12B328 !important;
    border-radius: 4px !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    margin-left: 0.5rem !important;
    white-space: nowrap !important;
}

button.ywpar_apply_discounts:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 3px 10px rgba(18, 179, 40, 0.3) !important;
}

button.ywpar_apply_discounts:active {
    transform: translateY(0) !important;
}

.points-messages-wrapper input[type="hidden"] {
    display: none !important;
}

.ywpar_min_reedem_value_error {
    padding: 0.5rem;
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 4px;
    color: #991b1b;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.points-messages-wrapper .clear {
    display: none;
}

#yith-par-message-reward-cart.woocommerce-info {
    position: relative !important;
    padding-left: 1rem !important;
}

#yith-par-message-cart.woocommerce-info::before,
#yith-par-message-reward-cart.woocommerce-info::before {
    display: none !important;
    content: none !important;
}

@media (max-width: 768px) {

    #yith-par-message-cart,
    #yith-par-message-reward-cart {
        padding: 0.65rem 0.85rem;
        font-size: 0.85rem;
    }

    #ywpar-points-max {
        width: 60px !important;
        padding: 0.3rem 0.4rem !important;
        font-size: 0.85rem !important;
    }

    button.ywpar_apply_discounts {
        padding: 0.35rem 0.85rem !important;
        font-size: 0.85rem !important;
    }
}

@media (max-width: 480px) {
    .points-messages-wrapper {
        gap: 0.5rem;
    }

    #yith-par-message-cart,
    #yith-par-message-reward-cart {
        padding: 0.6rem 0.75rem;
        font-size: 0.8rem;
        flex-wrap: wrap;
    }

    #yith-par-message-cart img {
        max-width: 14px !important;
        height: 14px;
    }

    #ywpar-points-max {
        width: 55px !important;
        font-size: 0.8rem !important;
    }

    button.ywpar_apply_discounts {
        padding: 0.35rem 0.75rem !important;
        font-size: 0.8rem !important;
        margin-left: 0.4rem !important;
    }
}

.modern-checkout-error-popup {
    border-radius: 20px !important;
    padding: 20px 0 !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1) !important;
}

.modern-checkout-error-title {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin-bottom: 15px !important;
}

.modern-checkout-error-content {
    font-size: 1rem !important;
    color: #4b5563 !important;
    padding: 0 25px !important;
}

.modern-checkout-error-button {
    border-radius: 12px !important;
    padding: 12px 32px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.modern-checkout-error-button:hover {
    transform: translateY(-1px);
    color: #ffffff;
}

.modern-checkout-error-button:active {
    color: #ffffff;
}

.modern-checkout-error-button:focus {
    color: #ffffff;
}

.checkout-error-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    border-radius: 12px;
    padding: 15px;
}

.checkout-error-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.checkout-error-list li:last-child {
    margin-bottom: 0;
}

.checkout-error-list .error-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.checkout-error-single {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.checkout-error-single .error-icon-large {
    padding: 15px;
    border-radius: 50%;
    width: 80px;
    height: 80px;
}

/* ========================================
   intl-tel-input – phone country picker
   ======================================== */
.woocommerce-checkout .iti {
    width: 100%;
}

.woocommerce-checkout .iti__selected-dial-code {
    font-size: 0.95rem;
    color: #374151;
}

.woocommerce-checkout .iti__selected-country {
    padding: 0 6px 0 10px;
    border-radius: 4px 0 0 4px;
    background: #f9fafb;
    border-right: 1px solid #d1d5db;
    transition: background 0.2s;
}

.woocommerce-checkout .iti__selected-country:hover {
    background: #f0fce7;
}

.woocommerce-checkout .iti__selected-country:focus {
    background: #f0fce7;
    outline: none;
}

.woocommerce-checkout .iti__country-list {
    z-index: 9999;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    max-height: 220px;
    font-size: 0.9rem;
}

.woocommerce-checkout .iti__country-list .iti__country {
    padding: 8px 12px;
    transition: background 0.15s;
}

.woocommerce-checkout .iti__country-list .iti__country:hover {
    background: #f0fce7;
}

.woocommerce-checkout .iti__country-list .iti__country.iti__highlight {
    background: #e8f5e9;
}

.woocommerce-checkout .iti__country-list .iti__divider {
    border-bottom: 1px solid #e5e5e5;
    margin: 0;
    padding: 0;
}

.woocommerce-checkout .iti__country-list .iti__dial-code {
    color: #6b7280;
}

.woocommerce-checkout .iti--separate-dial-code input[type="tel"] {
    padding-left: 0.75rem !important;
}

/* Error state for phone field */
#billing_phone_field.error-field-highlight .iti {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
    border-radius: 4px;
}

#billing_phone_field.error-field-highlight .iti input[type="tel"] {
    border-color: #dc2626;
}

#billing_phone_field.error-field-highlight .iti__selected-country {
    border-right-color: #dc2626;
}

/* Focus state matching checkout theme */
.woocommerce-checkout .iti input[type="tel"]:focus {
    border-color: #12B328;
    outline: none;
    box-shadow: 0 0 0 3px rgba(18, 179, 40, 0.1);
}

@media (max-width: 480px) {
    .woocommerce-checkout .iti__country-list {
        max-height: 180px;
    }

    .woocommerce-checkout .iti__selected-country {
        padding: 0 4px 0 8px;
    }

    .woocommerce-checkout .iti__selected-dial-code {
        font-size: 0.85rem;
    }
}

/* ========================================
   Phone live validation feedback
   ======================================== */
.phone-validation-feedback {
    display: none;
    margin-top: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.4;
    align-items: center;
    gap: 5px;
}

.phone-validation-feedback svg {
    display: inline-block;
    vertical-align: -2px;
    margin-right: 3px;
}

.phone-validation-feedback.invalid {
    color: #dc2626;
}

.phone-validation-feedback.valid {
    color: #12B328;
}

/* Live border states */
#billing_phone_field.phone-invalid .iti input[type="tel"] {
    border-color: #dc2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

#billing_phone_field.phone-invalid .iti__selected-country {
    border-right-color: #dc2626;
}

#billing_phone_field.phone-valid .iti input[type="tel"] {
    border-color: #12B328;
    box-shadow: 0 0 0 2px rgba(18, 179, 40, 0.1);
}

#billing_phone_field.phone-valid .iti__selected-country {
    border-right-color: #12B328;
}

/* Phone input padding fix */
#billing_phone.iti__tel-input {
    padding-left: 95px !important;
}

/* Phone dropdown fixes */
.iti__dropdown-content {
    z-index: 99999 !important;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    background: #fff;
}

.iti__search-input {
    width: 100% !important;
    padding: 8px 12px 8px 32px !important;
    border: none !important;
    border-bottom: 1px solid #e5e7eb !important;
    font-size: 14px !important;
    outline: none !important;
    box-sizing: border-box !important;
    background: #f9fafb !important;
}

.iti__search-input:focus {
    background: #fff !important;
    border-bottom-color: #12B328 !important;
}