/* ============================================================
   CURRENCY SYSTEM — Selector & International Payment Styles
   ============================================================ */

/* ── Currency selector wrapper ───────────────────────────── */
.currency-selector-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Header variant — sits inside the navbar */
.currency-selector-header {
    margin-right: 0.5rem;
}

/* Inline variant — appears below section headings */
.currency-selector-inline {
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.currency-inline-label {
    font-size: 0.82rem;
    color: var(--text-light, #666);
    font-weight: 500;
    white-space: nowrap;
}

/* ── The select element container ────────────────────────── */
.currency-select-inner {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.currency-select {
    appearance: none;
    -webkit-appearance: none;
    background: #f1f8f1;
    border: 1.5px solid #c8e6c9;
    border-radius: 20px;
    padding: 0.3rem 1.8rem 0.3rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #2e7d32;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    min-width: 88px;
    font-family: inherit;
    line-height: 1.4;
}

.currency-select:hover {
    border-color: #4caf50;
    background: #e8f5e9;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.15);
}

.currency-select:focus {
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.18);
}

.currency-select-arrow {
    position: absolute;
    right: 0.55rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 0.7rem;
    color: #4caf50;
    line-height: 1;
}

/* ── International payment block ─────────────────────────── */
.intl-payment-block {
    background: linear-gradient(135deg, #fff8e1 0%, #fffde7 100%);
    border: 1.5px solid #ffe082;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 1.25rem 0;
    text-align: center;
}

.intl-payment-badge {
    display: inline-block;
    background: #ff8f00;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
    letter-spacing: 0.03em;
}

.intl-payment-price {
    margin: 0.5rem 0;
}

.intl-payment-note {
    font-size: 0.82rem;
    color: #795548;
    margin: 0.5rem 0 1rem;
    line-height: 1.5;
}

.intl-payment-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.intl-btn-proceed {
    background: linear-gradient(135deg, #ff8f00 0%, #f57c00 100%);
    color: #fff;
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 3px 12px rgba(255, 143, 0, 0.35);
}

.intl-btn-proceed:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 143, 0, 0.45);
}

/* ── Price display with currency tag ─────────────────────── */
.price-currency-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
    border-radius: 10px;
    padding: 0.1rem 0.4rem;
    vertical-align: middle;
    margin-left: 0.3rem;
}

.price-currency-tag.intl {
    background: #fff8e1;
    color: #f57c00;
    border-color: #ffe082;
}

/* "Price not set" indicator */
.price-not-set {
    font-size: 0.8rem;
    color: #aaa;
    font-style: italic;
}

/* ── Contact-for-price pill ──────────────────────────────── */
.price-contact-pill {
    display: inline-block;
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffcc80;
    border-radius: 20px;
    padding: 0.2rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 0.3rem;
    cursor: pointer;
    transition: background 0.15s;
}

.price-contact-pill:hover {
    background: #ffe0b2;
}

/* ── Mobile adjustments ──────────────────────────────────── */
@media (max-width: 767px) {
    .currency-selector-header {
        margin-right: 0.25rem;
    }

    .currency-select {
        font-size: 0.75rem;
        padding: 0.25rem 1.6rem 0.25rem 0.6rem;
        min-width: 78px;
    }

    .currency-inline-label {
        font-size: 0.75rem;
    }

    .intl-payment-block {
        padding: 1rem;
    }
}

/* ── Very small screens ──────────────────────────────────── */
@media (max-width: 380px) {
    .currency-select {
        font-size: 0.7rem;
        min-width: 68px;
        padding: 0.2rem 1.4rem 0.2rem 0.5rem;
    }
}

/* ── International checkout page ─────────────────────────── */
.intl-checkout-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #fff8e1 0%, #fff3e0 100%);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.intl-checkout-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    max-width: 640px;
    width: 100%;
    overflow: hidden;
}

.intl-checkout-header {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: #fff;
    padding: 1.75rem 2rem;
}

.intl-checkout-header h1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.intl-checkout-header p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.intl-checkout-body {
    padding: 2rem;
}

/* Order summary card */
.intl-order-summary {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.75rem;
    border: 1px solid #e8e8e8;
}

.intl-order-summary h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    margin: 0 0 0.75rem;
}

.intl-order-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    font-size: 0.95rem;
    color: #444;
    border-bottom: 1px solid #eee;
}

.intl-order-row:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.05rem;
    color: #2e7d32;
    padding-top: 0.65rem;
    margin-top: 0.25rem;
    border-top: 2px solid #e8e8e8;
}

/* Payment option cards */
.intl-payment-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.intl-option-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.intl-option-card:hover {
    border-color: #4caf50;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.15);
}

.intl-option-card.active {
    border-color: #4caf50;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.2);
}

.intl-option-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    background: #fafafa;
    border-bottom: 1px solid transparent;
    transition: background 0.2s;
}

.intl-option-card.active .intl-option-header {
    background: #e8f5e9;
    border-bottom-color: #c8e6c9;
}

.intl-option-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

.intl-option-title {
    font-weight: 700;
    font-size: 1rem;
    color: #222;
    margin-bottom: 0.15rem;
}

.intl-option-desc {
    font-size: 0.8rem;
    color: #888;
    line-height: 1.4;
}

.intl-option-radio {
    margin-left: auto;
    flex-shrink: 0;
}

.intl-option-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #4caf50;
}

.intl-option-body {
    padding: 1.25rem 1.5rem;
    display: none;
    border-top: 1px solid #f0f0f0;
    background: #fff;
}

.intl-option-card.active .intl-option-body {
    display: block;
}

/* Bank details inside option body */
.intl-bank-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.9rem;
    gap: 0.5rem;
}

.intl-bank-detail-row:last-child {
    border-bottom: none;
}

.intl-bank-detail-label {
    color: #888;
    font-size: 0.8rem;
    flex-shrink: 0;
    min-width: 110px;
}

.intl-bank-detail-value {
    font-weight: 600;
    color: #222;
    text-align: right;
    word-break: break-all;
}

.intl-copy-btn {
    background: #f0f0f0;
    border: none;
    border-radius: 6px;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    cursor: pointer;
    color: #555;
    flex-shrink: 0;
    transition: background 0.15s;
}

.intl-copy-btn:hover {
    background: #e0e0e0;
}

.intl-copy-btn.copied {
    background: #c8e6c9;
    color: #2e7d32;
}

/* Payment link input */
.intl-pay-link {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin: 0.5rem 0;
    flex-wrap: wrap;
}

.intl-pay-link a {
    flex: 1;
    min-width: 0;
    word-break: break-all;
    font-size: 0.9rem;
    color: #1a73e8;
    font-weight: 600;
    text-decoration: none;
    background: #e8f0fe;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    display: block;
}

.intl-pay-link a:hover {
    text-decoration: underline;
}

.intl-pay-link-btn {
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.55rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}

.intl-pay-link-btn:hover {
    background: #1557b0;
}

/* Receipt upload */
.intl-receipt-upload {
    margin-top: 0.75rem;
}

.intl-receipt-upload label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 0.4rem;
    color: #444;
}

.intl-receipt-drop {
    border: 2px dashed #bdbdbd;
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
}

.intl-receipt-drop:hover,
.intl-receipt-drop.dragover {
    border-color: #4caf50;
    background: #f1f8f1;
}

.intl-receipt-drop input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.intl-receipt-drop-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.4rem;
}

.intl-receipt-drop-text {
    font-size: 0.85rem;
    color: #888;
}

.intl-receipt-preview {
    margin-top: 0.75rem;
    display: none;
    align-items: center;
    gap: 0.75rem;
}

.intl-receipt-preview.show {
    display: flex;
}

.intl-receipt-preview img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.intl-receipt-preview span {
    font-size: 0.85rem;
    color: #555;
    flex: 1;
    word-break: break-all;
}

/* Query form */
.intl-query-form .form-group {
    margin-bottom: 0.85rem;
}

.intl-query-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 0.35rem;
}

.intl-query-form input,
.intl-query-form textarea,
.intl-query-form select {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    color: #333;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.intl-query-form input:focus,
.intl-query-form textarea:focus,
.intl-query-form select:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.12);
}

.intl-query-form textarea {
    resize: vertical;
    min-height: 90px;
}

/* Submit button */
.intl-submit-btn {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.35);
    margin-top: 0.5rem;
}

.intl-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(76, 175, 80, 0.45);
}

.intl-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Success state */
.intl-success {
    text-align: center;
    padding: 2.5rem 2rem;
}

.intl-success-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.intl-success h2 {
    font-size: 1.4rem;
    color: #2e7d32;
    margin-bottom: 0.5rem;
}

.intl-success p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.intl-back-link {
    display: inline-block;
    color: #4caf50;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 2px solid #4caf50;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}

.intl-back-link:hover {
    background: #4caf50;
    color: #fff;
}

/* Mobile */
@media (max-width: 640px) {
    .intl-checkout-body {
        padding: 1.25rem;
    }

    .intl-checkout-header {
        padding: 1.25rem;
    }

    .intl-checkout-header h1 {
        font-size: 1.15rem;
    }

    .intl-option-header {
        padding: 0.85rem 1rem;
    }

    .intl-option-body {
        padding: 1rem;
    }

    .intl-bank-detail-label {
        min-width: 90px;
    }
}
