/* OVZA Bank Checkout CSS - Matching Notary v3 Style */

/* === CONTAINER === */
.container-checkout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* === LEFT COLUMN === */
.left-side {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* === CHECKOUT SECTIONS === */
.checkout-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
}

.checkout-section h2.checkout-title {
    color: #148a64;
    margin: 0 0 20px;
    font-size: 24px;
    font-weight: 600;
}

.checkout-section h3.section-title {
    margin: 0 0 8px;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.checkout-section .section-desc {
    color: #666;
    font-size: 14px;
    margin: 0 0 20px;
}

/* === FORM ELEMENTS === */
.countrydata {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.custom-dropdown,
.companydata,
.emaildata {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.container-checkout label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.container-checkout label span {
    color: #d63031;
}

.container-checkout input[type="text"],
.container-checkout input[type="email"],
.container-checkout select,
.container-checkout .select2-selection--single {
    padding: 10px 12px;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.container-checkout input[type="text"]:focus,
.container-checkout input[type="email"]:focus,
.container-checkout select:focus {
    outline: none;
    border-color: #148a64 !important;
    box-shadow: 0 0 0 3px rgba(20, 138, 100, 0.1);
}

/* === PRICING CARDS (Package Selection) === */
.pricing-table {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pricing-card {
    display: block;
    cursor: pointer;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.2s;
    background: #fff;
    padding: 20px;
}

.pricing-card:hover {
    border-color: #148a64;
}

.pricing-card.selected {
    border-color: #148a64;
    background: #f8fff9;
}

.pricing-card input[type="radio"] {
    display: none;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    padding: 0;
    height: auto;
}

.packagedata {
    display: flex;
    align-items: center;
    gap: 15px;
}

.package-title,
.pricing-card h2 {
    margin: 0;
    font-size: 17px !important;
    color: #333;
    font-weight: 600;
    line-height: 1.3;
}

.p-price {
    font-size: 20px;
    font-weight: 700;
    color: #148a64;
    background: none;
    padding: 0;
    border-radius: 0;
}

.p-price:empty {
    display: none;
}

.container-checkout .pricing-card p.pdata {
    color: #666;
    font-size: 14px;
    margin: 0 0 12px;
    line-height: 1.4;
}

.pricing-card hr,
.separator2 {
    display: none;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border: none;
}

.features-list:before {
    display: none;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
    padding: 0;
}

.features-list li i {
    color: #148a64;
}

.features-list li span.fa-li {
    position: static;
    width: auto;
}

/* === RIGHT COLUMN - ORDER SUMMARY === */
.total-summary {
    position: sticky;
    top: 20px;
    height: fit-content;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
}

.total-summary h2.checkout-title {
    margin: 0 0 5px;
    font-size: 22px;
    color: #333;
    font-weight: 600;
}

.total-summary > p {
    color: #666;
    font-size: 14px;
    margin: 0 0 20px;
    padding: 0;
    border: none;
}

/* === SUMMARY BOX (lastcheck) === */
.lastcheck {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 20px;
}

.lastcheck p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    margin: 0;
    font-size: 14px;
    border-bottom: none;
}

.lastcheck p strong {
    color: #666;
    font-weight: 400;
}

.lastcheck p span {
    font-weight: 600;
    color: #333;
}

.lastcheck p.summary-row {
    display: flex;
    justify-content: space-between;
}

.lastcheck p.subtotal-row {
    padding-top: 12px;
    margin-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.lastcheck p.discount-row .discount-amount {
    color: #148a64 !important;
    font-weight: 600;
}

.lastcheck p.total-row {
    padding-top: 12px;
    margin-top: 10px;
    border-top: 1px solid #e0e0e0;
    font-size: 18px;
}

.lastcheck p.total-row .price {
    color: #148a64 !important;
    font-size: 22px;
    font-weight: 700;
}

#ovza-bank-display-company-name,
#ovza-bank-display-type {
    font-weight: 600;
    color: #333;
}

#ovza-bank-total-price {
    color: #148a64;
    font-weight: 700;
}

/* === COUPON SECTION === */
.coupon-section {
    margin-bottom: 20px;
    padding: 0;
    background: transparent;
    border: none;
}

.coupon-input-group {
    display: flex;
    gap: 8px;
}

.coupon-input-group input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.coupon-input-group input:focus {
    outline: none;
    border-color: #148a64;
}

.coupon-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.coupon-btn.apply-btn {
    background: #148a64;
    color: #fff;
}

.coupon-btn.apply-btn:hover {
    background: #0f6d4d;
}

.coupon-btn.remove-btn {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.coupon-btn.remove-btn:hover {
    background: #e9e9e9;
}

.coupon-message {
    margin-top: 8px;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 6px;
    display: none;
}

.coupon-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
}

.coupon-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
}

.coupon-message.loading {
    display: block;
    background: #fff3cd;
    color: #856404;
}

/* === PAYMENT SECTION === */
.payment-section {
    margin-bottom: 20px;
}

.payment-section h3 {
    margin: 0 0 12px;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-option {
    display: block;
    cursor: pointer;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.2s;
    background: #fff;
    margin-bottom: 10px;
}

.payment-option:last-child {
    margin-bottom: 0;
}

.payment-option:hover {
    border-color: #148a64;
}

.payment-option.selected {
    border-color: #148a64;
    background: #f8fff9;
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-option .option-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-option .option-label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.payment-option .payment-icon {
    height: 24px !important;
    width: auto !important;
}

/* === PAY BUTTONS === */
.pay-buttons {
    margin-bottom: 15px;
}

.pay-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    margin-bottom: 10px;
}

.pay-btn:last-child {
    margin-bottom: 0;
}

.pay-btn.card-btn {
    background: #148a64;
    color: #fff;
}

.pay-btn.card-btn:hover:not(:disabled) {
    background: #0f6d4d;
}

.pay-btn.crypto-btn {
    background: #148a64;
    color: #fff;
}

.pay-btn.crypto-btn:hover:not(:disabled) {
    background: #0f6d4d;
}

.pay-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pay-btn .btn-text {
    font-size: 16px;
}

.pay-btn .btn-price {
    font-size: 18px;
    font-weight: 700;
}

/* === PAYMENT ERROR === */
.payment-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 15px;
}

/* === TRUST SECTION === */
.trust-section {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.trust-section .trust-label {
    font-size: 12px;
    color: #888;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trust-section .trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.trust-section .trust-logos img {
    height: 40px !important;
    width: auto !important;
    opacity: 0.8;
}

.trust-section .trust-logos a {
    display: flex;
    gap: 10px;
}

/* === CRYPTO SECTION === */
.crypto-payment-section {
    margin-bottom: 15px;
}

.crypto-loading {
    text-align: center;
    padding: 15px;
}

.crypto-loading p {
    margin: 0;
    color: #666;
}

.crypto-error {
    color: #d63031;
    margin-top: 10px;
    font-size: 14px;
}

/* === CREDIT CARD SECTION === */
.credit-card-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

#wc-checkout-form-container {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    opacity: 0;
}

/* === SPINNER === */
#loading-spinner {
    text-align: center;
    padding: 20px;
    font-size: 18px;
    color: #148a64;
}

/* === SELECT2 OVERRIDES === */
.select2-container .select2-selection--single {
    height: auto !important;
    min-height: 42px;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    background: #fff;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #148a64 !important;
    box-shadow: 0 0 0 3px rgba(20, 138, 100, 0.1);
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding: 9px 35px 9px 12px;
    line-height: 22px;
    color: #333;
}

/* Hide Select2 default arrow completely to prevent double arrow */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    display: none !important;
}

/* Custom dropdown arrow */
.select2-container--default .select2-selection--single::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #666;
    pointer-events: none;
}

.select2-container--open .select2-dropdown {
    border-color: #148a64;
}

.select2-option-flag {
    width: 24px;
    height: auto;
    vertical-align: middle;
    margin-right: 8px;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .container-checkout {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
    }
    
    .total-summary {
        position: static;
    }
}

@media (max-width: 600px) {
    .countrydata {
        grid-template-columns: 1fr;
    }
    
    .checkout-section {
        padding: 20px;
    }
    
    .total-summary {
        padding: 20px;
    }
    
    .packagedata {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .trusted-logos {
        flex-wrap: wrap;
    }
    
    .trusted-logos img {
        max-width: 80px !important;
    }
}
