/* --------------------------------------------------------------------
 * Checkout – Shipping Information address UI
 * -------------------------------------------------------------------- */

.checkout-shipping-address-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.checkout-shipping-address-header .text-shipping-address {
    margin: 0;
}

.checkout-add-new-address {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .875rem;
    font-weight: 400;
    color: var(--vr-color-main) !important;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.checkout-add-new-address:hover,
.checkout-add-new-address:focus {
    color: var(--vr-color-main) !important;
    opacity: .85;
    text-decoration: none;
    outline: none;
}

.checkout-add-new-address-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid var(--vr-color-main);
    font-size: 11px;
    line-height: 1;
}

.checkout-add-new-address-icon .icon-plus:before {
    font-weight: 700;
}

.checkout-address-col {
    margin-bottom: 12px;
}

.shipping-address-box-cart.checkout-address-card {
    display: block;
    position: relative;
    width: 100%;
    background-color: #fff;
    border: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 18px 18px 44px;
    min-height: auto;
    height: auto;
}

.shipping-address-box-cart.checkout-address-card .address-left {
    display: block;
    width: 100%;
    vertical-align: top;
}

.shipping-address-box-cart.checkout-address-card .custom-control-label {
    padding-left: 8px;
    padding-right: 0;
    cursor: pointer;
    position: relative;
}

.checkout-address-card .custom-control.custom-radio {
    padding-left: 28px !important;
}

.checkout-address-card .custom-control-label::before,
.checkout-address-card .custom-control-label::after {
    left: -28px !important;
    top: 50% !important;
    margin-top: -10px !important;
}

.checkout-address-card .custom-control-label strong {
    display: block;
    font-size: .9375rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #222;
}

.checkout-address-card .custom-control-label p {
    color: #666;
    font-size: .8125rem;
    line-height: 1.5;
    margin-bottom: 0;
    font-weight: 400;
}

.checkout-address-actions {
    position: absolute;
    right: 16px;
    bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
}

.checkout-address-action {
    background: none;
    border: 0;
    padding: 2px;
    color: #999;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color .2s ease-in-out;
}

.checkout-address-action:hover,
.checkout-address-action:focus {
    color: var(--vr-color-main);
    outline: none;
    text-decoration: none;
}

.checkout-shipping-empty {
    margin-bottom: 16px;
}

.checkout-shipping-empty .checkout-add-new-address {
    margin-top: 8px;
}

html[dir="rtl"] .checkout-address-actions,
body[dir="rtl"] .checkout-address-actions {
    right: auto;
    left: 16px;
}

@media (max-width: 575px) {
    .checkout-shipping-address-header {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .checkout-add-new-address {
        white-space: normal;
    }
}

/* --------------------------------------------------------------------
 * Checkout – Shipping Method options UI
 * -------------------------------------------------------------------- */

.checkout-shipping-methods-section {
    margin-top: 32px;
}

.checkout-shipping-methods-header {
    margin-bottom: 20px;
}

.checkout-shipping-methods-header .text-shipping-address {
    margin-bottom: 6px;
}

.checkout-shipping-methods-subtitle {
    font-size: .8125rem;
    color: #666;
    line-height: 1.5;
}

.checkout-shipping-no-delivery {
    margin-top: 32px;
}

.checkout-shipping-vendor-group {
    margin-bottom: 24px;
}

.checkout-shipping-vendor {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: .9375rem;
    color: #222;
}

.checkout-shipping-vendor-icon {
    flex-shrink: 0;
    color: #666;
}

.checkout-shipping-vendor-empty {
    margin: 0 0 8px;
    font-size: .8125rem;
}

.checkout-shipping-method-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkout-shipping-method-card {
    background-color: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 16px 18px;
    transition: border-color .2s ease-in-out;
}

.checkout-shipping-method-card:has(.custom-control-input:checked) {
    border-color: var(--vr-color-main);
}

.checkout-shipping-method-option {
    margin: 0;
    padding-top: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
}

.checkout-shipping-method-option.custom-radio {
    padding-left: 28px !important;
    min-height: 20px;
}

.checkout-shipping-method-option .custom-control-label {
    display: block;
    width: 100%;
    padding-left: 8px;
    cursor: pointer;
    position: relative;
}

.checkout-shipping-method-option .custom-control-label::before,
.checkout-shipping-method-option .custom-control-label::after {
    left: -28px !important;
    top: 50% !important;
    margin-top: -10px !important;
}

.checkout-shipping-method-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding-left: 0;
}

.checkout-shipping-method-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.checkout-shipping-method-option .method-name {
    display: block;
    min-width: 0;
    font-size: .9375rem;
    font-weight: 600;
    color: #222;
    line-height: 1.35;
}

.checkout-shipping-method-desc {
    display: block;
    font-size: .8125rem;
    font-weight: 400;
    color: #666;
    line-height: 1.45;
}

.checkout-shipping-method-price {
    flex-shrink: 0;
    font-size: .9375rem;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
}

/* --------------------------------------------------------------------
 * Checkout – shared step actions (shipping + payment)
 * -------------------------------------------------------------------- */

.checkout-payment-actions {
    margin-bottom: 0 !important;
    overflow: hidden;
}

.checkout-payment-actions .btn-continue-payment,
.checkout-payment-actions .btn-cart-shipping {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    float: right;
    margin: 0 0 10px 0;
}

.checkout-payment-actions .btn-continue-payment .icon-angle-right,
.checkout-payment-actions .btn-cart-shipping .icon-angle-right {
    font-size: .875rem;
    line-height: 1;
}

.checkout-payment-actions .link-return-cart {
    clear: both;
    display: inline-block;
    float: left;
    line-height: 1.5;
    margin: 0;
}

/* --------------------------------------------------------------------
 * Checkout – Payment Method options UI
 * -------------------------------------------------------------------- */

.checkout-payment-methods-section {
    margin-top: 8px;
}

.checkout-payment-method-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.checkout-payment-method-card {
    background-color: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 16px 18px;
    transition: border-color .2s ease-in-out;
}

.checkout-payment-method-card:has(.custom-control-input:checked) {
    border-color: var(--vr-color-main);
}

.checkout-payment-method-option {
    margin: 0;
    padding-top: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
}

.checkout-payment-method-option.custom-radio {
    padding-left: 28px !important;
    min-height: 20px;
}

.checkout-payment-method-label {
    display: block;
    width: 100%;
    padding-left: 8px;
    cursor: pointer;
    position: relative;
    margin: 0 !important;
}

.checkout-payment-method-option .custom-control-label::before,
.checkout-payment-method-option .custom-control-label::after {
    left: -28px !important;
    top: 50% !important;
    margin-top: -10px !important;
}

.checkout-payment-method-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.checkout-payment-method-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.checkout-payment-method-option .method-name {
    display: block;
    font-size: .9375rem;
    font-weight: 600;
    color: #222;
    line-height: 1.35;
}

.checkout-payment-method-desc {
    display: block;
    font-size: .8125rem;
    font-weight: 400;
    color: #666;
    line-height: 1.45;
}

.checkout-payment-method-logos {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    flex-shrink: 0;
}

.checkout-payment-method-logos img {
    height: 22px;
    width: auto;
    max-width: 100%;
    margin: 0;
    float: none;
}

.checkout-payment-terms {
    margin-bottom: 0 !important;
}

@media (max-width: 575px) {
    .checkout-shipping-method-content {
        align-items: flex-start;
    }

    .checkout-payment-method-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .checkout-payment-method-logos {
        justify-content: flex-start;
    }
}
