/**
 * E-Visa Vietnam Direct Checkout Wizard
 * Customize giao diện wizard tại đây.
 * Version: 2.8
 */

/* ========== Container ========== */
.visa-wizard-container {
    background: #fff;
    position: relative;
    box-shadow: 0px 30px 70px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 15px 15px;
    overflow: hidden;
    margin: 30px 0;
}

.visa-wizard-container .form-inner {
    padding: 0 0 40px;
}

#visa_form {
    padding: 0 40px;
}

/* ========== Progress bar – ON TOP, FULL WIDTH ========== */
.visa-progress-top {
    width: 100%;
    padding: 0;
    margin: 0;
    background: #e8e8e8;
    border-radius: 15px 15px 0 0;
}

.visa-progress-track {
    width: 100%;
    height: 12px;
    background: linear-gradient(180deg, #e0e0e0 0%, #d0d0d0 50%, #e0e0e0 100%);
    overflow: hidden;
    border-radius: 0;
}

.visa-progress-fill {
    height: 100%;
    min-width: 2px;
    background: linear-gradient(180deg, #7a7a7a 0%, #5a5a5a 50%, #6a6a6a 100%);
    border-radius: 0;
    width: 0%;
    transition: width 0.4s ease;
}

/* ========== Header ========== */
.visa-sticky-header {
    background: #F5F5F5;
    padding: 18px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e3e3e3;
}

/* Logo trong sticky header */
.visa-header-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    opacity: 0.92;
    transition: opacity 0.2s ease;
}

.visa-header-logo-link:hover,
.visa-header-logo-link:focus {
    opacity: 1;
    outline: none;
}

.visa-header-logo {
    max-height: 36px;
    width: auto;
    display: block;
}

.visa-step-info {
    font-size: 14px;
    font-weight: 600;
    color: #bc9c22;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.visa-step-info span {
    color: #e85a2a;
}

.visa-total-price {
    font-size: 22px;
    color: #bc9c22;
    font-weight: 800;
}

.visa-total-price bdi {
    display: inline-flex;
    align-items: center;
}

/* ========== Step content ========== */
#visa_wizard .step-content {
    display: none !important;
    padding-top: 30px;
}

#visa_wizard .step-content.active {
    display: block !important;
    animation: visaFadeIn 0.4s ease;
}

@keyframes visaFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.visa-step-inner {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.visa-wizard-container .step-title {
    font-size: 22px;
    font-weight: 700;
    color: #bc9c22;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.visa-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: #222;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    line-height: 1;
}

.visa-step-desc {
    font-size: 15px;
    color: #e85a2a;
    line-height: 1.5;
    margin-bottom: 28px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.visa-step-notes {
    margin-top: 20px;
    text-align: left;
}

.visa-step-notes .visa-step-note {
    display: block;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin-top: 0;
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    background: #f8f9fa;
    border: 1px solid #eee;
}

.visa-step-notes .visa-step-note:last-child {
    margin-bottom: 0;
}

.visa-step-note {
    font-size: 13px;
    color: #888;
    margin-top: 12px;
    margin-bottom: 0;
}

/* ========== Form ========== */
.select2-container.select2-container--open .select2-dropdown--below {
    border-top: 1px solid #dedede !important;
}

.select2-container.select2-container--open .select2-dropdown--above {
    border-bottom: 1px solid #dedede !important;
}

.visa-wizard-container .form-group {
    margin-bottom: 24px;
    text-align: left;
}

.visa-step-inner .form-group {
    text-align: center;
}

.visa-wizard-container .form-group:last-child {
    margin-bottom: 0;
}

.visa-wizard-container .phone-group {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    max-width: 400px;
    margin: 0 auto;
}

.visa-wizard-container .phone-code-wrap {
    flex: 0 0 140px;
}

.visa-wizard-container .phone-number-wrap {
    flex: 1;
    min-width: 0;
}

.visa-wizard-container .phone-number-wrap .form-control {
    border: none;
    border-bottom: 2px solid #e0e0e0;
    border-radius: 0;
}

.visa-wizard-container .phone-number-wrap .form-control:focus {
    border-bottom-color: #bc9c22;
    outline: none;
    box-shadow: none;
}

.visa-step-inner .form-control {
    text-align: center !important;
}

.visa-wizard-container .form-control {
    display: block !important;
    width: 100% !important;
    max-width: 400px !important;
    margin: 0 auto !important;
    height: 50px !important;
    padding: 12px 18px !important;
    font-size: 16px !important;
    color: #333 !important;
    background: #fff !important;
    border: none !important;
    border-bottom: 2px solid #e0e0e0 !important;
    border-radius: 0 !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
}

.visa-wizard-container .form-control:focus {
    border-bottom-color: #bc9c22;
    outline: none;
    box-shadow: none;
}

.visa-wizard-container .form-control::placeholder {
    color: #999;
}

.visa-wizard-container input[type="date"] {
    text-align: center;
    cursor: pointer;
}

.visa-wizard-container input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
}

/* ========== Select2 ========== */
.visa-step-inner .select2-container {
    max-width: 400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.visa-wizard-container .select2-container {
    width: 100% !important;
}

.visa-wizard-container .select2-container .select2-selection--single {
    height: 50px !important;
    background: #fff !important;
    border: none !important;
    border-bottom: 2px solid #e0e0e0 !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 18px;
}

.visa-wizard-container .select2-container--default.select2-container--focus .select2-selection--single {
    border-bottom-color: #bc9c22 !important;
    box-shadow: none !important;
}

.visa-wizard-container .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 50px !important;
    right: 12px;
}

.visa-wizard-container .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #333 !important;
    padding-left: 0 !important;
    font-size: 16px;
    text-align: center;
}

/* ========== Step 6: ví dụ Passport / Photo (2 cột, responsive, lightbox) ========== */
.visa-upload-examples {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
    max-width: 560px;
    margin: 0 auto 28px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.visa-upload-example-col {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.visa-upload-example-title {
    margin: 0 0 10px 0;
    font-size: 15px;
    font-weight: 700;
    color: #bc9c22;
    line-height: 1.3;
}

.visa-upload-example-trigger {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    cursor: zoom-in;
    overflow: hidden;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.visa-upload-example-trigger:hover,
.visa-upload-example-trigger:focus {
    outline: none;
    border-color: #bc9c22;
    box-shadow: 0 4px 16px rgba(188, 156, 34, 0.2);
}

.visa-upload-example-trigger img {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(42vh, 320px);
    object-fit: contain;
    object-position: center;
}

/* Lightbox xem ảnh lớn */
.visa-upload-lightbox {
    display: none;
    position: fixed;
    z-index: 1000001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    padding: 16px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.88);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    backdrop-filter: blur(4px);
}

.visa-upload-lightbox-close {
    position: fixed;
    top: 12px;
    right: 16px;
    z-index: 1000002;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.visa-upload-lightbox-close:hover,
.visa-upload-lightbox-close:focus {
    background: #fff;
    color: #1e593c;
    outline: 2px solid #bc9c22;
}

.visa-upload-lightbox-inner {
    max-width: min(96vw, 1100px);
    max-height: calc(100vh - 32px);
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visa-upload-lightbox-inner img {
    max-width: 100%;
    max-height: calc(100vh - 32px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

/* ========== File upload ========== */
.visa-upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
}

.visa-upload-grid .form-group {
    margin-bottom: 0;
}

.visa-upload-grid .form-control {
    max-width: 100%;
    border-bottom: 2px solid #e0e0e0;
    cursor: pointer;
}

.visa-upload-grid .form-control:focus {
    border-bottom-color: #bc9c22;
}

.file-upload-wrapper input[type="file"] {
    padding: 12px;
    font-size: 14px;
    cursor: pointer;
}

.upload-status {
    font-size: 13px;
    margin-top: 6px;
    color: #666;
    text-align: center;
}

.upload-preview-box {
    margin-top: 12px;
    display: none;
    text-align: center;
}

.upload-preview-box img {
    height: 100px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    max-width: 100%;
}

/* ========== Review box ========== */
.visa-step-inner .review-box {
    max-width: 560px;
    margin: 0 auto 32px;
    text-align: left;
}

.review-box {
    background: #F9F9F9;
    padding: 28px 32px;
    border-radius: 10px;
    border: 1px solid #eee;
}

.review-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e0e0e0;
    line-height: 1.5;
}

.review-item:last-of-type {
    border-bottom: none;
}

.review-item.review-total {
    border-top: 1px solid #ddd;
    padding-top: 14px;
    margin-top: 8px;
    font-weight: 700;
    font-size: 18px;
}

.review-item.review-total .review-value {
    color: #bc9c22;
    font-size: 22px;
}

.review-value {
    font-weight: 700;
    color: #222;
    text-align: right;
    flex: 1;
    margin-left: 16px;
    word-break: break-word;
}

.review-item span:first-child {
    font-weight: 600;
    color: #555;
    flex-shrink: 0;
    min-width: 140px;
}

/* Terms – step 7 */
.visa-terms-wrap {
    margin-top: 20px !important;
}

.visa-terms-label {
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
    text-align: left;
    margin: 0 auto;
}

.visa-terms-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.visa-terms-scroll-box {
    max-height: 280px;
    overflow-y: auto;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    font-size: 13px;
    line-height: 1.6;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.visa-terms-scroll-box p {
    margin-bottom: 12px;
}

.visa-terms-scroll-box .terms-section-item,
.visa-terms-scroll-box .visa-terms-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ddd;
}

.visa-terms-scroll-box .terms-section-item:last-child,
.visa-terms-scroll-box .visa-terms-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.visa-terms-scroll-box .terms-section-item h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 700;
    color: #222;
}

.visa-terms-scroll-box .terms-section-item > div {
    font-size: 13px;
    line-height: 1.6;
    color: #555;
    text-align: left;
}

/* Travelers sections */
.traveler-upload-section,
.traveler-contact-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.traveler-upload-section:last-child,
.traveler-contact-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.traveler-upload-section h4,
.traveler-contact-section h4 {
    margin: 20px 0 12px;
    font-size: 16px;
    color: #222;
    font-weight: 700;
}

/* ========== Actions – Back (←) | Next (→) ========== */
.visa-actions {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid #e3e3e3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.visa-wizard-container .btn-1 {
    padding: 16px 48px;
    min-width: 160px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    background: #bc9c22;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: none !important;
    outline: none !important;
}

.visa-wizard-container .btn-1::before {
    content: '' !important;
}

.visa-wizard-container .btn-1:hover,
.visa-wizard-container .btn-1:focus {
    background: #1e593c;
    color: #fff;
    outline: none;
    box-shadow: none;
}

.visa-wizard-container .btn-back {
    padding: 10px 20px;
    min-width: auto;
    font-weight: 600;
    font-size: 13px;
    color: #555;
    background: #fff;
    border: 1px solid #ddd;
    outline: none !important;
    box-shadow: none !important;
}

.visa-wizard-container .btn-back:hover,
.visa-wizard-container .btn-back:focus,
.visa-wizard-container .btn-back:active {
    background: #f0f0f0;
    border-color: #ccc;
    color: #1e593c;
    outline: none !important;
    box-shadow: none !important;
}

.visa-actions .visa-btn-spacer {
    flex: 1;
}

/* Giá hiển thị giữa Back và Next */
.visa-actions .visa-actions-price {
    flex: 1;
    text-align: center;
    font-size: 22px;
    color: #bc9c22;
    font-weight: 800;
}

/* ========== Error ========== */
#global_error {
    background: #fff8e6;
    color: #856404;
    padding: 16px 20px;
    margin: 20px auto;
    max-width: 480px;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    display: none;
    text-align: center;
}

.input-error {
    border-color: #e8161b !important;
    border-bottom-color: #e8161b !important;
}

.visa-wizard-container .select2-container .select2-selection.input-error {
    border-bottom-color: #e8161b !important;
}

.visa-terms-label.input-error {
    border: 1px solid #e8161b !important;
    padding: 12px;
    border-radius: 8px;
    background: #fff8e6;
}

/* ========== Modal ========== */
.visa-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
}

.visa-modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 30px;
    width: 90%;
    max-width: 700px;
    border-radius: 15px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: visaSlideDown 0.3s ease;
}

@keyframes visaSlideDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.visa-close {
    position: absolute;
    right: 18px;
    top: 14px;
    color: #999;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.visa-close:hover {
    color: #1e593c;
}

.visa-modal-body {
    max-height: 70vh;
    overflow-y: auto;
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.65;
    color: #333;
}

/* .visa-link {
    color: #bc9c22;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
} */

/* ========== Checkout – ẩn Contact / Billing ========== */
#billing_postcode_field,
.billing_postcode_field {
    display: none !important;
}

.wp-block-woocommerce-checkout-contact-information-block,
[data-block-name="woocommerce/checkout-contact-information-block"],
.wp-block-woocommerce-checkout-billing-address-block,
[data-block-name="woocommerce/checkout-billing-address-block"],
.wc-block-components-checkout-contact-information-block,
.wc-block-components-checkout-billing-address-block {
    display: none !important;
}

/* ========== Checkout Form Styling trong Step 7 ========== */
/* Checkout form: mờ khi đang load, rõ khi load xong */
/* .visa-checkout-wrapper.visa-checkout-loading {
    opacity: 0.4;
    filter: blur(4px);
    pointer-events: none;
    transition: opacity 0.3s ease, filter 0.3s ease;
} */
.visa-checkout-wrapper.visa-checkout-loaded {
    opacity: 1;
    filter: none;
    pointer-events: auto;
}

.visa-checkout-wrapper {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.visa-checkout-form {
    text-align: left;
}

/* Ẩn các phần không cần thiết trong checkout */
.visa-checkout-form .woocommerce-billing-fields,
.visa-checkout-form #billing_country_field,
.visa-checkout-form #billing_address_1_field,
.visa-checkout-form #billing_address_2_field,
.visa-checkout-form #billing_city_field,
.visa-checkout-form #billing_postcode_field,
.visa-checkout-form #billing_state_field,
.visa-checkout-form .woocommerce-shipping-fields,
.visa-checkout-form #shipping_country_field,
.visa-checkout-form #order_comments_field {
    display: none !important;
}

/* Style cho payment methods */
.visa-checkout-form .woocommerce-checkout-payment {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

.visa-checkout-form .wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.visa-checkout-form .wc_payment_methods li {
    margin-bottom: 16px;
    padding: 0;
    border: none;
    background: transparent;
}

.visa-checkout-form .wc_payment_methods .payment_box {
    background: #F9F9F9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 16px 20px;
    margin-top: 12px;
    font-size: 14px;
}

.visa-checkout-form .wc_payment_methods label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #222;
    padding: 12px 18px;
    border: none;
    border-bottom: 2px solid #e0e0e0;
    border-radius: 0;
    background: #fff;
    transition: all 0.3s ease;
}

.visa-checkout-form .wc_payment_methods label:hover {
    border-bottom-color: #bc9c22;
}

.visa-checkout-form .wc_payment_methods input[type="radio"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.visa-checkout-form .wc_payment_methods input[type="radio"]:checked+label,
.visa-checkout-form .wc_payment_methods li.wc_payment_method>input[type="radio"]:checked~label {
    border-bottom-color: #bc9c22;
    color: #bc9c22;
}

/* Style cho place order button */
.visa-checkout-form .place-order {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid #e3e3e3;
}

.visa-checkout-form #place_order {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
    padding: 16px 48px;
    min-width: 160px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    background: #bc9c22;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: none !important;
    outline: none !important;
}

.visa-checkout-form #place_order:hover,
.visa-checkout-form #place_order:focus {
    background: #1e593c;
    color: #fff;
    outline: none;
    box-shadow: none;
}

/* Style cho order review (nếu có) */
.visa-checkout-form .woocommerce-checkout-review-order {
    background: #F9F9F9;
    padding: 28px 32px;
    border-radius: 10px;
    border: 1px solid #eee;
    margin-bottom: 24px;
}

.visa-checkout-form .woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
}

.visa-checkout-form .woocommerce-checkout-review-order-table th,
.visa-checkout-form .woocommerce-checkout-review-order-table td {
    padding: 12px 0;
    border-bottom: 1px dashed #e0e0e0;
    text-align: left;
}

.visa-checkout-form .woocommerce-checkout-review-order-table tfoot th {
    font-weight: 700;
    color: #222;
}

.visa-checkout-form .woocommerce-checkout-review-order-table .order-total th,
.visa-checkout-form .woocommerce-checkout-review-order-table .order-total td {
    border-top: 1px solid #ddd;
    padding-top: 14px;
    font-size: 18px;
    font-weight: 700;
    color: #bc9c22;
}

/* Style cho terms checkbox */
.visa-checkout-form .woocommerce-terms-and-conditions-wrapper {
    margin: 20px 0;
    text-align: center;
}

.visa-checkout-form .woocommerce-terms-and-conditions-wrapper label {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
    text-align: left;
    max-width: 420px;
    margin: 0 auto;
    border: none;
    padding: 0;
    background: transparent;
}

.visa-checkout-form .woocommerce-terms-and-conditions-wrapper label:hover {
    border: none;
}

.visa-checkout-form .woocommerce-terms-and-conditions-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.woocommerce-additional-fields,
#order_review_heading {
    display: none !important;
}

/* Responsive */
@media (max-width: 576px) {
    .visa-checkout-form #place_order {
        max-width: 100%;
        padding: 14px 32px;
        font-size: 14px;
    }

    .visa-checkout-form .woocommerce-checkout-review-order {
        padding: 20px 16px;
    }
}

/* ========== Order received / Thank you – match wizard style ========== */
body.woocommerce-order-received .woocommerce-order {
    max-width: 560px;
    margin: 0 auto;
    padding: 32px 24px 40px;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border-radius: 0 0 15px 15px;
    border: 1px solid #e8e8e8;
    text-align: center;
}

body.woocommerce-order-received .woocommerce-notice--success {
    font-size: 16px;
    color: #222;
    font-weight: 600;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: #f8fdf0;
    border: 1px solid #c8e6a0;
    border-radius: 8px;
}

body.woocommerce-order-received .woocommerce-order-overview {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    justify-content: center;
    border-bottom: 1px solid #e3e3e3;
    padding-bottom: 20px;
    flex-direction: column;
}

.woocommerce ul.order_details li {
    border-right: unset !important;
}

body.woocommerce-order-received .woocommerce-order-overview li {
    font-size: 14px;
    color: #555;
}

body.woocommerce-order-received .woocommerce-order-overview li strong {
    color: #222;
    font-weight: 700;
}

body.woocommerce-order-received .woocommerce-order-overview .woocommerce-Price-amount {
    color: #bc9c22;
}

body.woocommerce-order-received .woocommerce-order .entry-title {
    font-size: 22px;
    font-weight: 700;
    color: #28a745 !important;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

body.woocommerce-order-received .woocommerce-order-details__title,
body.woocommerce-order-received .woocommerce-column__title {
    font-size: 18px;
    font-weight: 700;
    color: #bc9c22;
    margin-bottom: 16px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

body.woocommerce-order-received .woocommerce-table--order-details {
    width: 100%;
    margin-bottom: 24px;
    border: none;
    border-bottom: 2px solid #e0e0e0;
}

body.woocommerce-order-received .woocommerce-table--order-details th,
body.woocommerce-order-received .woocommerce-table--order-details td {
    padding: 12px 16px;
    border: none;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    color: #333;
}

body.woocommerce-order-received .woocommerce-table--order-details thead th {
    font-weight: 700;
    color: #222;
    background: #f5f5f5;
}

body.woocommerce-order-received .woocommerce-table--order-details .product-name a {
    color: #bc9c22;
    font-weight: 600;
}

body.woocommerce-order-received .woocommerce-table--order-details .wc-item-meta {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    font-size: 13px;
    color: #555;
}

body.woocommerce-order-received .woocommerce-table--order-details .wc-item-meta li {
    margin-bottom: 4px;
}

body.woocommerce-order-received .woocommerce-table--order-details tfoot th {
    font-weight: 600;
    color: #555;
}

body.woocommerce-order-received .woocommerce-table--order-details tfoot .woocommerce-Price-amount {
    color: #bc9c22;
    font-weight: 700;
}

body.woocommerce-order-received .order-again .button {
    display: inline-block;
    padding: 16px 48px;
    min-width: 160px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    background: #bc9c22;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: 8px;
}

body.woocommerce-order-received .order-again .button:hover {
    background: #1e593c;
    color: #fff;
}

body.woocommerce-order-received .woocommerce-customer-details {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e3e3e3;
    text-align: left;
}

body.woocommerce-order-received .woocommerce-customer-details address {
    font-style: normal;
    font-size: 15px;
    color: #333;
    line-height: 1.6;
}

#add_payment_method #payment ul.payment_methods li img,
.woocommerce-cart #payment ul.payment_methods li img,
.woocommerce-checkout #payment ul.payment_methods li img {
    max-width: 250px;
}

.visa-checkout-wrapper .woocommerce-checkout-review-order-table {
    display: none !important;
}

/* ========== Responsive ========== */
@media (max-width: 576px) {
    .visa-upload-examples {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 100%;
        padding: 0 4px;
    }

    .visa-upload-example-trigger img {
        max-height: min(50vh, 280px);
    }

    .visa-upload-lightbox {
        padding: 12px;
    }

    .visa-upload-lightbox-inner img {
        max-height: calc(100vh - 24px);
    }

    .visa-step-inner {
        padding: 0 16px;
    }

    .visa-step-desc {
        font-size: 14px;
        margin-bottom: 22px;
    }

    .visa-wizard-container .phone-group {
        flex-direction: column;
        max-width: 100%;
    }

    .visa-wizard-container .phone-code-wrap {
        flex: 1 1 auto;
    }

    .visa-upload-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .visa-wizard-container .form-control {
        max-width: 100%;
    }

    .visa-step-inner .select2-container {
        max-width: 100% !important;
    }

    .visa-step-inner .review-box {
        max-width: 100%;
    }

    .visa_form {
        padding-left: 20px;
        padding-right: 20px;
    }

    .visa-sticky-header {
        padding-left: 20px;
        padding-right: 20px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .visa-actions {
        flex-wrap: wrap;
    }

    .visa-wizard-container .btn-1 {
        padding: 14px 32px;
        min-width: 100px;
        font-size: 14px;
    }

    body.woocommerce-order-received .woocommerce-order {
        padding: 24px 16px 32px;
    }

    body.woocommerce-order-received .woocommerce-order-overview {
        flex-direction: column;
        align-items: center;
        flex-direction: column;
    }

    .woocommerce ul.order_details li {
        margin-right: 0;
        padding-right: 0;
    }

    #add_payment_method #payment ul.payment_methods li img,
    .woocommerce-cart #payment ul.payment_methods li img,
    .woocommerce-checkout #payment ul.payment_methods li img {
        max-width: 180px;
    }
}