/*
 * Eduhol Mağaza: ödeme anında Giriş Yap / Kayıt Ol penceresi
 * ve misafir sepeti yardımcı stilleri.
 *
 * Form, buton ve kullanıcı türü seçimi sitenin mevcut .login-modal /
 * .register-modal stillerini kullanır; burada yalnız sekmeler ve
 * eksik genişlik düzeltmeleri vardır.
 */

[data-store-guest-cart] [hidden],
[data-store-auth] [hidden],
[data-store-guest-merge][hidden] {
    display: none !important;
}

.edu-store-auth {
    width: 100%;
    padding: 0.25rem;
}

.edu-store-auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 0.75rem;
}

.edu-store-auth-logo img {
    width: 180px;
    height: 34px;
}

.edu-store-auth-lead {
    margin: 0 0 0.75rem;
    color: #666;
    font-size: 0.85rem;
    line-height: 1.45;
    text-align: center;
}

/* Sekmeler: buton değil, alt çizgili sekme görünümü */
.edu-store-auth-tabs {
    display: flex;
    width: 100%;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.edu-store-auth-tabs button {
    display: inline-flex;
    flex: 1 1 50%;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    height: 44px;
    margin-bottom: -1px;
    padding: 0 0.5rem;
    color: #999;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.edu-store-auth-tabs button:hover {
    color: #f17565;
}

.edu-store-auth-tabs button.active {
    color: #f17565;
    border-bottom-color: #f17565;
}

/* Sitenin kayıt penceresinde .rm-form tam genişlik almıyordu */
.edu-store-auth .register-modal,
.edu-store-auth .login-modal {
    padding: 0;
}

.edu-store-auth .register-modal-body .rmb-bottom .rm-form,
.edu-store-auth .register-modal-body .rmb-bottom .rm-form > form,
.edu-store-auth .login-modal-body > form {
    width: 100%;
}

.edu-store-auth .register-modal-body .rmb-bottom .rm-nav-buttons {
    margin-bottom: 0.5rem;
}

.edu-store-auth #edu-store-auth-remember ~ .cb-text {
    font-size: 0.9rem;
    font-weight: 600;
}

.edu-store-auth-hint {
    display: block;
    margin-top: 0.25rem;
    color: #888;
    font-size: 0.72rem;
}

/* Alttaki bilgilendirme metni ortalı */
.edu-store-auth .g-recaptcha-description {
    align-items: center;
    width: 100%;
    text-align: center;
}

.edu-store-auth .form-button-wrapper button:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* Misafir sepeti: onay kutuları işaretlenmeden ödeme butonu tıklanamaz */
[data-store-guest-cart] .edu-store-payment-button:disabled {
    cursor: not-allowed;
    pointer-events: none;
}

/* ------------------------------------------------------------------
 * Satın alınmış ürün: Sepete Ekle / Hemen Al yerine tam genişlik İNDİR
 * (Satın Aldıklarım'daki indirme butonuyla aynı renk)
 * ------------------------------------------------------------------ */
.edu-store-cart-actions.is-purchased,
.edu-store-catalog-card footer.edu-store-catalog-actions.is-purchased {
    grid-template-columns: 1fr;
}

.edu-store-download-purchased,
.edu-store-catalog-card footer.edu-store-catalog-actions > a.edu-store-download-purchased {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    width: 100%;
    min-height: 42px;
    padding: 0 0.7rem;
    color: #fff !important;
    border: 1px solid #e36555;
    border-radius: 0.25rem;
    background-color: #f17565;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none !important;
}

.edu-store-download-purchased:hover {
    background-color: #e96556;
}

/* ------------------------------------------------------------------
 * Mağaza ana sayfası kartı: istatistikler solda, fiyat sağda;
 * altta Sepete Ekle / Hemen Al
 * ------------------------------------------------------------------ */
.edu-store-catalog-card-top.edu-store-catalog-card-meta {
    justify-content: space-between;
}

.edu-store-catalog-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-width: 0;
    gap: 0.45rem;
}

.edu-store-catalog-stats span:first-child i {
    color: #f5a623;
}

.edu-store-catalog-card footer.edu-store-catalog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
}

.edu-store-catalog-card footer.edu-store-catalog-actions form {
    margin: 0;
}

.edu-store-catalog-card footer.edu-store-catalog-actions .edu-store-add-cart,
.edu-store-catalog-card footer.edu-store-catalog-actions > a.edu-store-go-cart,
.edu-store-catalog-card footer.edu-store-catalog-actions .edu-store-buy-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    width: 100%;
    min-height: 38px;
    margin: 0;
    padding: 0 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
}

.edu-store-catalog-card footer.edu-store-catalog-actions .edu-store-add-cart,
.edu-store-catalog-card footer.edu-store-catalog-actions > a.edu-store-go-cart {
    color: #fff !important;
    border: 1px solid #e36555;
    background-color: #f17565;
}

.edu-store-catalog-card footer.edu-store-catalog-actions .edu-store-add-cart:hover,
.edu-store-catalog-card footer.edu-store-catalog-actions > a.edu-store-go-cart:hover {
    background-color: #e96556;
}

.edu-store-catalog-card footer.edu-store-catalog-actions .edu-store-buy-now {
    color: #fff !important;
    border: 1px solid #25b963;
    background-color: #2ecc71;
}

.edu-store-catalog-card footer.edu-store-catalog-actions .edu-store-buy-now:hover {
    background-color: #27bb67;
}

/* Hemen Al penceresi yüklenirken */
.edu-store-catalog-card footer.edu-store-catalog-actions .edu-store-buy-now.is-loading {
    opacity: 0.7;
    pointer-events: none;
    cursor: wait;
}
