/* i-Light checkout/header SAFE v2.0.4 */

.so-onepagecheckout .col-right #ilight-opc-methods-row .checkout-payment-methods,
.so-onepagecheckout .col-right #ilight-opc-methods-row .checkout-shipping-methods {
    display: block !important;
}

.so-onepagecheckout #ilight-opc-methods-row {
    margin-bottom: 12px;
}

.so-onepagecheckout #ilight-opc-methods-row > div > .checkout-content {
    margin-bottom: 0;
}

.so-onepagecheckout #ilight-opc-methods-row .checkout-payment-methods .box-inner,
.so-onepagecheckout #ilight-opc-methods-row .checkout-shipping-methods .box-inner {
    padding: 12px 14px 7px;
}

.so-onepagecheckout #ilight-opc-methods-row .box-inner > .radio {
    position: relative;
    margin: 0 0 5px;
    padding: 6px 32px 6px 7px;
    border: 1px solid transparent;
    border-radius: 5px;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.so-onepagecheckout #ilight-opc-methods-row .box-inner > .radio > label {
    margin: 0;
    line-height: 1.35;
}

.so-onepagecheckout #ilight-opc-methods-row input[type="radio"] {
    accent-color: #ff7f1a;
}

.so-onepagecheckout #ilight-opc-methods-row .box-inner > .radio.ilight-method-option-selected {
    border-color: #ff7f1a;
    background: #fff7ef;
    box-shadow: 0 0 0 2px rgba(255, 127, 26, 0.08);
}

.so-onepagecheckout #ilight-opc-methods-row .box-inner > .radio.ilight-method-option-selected::after {
    content: "\2713";
    position: absolute;
    top: 50%;
    right: 9px;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    border-radius: 50%;
    background: #ff7f1a;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.so-onepagecheckout .checkout-shipping-methods .box-inner > .radio.opc-hide-radio {
    padding: 6px 7px 8px;
}

.so-onepagecheckout .checkout-shipping-methods .radio.opc-hide-radio > label {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 20px;
    margin: 0 28px 5px 0;
}

.so-onepagecheckout .checkout-shipping-methods .radio.opc-hide-radio > label::before {
    content: "";
    box-sizing: border-box;
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    border: 1px solid #8b8b8b;
    border-radius: 50%;
    background: #fff;
}

.so-onepagecheckout .checkout-shipping-methods .radio.opc-hide-radio.ilight-omniva-selected > label::before {
    border-color: #ff7f1a;
    background: #ff7f1a;
    box-shadow: inset 0 0 0 3px #fff;
}

.so-onepagecheckout .checkout-shipping-methods .radio.opc-hide-radio .omniva-terminal-container {
    max-width: none;
    margin-top: 4px;
}

.so-onepagecheckout .checkout-shipping-methods .radio.opc-hide-radio .omniva-dropdown {
    box-sizing: border-box;
    min-height: 34px;
    padding: 5px 30px 5px 8px;
    border: 1px solid #bdbdbd;
    border-radius: 4px;
    background-color: #fff;
    line-height: 22px;
}

.so-onepagecheckout .checkout-shipping-methods .radio.opc-hide-radio.ilight-omniva-selected .omniva-dropdown {
    border-color: #ff7f1a;
    background-color: #fff7ef;
    box-shadow: 0 0 0 2px rgba(255, 127, 26, 0.08);
}

@media (max-width: 991px) {
    .so-onepagecheckout #ilight-opc-methods-row > div + div {
        margin-top: 12px;
    }
}

.so-onepagecheckout .checkout-shipping-methods.ilight-method-required,
.so-onepagecheckout .checkout-payment-methods.ilight-method-required {
    border: 2px solid #a94442 !important;
    box-shadow: 0 0 0 3px rgba(169, 68, 66, 0.12) !important;
}

.so-onepagecheckout .checkout-shipping-methods.ilight-method-required .secondary-title,
.so-onepagecheckout .checkout-payment-methods.ilight-method-required .secondary-title {
    color: #a94442;
    background-color: #fff2f1;
}

.so-onepagecheckout .ilight-opc-method-error {
    margin: 8px 12px;
    padding: 8px 10px;
}

.so-onepagecheckout #ilight-opc-left-comment {
    margin-top: 0;
    padding-bottom: 12px;
}

.so-onepagecheckout #ilight-opc-left-comment > div > label {
    display: block;
    width: 100%;
    margin: 0;
    padding: 14px 14px 0;
}

.so-onepagecheckout #ilight-opc-left-comment textarea[name="comment"] {
    width: 100%;
    height: 90px;
    min-height: 88px;
    margin-top: 10px;
    resize: vertical;
}

.so-onepagecheckout #coupon_voucher_reward .panel-group {
    margin-bottom: 10px;
}

.so-onepagecheckout #coupon_voucher_reward .panel {
    margin-bottom: 6px;
    box-shadow: none;
}

.so-onepagecheckout #coupon_voucher_reward .panel-heading {
    padding: 8px 12px;
}

.so-onepagecheckout .checkout-cart table > thead > tr > th,
.so-onepagecheckout .checkout-cart table > tbody > tr > td {
    padding: 8px 6px;
}

.so-onepagecheckout .checkout-cart table img {
    max-width: 52px;
    height: auto;
}

.so-onepagecheckout .confirm-section {
    padding-bottom: 10px;
}

.so-onepagecheckout .confirm-section > .box-inner {
    padding: 12px 16px 0;
}

.so-onepagecheckout .confirm-section .check-terms {
    margin: 0;
    padding: 8px 10px;
    border-left: 3px solid #ff7f1a;
    border-radius: 4px;
    background: #fafafa;
}

.so-onepagecheckout .confirm-section.ilight-provider-confirm-only .confirm-order {
    display: none !important;
}

.so-onepagecheckout .confirm-section #so-checkout-confirm-button {
    min-height: 42px;
}

.so-onepagecheckout form.spell-payment > #payment > h3,
.so-onepagecheckout .spell-payment > #payment > h3 {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.2;
}

.so-onepagecheckout .spell-payment .payment-method-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.so-onepagecheckout .spell-payment .payment-method-list > label {
    box-sizing: border-box;
    width: auto !important;
    min-width: 0;
    min-height: 70px;
    margin: 0 !important;
    padding: 8px 10px !important;
}

.so-onepagecheckout .spell-payment .payment-method-list > label img {
    max-width: 135px !important;
    max-height: 25px !important;
    height: auto !important;
}

.so-onepagecheckout .spell-payment .submit-payment-method-button {
    min-height: 38px;
    padding: 8px 14px;
}

@media (max-width: 767px) {
    .so-onepagecheckout #ilight-opc-left-comment textarea[name="comment"] {
        height: 86px;
        min-height: 80px;
    }

    .so-onepagecheckout .confirm-section #so-checkout-confirm-button {
        width: 100%;
    }
}

@media (max-width: 479px) {
    .so-onepagecheckout .spell-payment .payment-method-list {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1200px) {
    header.typeheader-1 .header-middle .middle-right {
        display: none !important;
    }

    header.typeheader-1 .header-middle .main-menu {
        width: 80% !important;
    }
}

@media (min-width: 1200px) and (max-width: 1279.98px) {
    header.typeheader-1 .ilight-top-phone {
        display: none !important;
    }

    header.typeheader-1 .main-menu .container-megamenu.horizontal ul.megamenu > li {
        margin-right: 12px !important;
    }

    header.typeheader-1 .main-menu .container-megamenu.horizontal ul.megamenu > li:last-child {
        margin-right: 0 !important;
    }

    header.typeheader-1 .main-menu .container-megamenu.horizontal ul.megamenu > li > a {
        font-size: 13px !important;
    }
}

@media (min-width: 1280px) {
    header.typeheader-1 .header-top .row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
    }

    header.typeheader-1 .header-top .header-top-left {
        grid-column: 1;
        width: auto !important;
        min-width: 0;
        float: none !important;
    }

    header.typeheader-1 .ilight-top-phone {
        display: block !important;
        grid-column: 2;
        position: static;
        float: none !important;
        transform: none;
        line-height: 40px;
        white-space: nowrap;
    }

    header.typeheader-1 .header-top .header-top-right {
        grid-column: 3;
        width: auto !important;
        min-width: 0;
        float: none !important;
        justify-self: end;
    }

    header.typeheader-1 .header-top .welcome-msg {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    header.typeheader-1 .ilight-top-phone ul {
        margin: 0;
        padding: 0;
    }

    header.typeheader-1 .ilight-top-phone ul li {
        display: none !important;
    }

    header.typeheader-1 .ilight-top-phone ul li:last-child {
        display: inline-block !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 40px;
    }

    header.typeheader-1 .ilight-top-phone ul li:last-child::after {
        display: none !important;
    }

    header.typeheader-1 .ilight-top-phone a {
        color: #fff !important;
    }
}

@media (min-width: 1280px) and (max-width: 1365.98px) {
    header.typeheader-1 .main-menu .container-megamenu.horizontal ul.megamenu > li {
        margin-right: 18px !important;
    }
}

@media (min-width: 1366px) {
    header.typeheader-1 .header-middle .main-menu {
        width: 83.3333% !important;
    }

    header.typeheader-1 .main-menu .container-megamenu.horizontal ul.megamenu > li {
        margin-right: 20px !important;
    }

    header.typeheader-1 .main-menu .container-megamenu.horizontal ul.megamenu > li:last-child {
        margin-right: 0 !important;
    }
}

/* Checkout visual refinement: keep the wider canvas and richer hierarchy
   limited to this page. Header and footer containers are not affected. */
.so-onepagecheckout {
    --ilight-checkout-navy: #1d334a;
    --ilight-checkout-navy-hover: #284a68;
    --ilight-checkout-orange: #ff7f1a;
    --ilight-checkout-line: #dfe4e8;
    --ilight-checkout-soft: #f6f8fa;
}

@media (min-width: 1200px) {
    body.checkout-checkout #wrapper > .container.ilight-checkout-page-container {
        width: calc(100% - 40px);
        max-width: 1440px;
    }

    body.checkout-checkout .so-onepagecheckout > .row > .col-left {
        width: 39%;
    }

    body.checkout-checkout .so-onepagecheckout > .row > .col-right {
        width: 61%;
    }
}

@media (min-width: 992px) {
    .so-onepagecheckout #ilight-opc-methods-row {
        display: flex;
        align-items: stretch;
        flex-wrap: wrap;
    }

    .so-onepagecheckout #ilight-opc-methods-row > .ilight-opc-payment-column,
    .so-onepagecheckout #ilight-opc-methods-row > .ilight-opc-shipping-column {
        display: flex;
        float: none;
    }

    .so-onepagecheckout #ilight-opc-methods-row > div > .checkout-content {
        width: 100%;
    }
}

.so-onepagecheckout .checkout-cart {
    border-color: var(--ilight-checkout-line);
    box-shadow: 0 3px 14px rgba(29, 51, 74, 0.07);
}

.so-onepagecheckout.layout2 .checkout-cart > .box-inner {
    padding: 12px 14px 14px;
}

.so-onepagecheckout.layout2 .checkout-cart .table-responsive.checkout-product {
    padding: 0;
}

.so-onepagecheckout .checkout-cart .checkout-product table {
    table-layout: auto;
}

.so-onepagecheckout .checkout-cart .checkout-product thead th {
    border-bottom: 1px solid var(--ilight-checkout-line);
    background: #eef1f3;
    color: #5c6670;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    vertical-align: middle;
}

.so-onepagecheckout .checkout-cart .checkout-product tbody td {
    border-bottom: 1px solid #edf0f2;
    vertical-align: middle;
}

.so-onepagecheckout .checkout-cart .checkout-product tbody tr:last-child td {
    border-bottom-color: var(--ilight-checkout-line);
}

.so-onepagecheckout .checkout-cart td.name > a:first-child:not(.product-name) {
    display: block;
    float: left;
    width: 58px;
    margin: 0 10px 2px 0;
    text-align: center;
}

.so-onepagecheckout .checkout-cart td.name > a:first-child:not(.product-name) img {
    display: inline-block;
    width: auto;
    max-width: 52px;
    max-height: 52px;
    margin: 0;
    object-fit: contain;
}

.so-onepagecheckout .checkout-cart td.name > .product-name {
    display: block;
    padding-top: 2px;
    color: #354352;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.so-onepagecheckout .checkout-cart td.name::after {
    content: "";
    display: table;
    clear: both;
}

.so-onepagecheckout .checkout-cart th.quantity,
.so-onepagecheckout .checkout-cart td.quantity {
    width: 88px;
}

.so-onepagecheckout .checkout-cart th.price,
.so-onepagecheckout .checkout-cart td.price,
.so-onepagecheckout .checkout-cart th.total,
.so-onepagecheckout .checkout-cart td.total {
    width: 76px;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .so-onepagecheckout .checkout-cart td.quantity .input-group {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: auto;
        gap: 6px;
    }

    .so-onepagecheckout .checkout-cart td.quantity input[type="text"] {
        position: static;
        top: auto;
        width: 38px;
        height: 34px;
        margin: 0;
        padding: 6px 4px;
    }

    .so-onepagecheckout .checkout-cart td.quantity .input-group-btn {
        display: inline-flex;
        flex: 0 0 22px;
        flex-direction: column;
        gap: 2px;
        width: 22px;
        min-width: 22px;
        margin: 0;
        vertical-align: middle;
    }

    .so-onepagecheckout .checkout-cart td.quantity .btn-delete,
    .so-onepagecheckout .checkout-cart td.quantity .btn-update {
        display: block;
        width: 22px;
        height: 17px;
        color: #697681;
        line-height: 17px;
        text-align: center;
    }
}

.so-onepagecheckout .checkout-cart .btn-delete,
.so-onepagecheckout .checkout-cart .btn-update {
    position: relative;
    border-radius: 3px;
    outline: none;
}

.so-onepagecheckout .checkout-cart .btn-delete:hover,
.so-onepagecheckout .checkout-cart .btn-delete:focus,
.so-onepagecheckout .checkout-cart .btn-update:hover,
.so-onepagecheckout .checkout-cart .btn-update:focus {
    color: var(--ilight-checkout-orange);
    background: #fff4ea;
}

/* Replace the theme's body-level tooltip, which can remain orphaned after an
   AJAX cart refresh and draw a horizontal line across the viewport. */
.so-onepagecheckout .checkout-cart [data-ilight-action-label]::after {
    content: attr(data-ilight-action-label);
    position: absolute;
    top: 50%;
    right: calc(100% + 7px);
    z-index: 30;
    width: max-content;
    max-width: 150px;
    padding: 5px 8px;
    border-radius: 4px;
    background: var(--ilight-checkout-navy);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) translateX(3px);
    transition: opacity 0.12s ease, transform 0.12s ease;
}

.so-onepagecheckout .checkout-cart [data-ilight-action-label]:hover::after,
.so-onepagecheckout .checkout-cart [data-ilight-action-label]:focus::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.so-onepagecheckout .checkout-cart .checkout-product tfoot {
    border-top: 2px solid var(--ilight-checkout-navy);
}

.so-onepagecheckout .checkout-cart .checkout-product tfoot td {
    padding: 7px 6px !important;
    border: 0;
    color: #52606d;
    line-height: 1.2;
    text-transform: none;
}

.so-onepagecheckout .checkout-cart .checkout-product tfoot tr:last-child {
    background: var(--ilight-checkout-navy);
}

.so-onepagecheckout .checkout-cart .checkout-product tfoot tr:last-child td {
    padding-top: 11px !important;
    padding-bottom: 11px !important;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.so-onepagecheckout .checkout-cart .checkout-product tfoot tr:last-child td:last-child {
    color: #ff9a3d;
    font-size: 16px;
}

.so-onepagecheckout .checkout-cart #payment-confirm-button {
    margin-top: 14px;
    padding-top: 0;
    border: 1px solid var(--ilight-checkout-line);
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}

.so-onepagecheckout .checkout-cart #payment-confirm-button > .secondary-title {
    margin: 0;
}

.so-onepagecheckout .checkout-cart #payment-confirm-button > form.spell-payment,
.so-onepagecheckout .checkout-cart #payment-confirm-button > .spell-payment {
    padding: 0;
}

.so-onepagecheckout .checkout-cart #payment-confirm-button form.spell-payment > #payment,
.so-onepagecheckout .checkout-cart #payment-confirm-button .spell-payment > #payment {
    margin: 0;
    padding: 12px 14px 14px;
    background: var(--ilight-checkout-soft);
}

.so-onepagecheckout .checkout-cart #payment-confirm-button .spell-payment .payment-method-select {
    padding: 0;
    background: transparent;
}

.so-onepagecheckout .checkout-cart #payment-confirm-button .spell-payment .payment-method-list {
    margin: 0;
}

.so-onepagecheckout .checkout-cart #payment-confirm-button .spell-payment .payment-method-list > label {
    border: 1px solid var(--ilight-checkout-line);
    border-radius: 6px !important;
    background: #fff;
}

.so-onepagecheckout .checkout-cart #payment-confirm-button .spell-payment .payment-method-list > label.ilight-provider-selected {
    border-color: var(--ilight-checkout-orange);
    background: #fff7ef;
    box-shadow: 0 0 0 2px rgba(255, 127, 26, 0.09);
}

.so-onepagecheckout form.spell-payment > #payment > h3,
.so-onepagecheckout .spell-payment > #payment > h3 {
    margin: 0 0 10px;
    color: var(--ilight-checkout-navy);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}

.so-onepagecheckout .spell-payment .submit-payment-method-button,
.so-onepagecheckout #payment-confirm-button #button-confirm,
.so-onepagecheckout .confirm-section #so-checkout-confirm-button {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 11px 22px !important;
    border: 0 !important;
    border-radius: 4px !important;
    background: var(--ilight-checkout-navy) !important;
    box-shadow: inset 5px 0 0 var(--ilight-checkout-orange), 0 5px 12px rgba(29, 51, 74, 0.18) !important;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.so-onepagecheckout .spell-payment .submit-payment-method-button:hover,
.so-onepagecheckout #payment-confirm-button #button-confirm:hover,
.so-onepagecheckout .confirm-section #so-checkout-confirm-button:hover {
    background: var(--ilight-checkout-navy-hover) !important;
    box-shadow: inset 5px 0 0 var(--ilight-checkout-orange), 0 7px 16px rgba(29, 51, 74, 0.24) !important;
}

.so-onepagecheckout .spell-payment .submit-payment-method-button:focus,
.so-onepagecheckout #payment-confirm-button #button-confirm:focus,
.so-onepagecheckout .confirm-section #so-checkout-confirm-button:focus {
    outline: 2px solid var(--ilight-checkout-orange);
    outline-offset: 2px;
}

.so-onepagecheckout .spell-payment .submit-payment-method-button:disabled,
.so-onepagecheckout #payment-confirm-button #button-confirm:disabled,
.so-onepagecheckout .confirm-section #so-checkout-confirm-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    box-shadow: inset 5px 0 0 #d3d8dd !important;
}

@media (max-width: 767px) {
    .so-onepagecheckout.layout2 .checkout-cart > .box-inner {
        padding-right: 10px;
        padding-left: 10px;
    }

    .so-onepagecheckout .checkout-cart td.name > a:first-child:not(.product-name) {
        width: 44px;
        margin-right: 7px;
    }

    .so-onepagecheckout .checkout-cart td.name > a:first-child:not(.product-name) img {
        max-width: 40px;
        max-height: 40px;
    }

    .so-onepagecheckout .checkout-cart [data-ilight-action-label]::after {
        display: none;
    }
}
