/* ==========================================================
   PsikoKutu Checkout Yeniden Tasarim
   ========================================================== */

.woocommerce-checkout {
    max-width: 1100px;
    margin: 0 auto !important;
    float: none !important;
}

.woocommerce-checkout input.input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea {
    border: 1px solid rgba(43,36,64,0.18) !important;
    border-radius: 8px !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
    background: #fff !important;
    color: #2B2440 !important;
}
.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout select:focus {
    border-color: #93436B !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(147,67,107,0.15) !important;
}

.woocommerce-checkout ul.payment_methods li.wc_payment_method {
    border: 1px solid rgba(43,36,64,0.15);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 8px;
}
.woocommerce-checkout ul.payment_methods li.wc_payment_method:has(input:checked) {
    border: 1.5px solid #93436B;
    background: rgba(147,67,107,0.06);
}

.woocommerce-checkout #order_review_heading {
    background: rgba(43,36,64,0.035);
    border-radius: 10px 10px 0 0;
    padding: 16px 16px 0 16px;
    margin: 0 !important;
}
.woocommerce-checkout #order_review {
    background: rgba(43,36,64,0.035);
    border-radius: 0 0 10px 10px;
    padding: 0 16px 16px 16px;
    margin-top: 0 !important;
}
.woocommerce-checkout table.shop_table tr.order-total .amount {
    color: #2B2440;
    font-weight: 600;
    font-size: 16px;
}

.woocommerce-checkout #place_order {
    background: #93436B !important;
    border: none !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-weight: 600 !important;
    height: 46px !important;
}
.woocommerce-checkout #place_order:hover {
    background: #7a3659 !important;
}

.woocommerce-checkout .payment_box img {
    max-width: 220px !important;
    height: auto !important;
    display: block;
    margin: 6px 0;
}
.woocommerce-checkout .payment_box {
    background: #fff;
    border-radius: 8px;
    padding: 10px 12px;
}

/* Kurucu Aile rozeti */
.pk-kurucu-aile-rozet {
    background: rgba(184,134,63,0.1);
    border: 1px solid rgba(184,134,63,0.35);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 14px;
    width: auto !important;
    float: none !important;
}
.pk-kurucu-aile-baslik {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}
.pk-kurucu-aile-baslik strong {
    color: #B8863F;
    font-size: 13px;
}
.pk-kurucu-aile-rozet span {
    display: block;
    color: #2B2440;
    font-size: 12px;
    opacity: 0.8;
    line-height: 1.4;
}

/* iyzico logosunu kuculr */
.pk-iyzico-logo-alani {
    justify-content: flex-start !important;
    margin-bottom: 10px;
    float: none !important;
    width: auto !important;
}
.pk-iyzico-logo-alani img {
    max-width: 140px !important;
    height: auto !important;
}

/* Kupon formunu her zaman gorunur yap, tek satir */
.woocommerce-form-coupon-toggle {
    display: none !important;
}
.checkout_coupon.woocommerce-form-coupon {
    position: static !important;
    display: flex !important;
    width: 100% !important;
    margin: 14px 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}
.checkout_coupon .form-row-first {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
}
.checkout_coupon .form-row-first input.input-text {
    width: 100% !important;
    box-sizing: border-box;
    height: 42px;
    border-radius: 8px 0 0 8px !important;
    border-right: none !important;
    padding: 0 12px !important;
}
.checkout_coupon .form-row-last {
    flex: 0 0 auto !important;
    margin: 0 !important;
}
.checkout_coupon .form-row-last button {
    height: 42px;
    background: #93436B !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 8px 8px 0 !important;
    padding: 0 14px !important;
    white-space: nowrap;
}
@media (max-width: 767px) {
    .checkout_coupon .form-row-first,
    .checkout_coupon .form-row-last {
        width: auto !important;
        float: none !important;
    }
    .checkout_coupon .form-row-first {
        flex: 1 1 auto !important;
        min-width: 60px !important;
    }
    .checkout_coupon .form-row-last {
        flex: 0 0 auto !important;
    }
}

/* Ara Toplam satirini gizle */
table.shop_table tr.cart-subtotal {
    display: none !important;
}

/* KVKK/Gizlilik metnini gizle (zaten ayri onay kutusu var) */
.woocommerce-privacy-policy-text {
    display: none !important;
}

/* Siparis tablosu: baslik satiri yok, urun gorseli var */
.woocommerce-checkout-review-order-table thead {
    display: none !important;
}
.pk-urun-satiri {
    display: flex;
    align-items: center;
    gap: 10px;
}
.pk-urun-gorsel img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 8px;
}

body.woocommerce-checkout ul.payment_methods {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Giris/kayit gerekli karti (misafir checkout kapali oldugunda gosterilir) */
.pk-checkout-gate {
    max-width: 480px;
    margin: 40px auto;
    padding: 28px 26px;
    background: #fff;
    border: 1px solid rgba(43,36,64,0.12);
    border-radius: 14px;
    text-align: center;
}
.pk-checkout-gate-lead {
    color: #2B2440;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 20px;
}
.pk-checkout-gate-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.pk-checkout-gate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 26px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}
.pk-checkout-gate-btn--primary {
    background: #93436B;
    color: #fff;
}
.pk-checkout-gate-btn--primary:hover {
    background: #7a3659;
    color: #fff;
}
.pk-checkout-gate-btn--ghost {
    background: transparent;
    color: #93436B;
    border: 1.5px solid #93436B;
}
.pk-checkout-gate-btn--ghost:hover {
    background: rgba(147,67,107,0.06);
    color: #93436B;
}

/* "Giris Yap" tiklaninca acilan satir ici form */
.pk-checkout-gate + form.woocommerce-form-login {
    max-width: 480px;
    margin: -20px auto 40px;
    padding: 24px 26px;
    background: #fff;
    border: 1px solid rgba(43,36,64,0.12);
    border-radius: 14px;
}
.pk-checkout-gate + form.woocommerce-form-login .form-row {
    width: 100% !important;
    float: none !important;
}
.pk-checkout-gate + form.woocommerce-form-login .woocommerce-form-login__submit {
    background: #93436B !important;
    border: none !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-weight: 600 !important;
    padding: 11px 22px !important;
}
.pk-checkout-gate + form.woocommerce-form-login .woocommerce-form-login__submit:hover {
    background: #7a3659 !important;
}

/* ==========================================================
   "Aboneliginiz Alindi" sayfasi (order-received)
   ========================================================== */
.woocommerce-order {
    max-width: 760px;
    margin: 0 auto !important;
    float: none !important;
}

/* Basarili odeme bandi */
.woocommerce-order .woocommerce-thankyou-order-received {
    background: rgba(184,134,63,0.08);
    border: 1px solid rgba(184,134,63,0.3);
    border-radius: 14px;
    padding: 22px 26px;
    margin: 0 0 24px;
    font-size: 16px;
    color: #2B2440;
    text-align: center;
}

/* Siparis No / Tarih / Toplam / Odeme Yontemi ozet seridi */
.woocommerce-order-overview {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    background: #fff;
    border: 1px solid rgba(43,36,64,0.08);
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    margin: 0 0 24px !important;
    padding: 0 !important;
    list-style: none !important;
}
.woocommerce-order-overview li {
    flex: 1 1 auto;
    padding: 18px 20px !important;
    border-right: 1px solid rgba(43,36,64,0.08);
    border-left: none !important;
    margin: 0 !important;
    font-size: 12.5px;
    color: #6c6270;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.woocommerce-order-overview li:last-child {
    border-right: none;
}
.woocommerce-order-overview li strong {
    display: block;
    margin-top: 4px;
    font-size: 15px;
    color: #2B2440;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
}

/* Siparis detaylari tablosu */
.woocommerce-order-details {
    background: #fff;
    border: 1px solid rgba(43,36,64,0.08);
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    padding: 22px 24px 8px;
    margin-bottom: 24px;
}
.woocommerce-order-details__title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 19px;
    font-weight: 500;
    color: #2B2440;
    margin: 0 0 16px;
}
.woocommerce-order-details table.shop_table {
    border: none !important;
    width: 100%;
}
.woocommerce-order-details table.shop_table th,
.woocommerce-order-details table.shop_table td {
    border: none !important;
    border-bottom: 1px solid rgba(43,36,64,0.08) !important;
    padding: 12px 0 !important;
    font-size: 14.5px;
    color: #2B2440;
}
.woocommerce-order-details table.shop_table tfoot tr:last-child th,
.woocommerce-order-details table.shop_table tfoot tr:last-child td {
    border-bottom: none !important;
    font-weight: 700;
    font-size: 16px;
}
.woocommerce-order-details .product-name a {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 16.5px;
    color: #2B2440;
}

/* Fatura / Teslimat adresi */
.woocommerce-customer-details {
    background: #fff;
    border: 1px solid rgba(43,36,64,0.08);
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    padding: 22px 24px;
    margin-bottom: 24px;
}
.woocommerce-customer-details address {
    font-style: normal;
    color: #2B2440;
    font-size: 14.5px;
    line-height: 1.7;
}
.woocommerce-column__title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 16px;
    font-weight: 500;
    color: #2B2440;
    margin: 0 0 10px;
}

@media (max-width: 600px) {
    .woocommerce-order-overview {
        flex-direction: column;
    }
    .woocommerce-order-overview li {
        border-right: none;
        border-bottom: 1px solid rgba(43,36,64,0.08);
    }
    .woocommerce-order-overview li:last-child {
        border-bottom: none;
    }
}

/* "Aboneliginiz Alindi" sayfasindan cikis butonlari */
.pk-thankyou-exit-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 8px 0 32px;
}
