/* Hisense Checkout Redesign - Matching Screenshot */

.hisense-checkout-container {
    margin: 0 auto;
    padding: 60px 0 100px;
}

.hisense-checkout-container .page-title {
    margin-bottom: 45px;
}

.hisense-checkout-content {
    display: flex;
    gap: 108px;
    align-items: flex-start;
}

.shipping-information #billing_country_field {
    display: none;
}

/* Left Column - Shipping Information & Payment */
.hisense-checkout-left {
    flex: 2;
}

.shipping-information {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 50px;
}

.checkout_billing {
    margin-top: 25px;
}

/* Form Fields */
.woocommerce-billing-fields .form-row,
.woocommerce-shipping-fields .form-row {
    margin-bottom: 25px;
    margin-top: 0;
}

.woocommerce-billing-fields .enhanced-checkout-fields .enhanced-field-wrapper:first-of-type {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 15px;
}

.form-row label {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;
    all: unset;
    position: unset !important;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row select,
.form-row textarea {
    background: #ffffff;
    border-radius: 300px;
    border: 1px solid #c9c9c9;
    border-width: 1px;
    padding: 12px 23px;
    font-size: 16px;
    color: #5b5b5b;
    ;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
    color: rgba(91, 91, 91, 0.6);
}

.form-row textarea {
    height: 160px;
    border-radius: 5px;

}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row select {
    height: 58px;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border: 1px solid #c9c9c9 !important;
    box-shadow: none !important;
}

/* .woocommerce-shipping-fields h3 {
    font-size: 21px;
    line-height: 50px;
    font-weight: 500;
} */

.checkout_shipping {
    padding-top: 35px;
}

.checkout_shipping h3 {

    margin: 0;
    margin-bottom: 25px
}

.checkout_shipping label {
    display: flex;
}

.checkout_shipping h3 input {
    opacity: 0;
}

.checkout_shipping h3 span {
    position: relative;
    font-size: 21px;
    line-height: 1.2;
    font-weight: 500;
}

.checkout_shipping h3 span::after {
    content: "";
    position: absolute;
    background-color: #ffffff;
    top: 50%;
    left: -25px;
    width: 15px;
    height: 15px;
    transform: translateY(-50%);
    border: 1px solid #6D6D6D;
    pointer-events: none;
    border-radius: 3px;
    cursor: pointer;
}

.checkout_shipping h3 input[type="checkbox"]:checked+span::after {
    background: url(../../../images/check.png) #049C98 no-repeat center;
    color: #ffffff;
}

/* Delivery Note Section */
.delivery-note-section {
    margin-top: 30px;
    border-top: 1px solid #C9C9C9;
    padding-top: 30px;
}


.delivery-note-section h3 {
    font-size: 21px;
    line-height: 1.2;
    font-weight: 500;
    margin: 0;
    margin-bottom: 25px;
}

.delivery-note-textarea {
    width: 100%;
    min-height: 160px;
    resize: none;
    border: 1px solid #C9C9C9;
    border-radius: 5px;
}

/* Payment Methods */
.woocommerce-checkout-payment h4 {
    display: none;
}

.wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wc_payment_method {
    display: flex;
    align-items: center;
    padding: 25px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.wc_payment_method:first-of-type {
    padding-top: 0;
}

.wc_payment_method input[type="radio"] {
    opacity: 0;
    margin: 0;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.wc_payment_method label.radio-wrapper {
    position: relative;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: block;
}

.wc_payment_method label.radio-wrapper span {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #bfbfbf;
    pointer-events: none;
}

.wc_payment_method label.radio-wrapper span:after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.wc_payment_method label.radio-wrapper input[type="radio"]:checked+span:after {
    background: #049C98;
}

.wc_payment_method img {
    margin-left: 10px;
    max-height: 30px;

}

/* Payment Method Wrapper - All payment methods */
.wc_payment_method .payment-method-wrapper {
    padding-left: 15px;
    flex: 1;
}

.wc_payment_method .payment-method-wrapper .payment-title {
    font-size: 16px;
    color: #000000;
    line-height: 1.2;
    font-weight: 400;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.payment_box {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
}

.payment_box p {
    color: #696969;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 400;
    margin: 0;
    margin-top: 5px;
}

.includes_tax {
    display: none !important;
}


/* Place Order Button */
.place-order-btn {
    width: 100%;
    padding: 15px;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    margin-top: 20px;
}

.place-order-btn:hover {
    background: #555;
}

/* Right Column - Your Order */
.hisense-checkout-right {
    flex: 1.4;
}

.your-order-section {
    background: #F1F1F1;
    padding: 50px;
    border-radius: 8px;
    height: fit-content;
}


/* Order Items */
.hisense-order-items {
    margin-bottom: 25px;
}

.hisense-order-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.hisense-order-item:last-child {
    border-bottom: none;
}

.item-image {
    background: #ffffff;
    margin-right: 20px;
    width: 80px;
    height: 80px;
    border-radius: 5px;
    border: 1px solid #E4E4E4;
}

.checkout-product-image {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.item-content-wrapper {
    flex: 1;
}

.item-details {
    flex: 1;
}

.item-name {
    font-size: 20px;
    line-height: 1.2;
    font-weight: 400;
    color: #000000;
    margin: 0 0 5px 0;
}

.item-meta {
    font-size: 12px;
    color: #666;
}

.item-price {
    font-size: 20px;
    line-height: 26px;
    font-weight: 500;
    color: #049c98;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.item-price .quantity-info {
    font-size: 14px;
    color: #666;
    font-weight: 400;
    line-height: 1.2;
}

.item-price .quantity-label {
    color: #999;
}

.item-price .quantity-value {
    color: #333;
    font-weight: 500;
}

.item-price .price-info {
    font-size: 20px;
    line-height: 26px;
    font-weight: 500;
    color: #049c98;
}

.item-price .woocommerce-Price-currencySymbol {
    color: #049c98;
    font-size: 14px;
    line-height: 26px;
    font-weight: 500;
}


/* Order Totals */
.hisense-order-totals {
    padding-top: 5px;
}

.total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.hisense-order-totals .total-line:first-child {
    padding-top: 0;
}

.total-line .label {
    color: #676767;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 400;
}

.total-line .amount {
    color: #727272;
    font-size: 25px;
    line-height: 26px;
    font-weight: 400;
    white-space: nowrap;

}

.total-line .amount .woocommerce-Price-currencySymbol {
    font-size: 16px;
    line-height: 26px;
    font-weight: 400;
    margin-right: 5px;
    color: inherit;
}

.total-line.discount .amount {
    color: #D81818;
}

.total-line.shipping .amount.free {
    color: #16940B;
}

.total-line.points .amount {
    color: #727272;
    font-size: 25px;
    line-height: 26px;
    font-weight: 400;
}

.total-line.points .amount span {
    font-size: 16px;
    line-height: 26px;
    font-weight: 400;
}

.total-line.grand-total {
    padding: 30px 20px;
    margin-top: 30px;
    background: #ffffff;
    border-radius: 5px;
    flex-direction: column;
    align-items: flex-start;
}

.total-line.grand-total .label {
    color: #000000;
    font-size: 20px;
    line-height: 1.1;
    font-weight: 400;
    display: block;
    margin-bottom: 8px
}

.total-line.grand-total .amount {
    color: #049c98;
    font-size: 35px;
    line-height: 1.1;
    font-weight: 400;
}

.total-line.grand-total .tax-note {
    color: #7C7C7C;
    font-size: 15px;
    line-height: 16px;
    font-weight: 400;
    margin-top: 10px;
}



/* Loading States */
.processing {
    opacity: 0.6;
    pointer-events: none;
}

.blockUI.blockOverlay {
    background: rgba(255, 255, 255, 0.8) !important;
}

/* Error Messages */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border-left: 4px solid;
}

.woocommerce-error {
    background: #fef2f2;
    border-left-color: #dc2626;
    color: #dc2626;
}

.woocommerce-message {
    background: #f0fdf4;
    border-left-color: #16a34a;
    color: #16a34a;
}

.woocommerce-info {
    background: #E9F5F5;
    border-left-color: #009591;
    color: #00aaa6;
}

/* Terms and Conditions */
.woocommerce-terms-and-conditions-wrapper {
    margin: 20px 0;
}

.woocommerce-terms-and-conditions-checkbox-text {
    font-size: 14px;
    color: #666;
}

/* Clear floats */
.form-row:after {
    content: "";
    display: table;
    clear: both;
}

/* Select2 Styling */
.select2-container .select2-selection--single {
    height: 44px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 42px;
    padding-left: 15px;
}

.select2-container .select2-selection--single .select2-selection__arrow {
    height: 42px;
    right: 10px;
}

.hisense-checkout-content .price-prefix {
    display: none;
}

.payment-section .place-order {
    display: none;
}

.hisense-checkout-right .woocommerce-checkout-payment {
    display: none;
}

.order_btn_div {
    margin-top: 60px;
}

.order_btn_div .secondary-button {
    width: 100%;
}

.woocommerce-form-coupon-toggle {
    display: none;
}


/* ----------------thank you----------------- */
.hisense-thankyou-container {
    padding: 60px 0 100px;
}

.thankyou-header {
    text-align: center;
}

.thankyou-title {
    color: #049c98;
    font-size: 105px;
    line-height: 1.1;
    font-weight: 500;
    margin: 0;
}

.order-number {
    color: #5d5d5d;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 400;
    margin: 0;
}

.order-number strong {
    color: #000000;
    font-weight: 700;
}

.order-confirmation {
    font-size: 16px;
    line-height: 1.2;
    font-weight: 400;
    margin: 0;
    margin-top: 15px;
}

.order-details-section,
.addresses-section {
    margin-top: 60px;
}

.order-details-section .section-title,
.addresses-section .section-title {
    text-align: center;
    margin-bottom: 45px;
}

.addresses-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.address-block {
    background: #F1F1F1;
    padding: 20px;
    border-radius: 5px;
}

.address-block .address-title {
    font-size: 25px;
    line-height: 1.3;
    font-weight: 500;
    margin: 0 0 15px;
}

.address-block .address-content {
    font-size: 16px;
    line-height: 1.6;
}

.address-block .address-content strong {
    font-weight: 500;
}

.order-details-table-wrapper {
    overflow: auto;
}

.order-details-table {
    border: 1px solid #E4E4E4;
    border-radius: 5px;
    overflow: hidden;
    min-width: 600px
}

.order-table-header {
    background: var(--hisense-border);
    padding: 21px 0;
}

.order-header-row-inside {
    color: #ffffff;
    display: grid;
    grid-template-columns: 50% 20% 10% 20%;
    margin: 0 30px;
}

.order-header-row-inside>div {
    font-size: 20px;
    line-height: 1.1;
    font-weight: 400;
}

.order-items,
.order-summary {
    margin: 0 30px;
}

.order-items {
    padding-top: 20px;
}

.order-summary {
    padding-bottom: 20px;
}

.order-item,
.summary-row {
    display: grid !important;
    align-items: center;
    padding: 20px 0 14px;
    border-bottom: 1px solid #f0f0f0;
}

.order-item {
    grid-template-columns: 50% 20% 10% 20%;
}

.summary-row {
    grid-template-columns: 80% 20%;
}

.order-item .product-name,
.order-item .woocommerce-Price-amount,
.order-item .col-qty,
.order-item .col-total,
.summary-row .label,
.summary-row .label,
.summary-row .amount {
    color: #000000;
    font-size: 16px;
    line-height: 23px;
    font-weight: 400;
}

.order-item .price-prefix {
    font-size: 16px;
    line-height: 23px;
    font-weight: 400;
    margin-right: 3px;
}

.summary-row .total-amount .amount {
    color: #049C98;
    font-size: 35px;
    line-height: 1.1;
    font-weight: 400;
}

.summary-row .total-amount .price-prefix {
    color: #049C98;
    font-size: 16px;
    line-height: 23px;
    font-weight: 400;
}

.order-details-table .woocommerce-Price-currencySymbol {
    display: none;
}

.order-summary .summary-row:last-child {
    border-bottom: none;
}

.order-actions {
    margin-top: 60px;
    text-align: center;
}

/*---------------------- Responsive Design ----------------------*/
@media (max-width: 1550px) {
    .hisense-checkout-container {
        padding: 50px 0 85px;
    }

    .hisense-checkout-container .page-title {
        margin-bottom: 35px;
    }

    .form-row label {
        font-size: 14px;
        line-height: 18px;
    }

    .form-row input[type="text"],
    .form-row input[type="email"],
    .form-row input[type="tel"],
    .form-row select {
        height: 54px;
    }

    .form-row input[type="text"],
    .form-row input[type="email"],
    .form-row input[type="tel"],
    .form-row select,
    .form-row textarea {
        font-size: 14px;
    }

    .checkout_shipping {
        padding-top: 25px;
    }

    .shipping-information {
        margin-bottom: 40px;
    }

    .wc_payment_method {
        display: flex;
        align-items: center;
        padding: 20px 0;
    }

    .your-order-section {
        padding: 40px;
    }

    .hisense-order-items {
        margin-bottom: 20px;
    }

    .item-image {
        margin-right: 15px;
        width: 74px;
        height: 74px;
    }

    .item-name {
        font-size: 18px;
        margin: 0 0 3px 0;
    }

    .item-price {
        font-size: 18px;
        line-height: 24px;
    }

    .item-price .quantity-info {
        font-size: 13px;
    }

    .item-price .price-info {
        font-size: 18px;
        line-height: 24px;
    }

    .item-price .woocommerce-Price-currencySymbol {
        font-size: 13px;
        line-height: 24px;
    }

    .total-line .label {
        font-size: 18px;
    }

    .total-line .amount {
        font-size: 22px;
        line-height: 23px;
    }

    .total-line .amount .woocommerce-Price-currencySymbol {
        font-size: 14px;
        line-height: 24px;
        margin-right: 3px;
    }

    .total-line.points .amount span {
        font-size: 14px;
        line-height: 24px;
    }

    .total-line {
        padding: 20px 0;
    }

    .total-line.grand-total {
        padding: 25px 15px;
        margin-top: 25px;
    }

    .checkout_shipping h3 span {
        font-size: 19px;
    }

    .total-line.grand-total .label {
        font-size: 18px;
    }

    .total-line.grand-total .amount {
        font-size: 32px;
    }

    .total-line.grand-total .tax-note {
        font-size: 14px;
        line-height: 15px;
    }

    .order_btn_div {
        margin-top: 50px;
    }

    .hisense-checkout-content {
        gap: 100px;
    }

    .delivery-note-textarea {
        font-size: 14px;
    }

    .woocommerce-info {
        font-size: 14px;
    }

    .hisense-thankyou-container {
        padding: 50px 0 85px;
    }

    .thankyou-title {
        font-size: 95px;
    }

    .order-number {
        color: #5d5d5d;
        font-size: 18px;
    }

    .order-confirmation {
        font-size: 14px;
        margin-top: 12px;
    }

    .order-details-section,
    .addresses-section {
        margin-top: 50px;
    }

    .order-details-section .section-title,
    .addresses-section .section-title {
        margin-bottom: 35px;
    }

    .order-table-header {
        padding: 18px 0;
    }

    .order-header-row-inside>div {
        font-size: 18px;
    }

    .order-header-row-inside {
        margin: 0 25px;
    }

    .order-items,
    .order-summary {
        margin: 0 25px;
    }

    .order-items {
        padding-top: 15px;
    }

    .order-summary {
        padding-bottom: 15px;
    }

    .order-item .product-name,
    .order-item .woocommerce-Price-amount,
    .order-item .col-qty,
    .order-item .col-total,
    .summary-row .label,
    .summary-row .label,
    .summary-row .amount {
        font-size: 14px;
        line-height: 21px;
    }

    .order-item .price-prefix {
        font-size: 14px
    }

    .summary-row .total-amount .price-prefix {
        font-size: 14px;
    }

    .order-actions {
        margin-top: 50px;
    }

    .summary-row .total-amount .amount {
        color: #049C98;
        font-size: 35px;
        line-height: 1.1;
        font-weight: 400;
    }

    .order-item,
    .summary-row {

        padding: 17px 0 11px;
    }

    .address-block .address-title {
        font-size: 22px;
    }

    .address-block .address-content {
        font-size: 14px;

    }
}

@media (max-width: 1400px) {
    .total-line .label {
        font-size: 17px;
    }

    .total-line .amount {
        font-size: 21px;
        line-height: 22px;
    }

    .hisense-checkout-content {
        gap: 90px;
    }

    .thankyou-title {
        font-size: 85px;
    }

    .order-header-row-inside>div {
        font-size: 17px;
    }
}

@media (max-width: 1200px) {
    .hisense-checkout-content {
        gap: 40px;
    }

    .hisense-checkout-container {
        padding: 45px 0 75px;
    }

    .hisense-checkout-container .page-title {
        margin-bottom: 25px;
    }

    .form-row input[type="text"],
    .form-row input[type="email"],
    .form-row input[type="tel"],
    .form-row select {
        height: 50px;
    }

    .checkout_shipping {
        padding-top: 15px;
    }

    .your-order-section {
        padding: 30px 20px;
    }

    .hisense-order-item {
        padding: 5px 0;
    }

    .item-name {
        font-size: 17px;
    }

    .item-price {
        font-size: 17px;
        line-height: 22px;
    }

    .item-price .quantity-info {
        font-size: 12px;
    }

    .item-price .price-info {
        font-size: 17px;
        line-height: 22px;
    }

    .hisense-order-items {
        margin-bottom: 15px;
    }

    .total-line .label {
        font-size: 16px;
    }

    .total-line .amount {
        font-size: 20px;
        line-height: 21px;
    }

    .total-line {
        padding: 15px 0;
    }

    .total-line.grand-total .label {
        font-size: 17px;
    }

    .total-line.grand-total .amount {
        font-size: 30px;
    }

    .order_btn_div {
        margin-top: 40px;
    }

    .wc_payment_method label.radio-wrapper span {
        width: 20px;
        height: 20px
    }

    .wc_payment_method label.radio-wrapper span:after {
        width: 10px;
        height: 10px;
    }

    .wc_payment_method .payment-method-wrapper {
        padding-left: 10px;
    }

    .thankyou-title {
        font-size: 70px;
    }

    .order-number {
        font-size: 17px;
    }

    .hisense-thankyou-container {
        padding: 45px 0 75px;
    }

    .order-details-section,
    .addresses-section {
        margin-top: 40px;
    }

    .order-details-section .section-title,
    .addresses-section .section-title {
        margin-bottom: 25px;
    }

    .order-actions {
        margin-top: 40px;
    }

    .order-header-row-inside>div {
        font-size: 16px;
    }

    .order-header-row-inside {
        margin: 0 20px;
    }

    .order-items,
    .order-summary {
        margin: 0 20px;
    }
}


@media (max-width: 860px) {
    .hisense-checkout-content {
        flex-direction: column;
    }

    .hisense-checkout-right,
    .hisense-checkout-left {
        flex: unset;
        width: 100%
    }

    .thankyou-title {
        font-size: 55px;
    }
}

@media (max-width: 768px) {


    .woocommerce-billing-fields .form-row-first,
    .woocommerce-billing-fields .form-row-last {
        width: 100%;
        float: none;
        margin-bottom: 20px;
    }

    .your-order-section {
        position: static;
    }

    .total-line .label {
        font-size: 15px;
    }
}

@media (max-width: 767px) {
    .hisense-order-item {
        align-items: flex-start;
    }

    dl.variation {
        display: flex;
        line-height: 1;
        margin: 5px 0 0 0;
    }

    .variation-Installation {
        margin: 0;
    }

    .variation-Installation p {
        margin: 0;
        line-height: 1;
    }

    .hisense-order-item:not(:first-child) {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #dddddd;
    }

    .hisense-checkout-container {
        padding: 45px 0 50px;
    }

    .addresses-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {

    .form-row input[type="text"],
    .form-row input[type="email"],
    .form-row input[type="tel"],
    .form-row select,
    .form-row textarea {
        font-size: 16px;
    }

    .delivery-note-textarea {
        font-size: 16px;
    }

    .order-header-row-inside>div {
        font-size: 15px;
    }

    .woocommerce-billing-fields .enhanced-checkout-fields .enhanced-field-wrapper:first-of-type {
        grid-template-columns: 1fr;
    }
}