﻿/* Compact metadata wrapper */
.wc-block-components-product-metadata {
    margin-top: 6px;
}

/* Description text compact */
.wc-block-components-product-metadata__description p {
    margin: 0 0 4px 0;
}

/* Compact list layout */
.wc-block-components-product-details {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px; /* small vertical spacing */
}

/* Each metadata line */
.wc-block-components-product-details li {
    display: flex;
    gap: 6px;
    padding: 0;
    margin: 0;
    border: none;
}

/* Label (e.g. "Service:") */
.wc-block-components-product-details__name {
    color: #8fd3e8;
    font-size: 0.82rem;
    font-weight: 500;
    margin: 0;
    padding: 0;
}

/* Value (e.g. "Arrival") */
.wc-block-components-product-details__value {
    color: #e9e9e9;
    font-size: 0.82rem;
    font-weight: 400;
    margin: 0;
    padding: 0;
    line-height: 1.3;
    flex: 1;
}



/*-------------------------*/

.wc-block-components-order-summary-item__individual-prices,
.wc-block-components-order-summary-item__individual-price,
.wc-block-components-order-summary-item__individual-prices .wc-block-components-product-price,
.wc-block-components-order-summary-item__individual-price .wc-block-components-product-price {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

.wc-block-components-order-summary-item__image {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Terms and Conditions Checkbox */
.eliteair-terms-checkbox {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    padding: 1rem !important;
    background: rgba(103, 217, 252, 0.05) !important;
    border: 1px solid rgba(103, 217, 252, 0.2) !important;
    border-radius: 6px !important;
}

.eliteair-terms-checkbox label {
    display: flex !important;
    align-items: flex-start !important;
    cursor: pointer !important;
    margin: 0 !important;
    width: 100% !important;
}

.eliteair-terms-checkbox input[type="checkbox"],
.eliteair-terms-checkbox .eliteair-terms-input {
    margin-right: 0.75rem !important;
    margin-top: 0.25rem !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    cursor: pointer !important;
    accent-color: #67d9fc !important;
    flex-shrink: 0 !important;
    appearance: checkbox !important;
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
}

.eliteair-terms-text {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    flex: 1 !important;
}

.eliteair-terms-text a {
    color: #67d9fc;
    text-decoration: underline;
}

.eliteair-terms-text a:hover {
    color: #0ea5b6 !important;
    text-decoration: underline !important;
}

.eliteair-terms-text .required {
    color: #d94343 !important;
    margin-left: 0.25rem !important;
}

/* Error state when user tries to submit without checking */
.eliteair-terms-label.eliteair-terms-error,
.eliteair-terms-text.eliteair-terms-error {
    color: #ff6b6b !important;
    animation: eliteair-shake 0.5s ease-in-out !important;
}

.eliteair-terms-checkbox.eliteair-terms-error {
    border-color: #ff6b6b !important;
    background: rgba(255, 107, 107, 0.1) !important;
}

.eliteair-terms-text.eliteair-terms-error a {
    color: #ff6b6b !important;
    text-decoration: underline !important;
}

@keyframes eliteair-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Disabled Place Order Button - allow clicks to show error */
.woocommerce-checkout button[name="woocommerce_checkout_place_order"]:disabled,
.woocommerce-checkout #place_order:disabled,
.wc-block-checkout button[type="submit"]:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    /* Keep pointer-events to allow error message on click */
    pointer-events: auto !important;
}

/* Block Editor Checkout (Gutenberg) */
.wc-block-checkout .eliteair-terms-checkbox,
.wc-block-components-checkout .eliteair-terms-checkbox {
    margin: 1.5rem 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.wc-block-checkout__actions .eliteair-terms-checkbox,
.wc-block-components-checkout-actions .eliteair-terms-checkbox {
    margin-bottom: 1.5rem !important;
    margin-top: 0 !important;
}

/* Ensure checkbox is visible in all checkout contexts */
.woocommerce-checkout .eliteair-terms-checkbox,
.woocommerce form.checkout .eliteair-terms-checkbox {
    display: block !important;
    visibility: visible !important;
}

/* ===== Force labels like “Service:” color globally ===== */
.wc-block-components-product-details__name {
    color: #8fd3e8;
}


/* Place order (Blocks checkout) */
.wc-block-components-checkout-place-order-button.wc-block-components-button {
    background: #0ea5b6;
    color: #0b0b0b;
    border: 1px solid #67d9fc;
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 700;
    width: 100%;
    text-align: center;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

/* Hover */
.wc-block-components-checkout-place-order-button.wc-block-components-button:hover {
    background: #67d9fc;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(103, 217, 252, 0.25);
}

/* Disabled state */
.wc-block-components-checkout-place-order-button[disabled],
.wc-block-components-checkout-place-order-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/*
@media (max-width: 768px) {
    .wc-block-checkout .wp-block-woocommerce-checkout-order-summary-block:first-of-type {
        display: none;
    }
}
*/
@media (max-width: 768px) {
    /* Remove border around summary header */
    .wp-block-woocommerce-checkout-order-summary-block {
        border: none !important;
        margin: 12px;
    }
}


/** hide info icon */
.woocommerce-info .info-icon {
    display: none !important;
    content: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important
}

.woocommerce-error::before, .woocommerce-info::before, .woocommerce-message::before {
    display: none !important;
    content: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important
}
/* ============= THANK YOU NOTICE ============= */

.woocommerce-notice.woocommerce-notice--success.woocommerce-thankyou-order-received {
    margin: 0 0 16px;
    padding: 0;
    border: none;
    background: transparent;
    color: #e9e9e9;
    font-size: 1rem;
    font-weight: 500;
}

/* ============= ORDER OVERVIEW (number, date, email, total, method) ============= */

.woocommerce-order-overview {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

/* Remove separators and pseudo elements added by themes */
.woocommerce-order-overview li::before,
.woocommerce-order-overview li::after {
    content: none !important;
    border: none !important;
}

/* Item styling */
.woocommerce-order-overview li {
    margin: 4px 0;
    padding: 0;
    border: none;
    color: #e6e6e6;
    font-size: 0.95rem;
    line-height: 1.45;
}

/* Labels */
.woocommerce-order-overview li {
    font-weight: 500;
    color: #bfc0c1;
}

/* Make total slightly more prominent */
.woocommerce-order-overview__total strong {
    font-size: 1rem;
}


/* ============= "BOOK A TRANSFER SERVICE" BUTTON WRAPPER ============= */

.eliteair-thankyou-top {
    margin: 20px 0;
    text-align: center;
}

/* Optional: move inline styles on the button into CSS */
.eliteair-thankyou-top .button {
    background: #0ea5b6;
    color: #0b0b0b;
    border: 1px solid #67d9fc;
    border-radius: 12px;
    padding: 10px 18px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.eliteair-thankyou-top .button:hover {
    background: #67d9fc;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(103, 217, 252, 0.25);
}

/* =====================================================================
   ORDER RECEIVED / THANK-YOU – CLEAN + COMPACT
   ===================================================================== */

/* Success message */
.wc-block-order-confirmation-status,
.woocommerce-thankyou-order-received,
.woocommerce-order .woocommerce-message {
    background: #1e1e1e;
    border-left: 3px solid #67d9fc;
    color: #dcdcdc;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* --- Order overview (Order number, Date, Email, etc.) --- */
.woocommerce-order-overview,
.wc-block-order-confirmation-summary {
    display: grid;
    gap: 4px;
    list-style: none;
    margin: 10px 0 20px;
    padding: 0;
}
.woocommerce-order-overview li,
.wc-block-order-confirmation-summary > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.95rem;
    color: #cfcfcf;
    padding: 2px 0;
    border: none;
    background: none;
}
.woocommerce-order-overview li strong,
.wc-block-order-confirmation-summary .wc-block-order-confirmation-summary-list-item__value {
    color: #fff;
    font-weight: 600;
    text-align: right;
}
.wc-block-order-confirmation-summary .wc-block-order-confirmation-summary-list-item__label {
    color: #9c9c9c;
}

/* --- Order details table --- */
.woocommerce-order-details table.shop_table,
.woocommerce-table--order-details {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    border: 0;
    color: #e9e9e9;
    font-size: 0.95rem;
}
.woocommerce-order-details table.shop_table thead th {
    background: #2a2a2a;
    border-bottom: 1px solid #3a3a3a;
    color: #e9e9e9;
    padding: 8px 10px;
    font-weight: 600;
}
.woocommerce-order-details table.shop_table tbody td {
    padding: 6px 10px;
    vertical-align: top;
}
.woocommerce-order-details table.shop_table tbody tr + tr td {
    border-top: 1px dashed #3a3a3a;
}
.woocommerce-order-details table.shop_table tfoot tr + tr th,
.woocommerce-order-details table.shop_table tfoot tr + tr td {
    border-top: 1px dashed #3a3a3a;
}
.woocommerce-order-details table.shop_table tfoot .order-total th,
.woocommerce-order-details table.shop_table tfoot .order-total td {
    border-top: 1px solid #3a3a3a;
    font-weight: 700;
    color: #fff;
    font-size: 1rem;
}

/* --- Product meta fields (Service Type, Flight, etc.) --- */
.woocommerce-order-details .wc-item-meta,
.woocommerce-table--order-details .wc-item-meta {
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 4px;
}
.woocommerce-order-details .wc-item-meta li,
.woocommerce-table--order-details .wc-item-meta li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}
.woocommerce-order-details .wc-item-meta .wc-item-meta-label,
.woocommerce-table--order-details .wc-item-meta .wc-item-meta-label,
.woocommerce-order-details .variation dt,
.woocommerce-table--order-details .variation dt {
    color: #a0a0a0;
    font-weight: 500;
}
.woocommerce-order-details .wc-item-meta li p,
.woocommerce-table--order-details .wc-item-meta li p,
.woocommerce-order-details .variation dd,
.woocommerce-table--order-details .variation dd {
    margin: 0;
    color: #e9e9e9;
    font-weight: 500;
    white-space: pre-wrap;
}
.woocommerce-order-details .wc-item-meta li + li {
    border-top: 1px dotted #3a3a3a;
    padding-top: 3px;
}

/* --- Addresses & customer details --- */
.woocommerce-customer-details address,
.woocommerce-order__addresses address {
    background: none;
    border: none;
    color: #dcdcdc;
    padding: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* --- Downloadable items --- */
.woocommerce-order .woocommerce-order-downloads table {
    width: 100%;
    border: 0;
    color: #e9e9e9;
    font-size: 0.95rem;
}
.woocommerce-order .woocommerce-order-downloads th,
.woocommerce-order .woocommerce-order-downloads td {
    padding: 6px 10px;
    border: 0;
}
.woocommerce-order .woocommerce-order-downloads tbody tr + tr td {
    border-top: 1px dashed #3a3a3a;
}

/* === Product name color (thank-you / order details) === */
.woocommerce-order-details .product-name a,
.woocommerce-table--order-details .product-name a {
    color: #a0a0a0;
    text-decoration: none;
}

.woocommerce-order-details .product-name a:hover,
.woocommerce-table--order-details .product-name a:hover {
    color: #67d9fc;
}

/* --- Responsive adjustments --- */
@media (max-width: 640px) {
    .woocommerce-order-overview li,
    .wc-block-order-confirmation-summary > div,
    .woocommerce-order-details .wc-item-meta li {
        flex-direction: column;
        align-items: flex-start;
    }
    .woocommerce-order-overview li strong,
    .wc-block-order-confirmation-summary .wc-block-order-confirmation-summary-list-item__value {
        text-align: left;
    }
}
.wp-block-woocommerce-checkout-order-summary-block.checkout-order-summary-block-fill-wrapper {
    display: none !important;
}

/* =========================================================
   ORDER PAY (Classic WooCommerce template) styling
   Matches: /checkout/order-pay/{id}/?pay_for_order=true...
   ========================================================= */

.woocommerce #order_review {
    max-width: 980px;
    margin: 0 auto;
}

/* Table */
.woocommerce #order_review table.shop_table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    overflow: hidden;
}

.woocommerce #order_review table.shop_table thead th {
    background: #2a2a2a;
    color: #e9e9e9;
    padding: 10px 12px;
    font-weight: 700;
    border-bottom: 1px solid #3a3a3a;
}

.woocommerce #order_review table.shop_table td {
    padding: 10px 12px;
    vertical-align: top;
    border-top: 1px solid rgba(58,58,58,0.6);
    color: #e9e9e9;
}

.woocommerce #order_review table.shop_table tfoot th,
.woocommerce #order_review table.shop_table tfoot td {
    padding: 10px 12px;
    border-top: 1px solid #3a3a3a;
    font-weight: 700;
}

/* Product meta (the <ul class="wc-item-meta">...) */
.woocommerce #order_review .wc-item-meta {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 4px;
}

.woocommerce #order_review .wc-item-meta li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px dotted #3a3a3a;
    padding-top: 4px;
}

.woocommerce #order_review .wc-item-meta-label {
    color: #a0a0a0;
    font-weight: 600;
}

.woocommerce #order_review .wc-item-meta p {
    margin: 0;
    color: #e9e9e9;
    font-weight: 500;
}

/* Payment box */
.woocommerce #payment {
    margin-top: 16px;
    background: #1e1e1e;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    padding: 14px;
}

.woocommerce #payment ul.payment_methods {
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce #payment .wc_payment_method {
    padding: 10px 8px;
    border-top: 1px solid rgba(58,58,58,0.6);
}

.woocommerce #payment .wc_payment_method:first-child {
    border-top: none;
}

.woocommerce #payment .payment_box {
    margin-top: 10px;
    background: rgba(103, 217, 252, 0.06);
    border: 1px solid rgba(103, 217, 252, 0.25);
    border-radius: 10px;
    padding: 10px 12px;
}

/* Pay button */
.woocommerce #place_order.button,
.woocommerce button#place_order.button {
    background: #0ea5b6;
    color: #0b0b0b;
    border: 1px solid #67d9fc;
    border-radius: 12px;
    padding: 10px 18px;
    font-weight: 800;
    width: 100%;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.woocommerce #place_order.button:hover {
    background: #67d9fc;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(103, 217, 252, 0.25);
}

/* Override WooCommerce default white payment box */
#add_payment_method #payment div.payment_box,
.woocommerce-cart #payment div.payment_box,
.woocommerce-checkout #payment div.payment_box,
.woocommerce #payment div.payment_box {
    background-color: rgba(103, 217, 252, 0.06) !important;
    color: #e9e9e9 !important;
    border: 1px solid rgba(103, 217, 252, 0.25);
    border-radius: 10px;
}

/* === YooKassa visual blend === */
#yookassa-widget-ui {
    position: relative;
    background: #ffffff; /* keep widget white */
    border-radius: 14px;
    padding: 16px;
    z-index: 1;
}

/* Gradient halo around the widget */
#yookassa-widget-ui::before {
    content: '';
    position: absolute;
    inset: -16px;
    z-index: -1;
    border-radius: 18px;
}
