/* =====================================================
   Genpar Checkout Fields v2.0.0 — checkout.css
   ===================================================== */

/* ---------- Müşteri Tipi Seçici (Classic + Block fallback) ---------- */
.gcf-customer-type-wrapper {
    margin: 0 0 24px;
}
.gcf-section-title {
    font-size: 1.05em;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}
.gcf-type-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.gcf-type-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    background: #fff;
    transition: border-color .15s, background .15s, color .15s;
    font-size: 15px;
    font-weight: 500;
    color: #555;
    flex: 1;
    min-width: 140px;
    user-select: none;
}
.gcf-type-btn:hover          { border-color: #0073aa; background: #f0f7fc; color: #0073aa; }
.gcf-type-btn.gcf-active     { border-color: #0073aa; background: #e8f4fb; color: #0073aa; font-weight: 600; }
.gcf-type-btn input[type="radio"] { display: none; }
.gcf-type-icon { font-size: 18px; }

/* ---------- Block Checkout DOM-inject wrapper ---------- */
.gcf-block-wrapper {
    margin: 16px 0 20px;
}
.gcf-block-wrapper .gcf-section-title {
    font-size: 1em;
}

/* ---------- Block Checkout enjekte edilen alanlar ---------- */
.gcf-injected-fields {
    margin-top: 16px;
}
.gcf-field-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 0;
}
.gcf-field {
    flex: 1 1 calc(50% - 6px);
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}
.gcf-field.gcf-field-full {
    flex: 1 1 100%;
}
.gcf-field label {
    font-size: 13px;
    font-weight: 500;
    color: #3d3d3d;
}
.gcf-field label .gcf-required {
    color: #cc1818;
    margin-left: 2px;
}
.gcf-field input,
.gcf-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background: #fff;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
}
.gcf-field input:focus,
.gcf-field textarea:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,.15);
    outline: none;
}
.gcf-field textarea {
    min-height: 80px;
    resize: vertical;
}

/* ---------- Hata durumu ---------- */
.gcf-field input.gcf-error,
.gcf-field textarea.gcf-error {
    border-color: #cc1818;
}
.gcf-field-error-msg {
    font-size: 12px;
    color: #cc1818;
    margin-top: 2px;
}

/* ---------- Classic checkout alanları gizleme ---------- */
.gcf-bireysel-field,
.gcf-kurumsal-field {
    transition: opacity .2s;
}

/* ---------- Sipariş detay tablosu ---------- */
.gcf-order-table { width: 100%; margin-top: 16px; border-collapse: collapse; }
.gcf-order-table th,
.gcf-order-table td { padding: 8px 12px; border: 1px solid #eee; text-align: left; }
.gcf-order-table th { background: #f8f8f8; font-weight: 600; width: 35%; }

/* ---------- Mobil ---------- */
@media (max-width: 600px) {
    .gcf-type-buttons { flex-direction: column; }
    .gcf-type-btn     { min-width: unset; }
    .gcf-field        { flex: 1 1 100%; }
}
