/* =============================================
   WC BACS Custom - Checkout Fatura Tipi Seçimi
   ============================================= */

.wcbc-invoice-type-wrapper {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.wcbc-invoice-type-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 12px;
}

.wcbc-invoice-type-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.wcbc-invoice-type-option {
    cursor: pointer;
    margin: 0 !important;
    padding: 0 !important;
}

.wcbc-invoice-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.wcbc-invoice-type-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.wcbc-invoice-type-option:hover .wcbc-invoice-type-card {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.wcbc-invoice-type-active .wcbc-invoice-type-card {
    border-color: #0f172a !important;
    background: #f8fafc;
}

.wcbc-invoice-type-card svg {
    flex-shrink: 0;
    color: #94a3b8;
    transition: color 0.15s;
}

.wcbc-invoice-type-active .wcbc-invoice-type-card svg {
    color: #0f172a;
}

.wcbc-invoice-type-card strong {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

/* Kurumsal alanlar - gizli başlar */
.wcbc-corporate-field {
    display: none !important;
}

.wcbc-corporate-field.wcbc-show {
    display: block !important;
}

/* Kurumsal alanlar geçiş animasyonu */
.wcbc-corporate-field.wcbc-show {
    animation: wcbcSlideDown 0.25s ease;
}

@keyframes wcbcSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* E-posta otomatik tamamlama */
.wcbc-email-suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 100;
    background: #fff;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    margin-top: 4px;
    overflow: hidden;
}

.wcbc-email-suggest-item {
    padding: 10px 14px;
    font-size: 13px;
    color: #3f3f46;
    cursor: pointer;
    transition: background 0.1s;
    border-bottom: 1px solid #f4f4f5;
}

.wcbc-email-suggest-item:last-child {
    border-bottom: none;
}

.wcbc-email-suggest-item:hover,
.wcbc-email-suggest-item.active {
    background: #f4f4f5;
}

.wcbc-email-local {
    color: #a1a1aa;
}

.wcbc-email-suggest-item strong {
    color: #09090b;
    font-weight: 600;
}

/* Responsive - mobilde de yan yana kalır */
@media (max-width: 480px) {
    .wcbc-invoice-type-card {
        padding: 10px 12px;
        gap: 6px;
    }

    .wcbc-invoice-type-card svg {
        width: 16px;
        height: 16px;
    }

    .wcbc-invoice-type-card strong {
        font-size: 12px;
    }
}

/* =============================================
   Ödeme Yöntemi Kart Tasarımı
   ============================================= */
.woocommerce-checkout-payment,
.wc_payment_methods {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wc_payment_method {
    list-style: none !important;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.wc_payment_method:has(input[type="radio"]:checked) {
    border-color: #0f172a;
    box-shadow: 0 0 0 1px #0f172a;
}

.wc_payment_method > label {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 14px 16px !important;
    margin: 0 !important;
    cursor: pointer;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #1e293b !important;
    line-height: 1.4;
}

.wc_payment_method > label::before {
    content: '';
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
    box-sizing: border-box;
}

.wc_payment_method:has(input[type="radio"]:checked) > label::before {
    border-color: #0f172a;
    background: #0f172a;
    box-shadow: inset 0 0 0 3px #fff;
}

.wc_payment_method input[type="radio"] {
    display: none !important;
}

.payment_box {
    padding: 14px 16px 14px 46px !important;
    margin: 0 !important;
    background: #f8fafc !important;
    border-top: 1px solid #e5e7eb;
    font-size: 13px !important;
    color: #64748b !important;
    line-height: 1.6 !important;
}

.payment_box p {
    margin: 0 !important;
    font-size: 13px;
    color: #64748b;
}

.payment_box::before {
    display: none !important;
}

@media (max-width: 480px) {
    .wc_payment_method > label {
        padding: 12px 14px !important;
        font-size: 13px !important;
        gap: 10px;
    }
    .payment_box {
        padding: 12px 14px 12px 42px !important;
        font-size: 12px !important;
    }
}
