/*
 * Eduhol Mağaza — Sepet ve ürün detay sepet aksiyonları
 */

.edu-store-cart-page,
.edu-store-cart-page *,
.edu-store-cart-actions,
.edu-store-cart-actions * {
    box-sizing: border-box;
}

.edu-store-cart-page {
    width: 100%;
    max-width: 675px;
    min-width: 0;
    padding: 0.25rem 0 1rem;
    color: #333;
    font-family: inherit;
}

.edu-store-cart-panel {
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.5rem;
    background-color: #fff;
}

.edu-store-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-top: 5px solid #f17565;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.edu-store-cart-header > div {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 0.55rem;
}

.edu-store-cart-header > div > i {
    color: #f17565;
    font-size: 1.2rem;
}

.edu-store-cart-header h1 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.edu-store-cart-header p {
    margin: 0.15rem 0 0;
    color: #777;
    font-size: 0.7rem;
}

.edu-store-cart-header > span {
    flex-shrink: 0;
    padding: 0.28rem 0.45rem;
    color: #f17565;
    border-radius: 999px;
    background-color: #fff0ed;
    font-size: 0.68rem;
    font-weight: 700;
}

.edu-store-cart-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
}

.edu-store-cart-item {
    display: grid;
    grid-template-columns: 185px minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.5rem;
    background-color: #fff;
}

.edu-store-cart-item.is-unavailable {
    background-color: #fafafa;
    opacity: 0.82;
}

.edu-store-cart-cover {
    display: block;
    width: 100%;
    aspect-ratio: 1350 / 760;
    align-self: start;
    overflow: hidden;
    background-color: #f4f4f4;
}

.edu-store-cart-cover img,
.edu-store-cart-cover > span {
    width: 100%;
    height: 100%;
}

.edu-store-cart-cover img {
    display: block;
    object-fit: contain;
}

.edu-store-cart-cover > span {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 1.7rem;
}

.edu-store-cart-item-body {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    min-width: 0;
    padding: 0.65rem;
}

.edu-store-cart-item-title {
    color: #333 !important;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none !important;
}

.edu-store-cart-item-body > strong {
    margin-top: 0.4rem;
    color: #f17565;
    font-size: 0.88rem;
}

.edu-store-price-change,
.edu-store-unavailable-note {
    display: block;
    margin-top: 0.3rem;
    color: #777;
    font-size: 0.65rem;
    line-height: 1.35;
}

.edu-store-unavailable-text {
    color: #ef5350 !important;
}

.edu-store-cart-item-body form {
    margin-top: auto;
    padding-top: 0.55rem;
}

.edu-store-cart-item-body form button {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    min-height: 31px;
    padding: 0 0.5rem;
    color: #ef5350;
    border: 1px solid #efb1ad;
    border-radius: 0.25rem;
    background-color: #fff;
    font: inherit;
    font-size: 0.64rem;
    font-weight: 700;
    cursor: pointer;
}

.edu-store-cart-item-body form button:hover {
    color: #fff;
    background-color: #ef5350;
}

.edu-store-cart-summary {
    padding: 0.65rem;
    border-top: 1px solid rgba(0, 0, 0, 0.125);
    background-color: #fafafa;
}

.edu-store-cart-warning {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    margin-bottom: 0.55rem;
    padding: 0.45rem;
    color: #9b6500;
    border-radius: 0.25rem;
    background-color: #fff4d9;
    font-size: 0.67rem;
    line-height: 1.4;
}

.edu-store-cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.edu-store-cart-total span {
    color: #555;
    font-size: 0.78rem;
    font-weight: 600;
}

.edu-store-cart-total strong {
    color: #f17565;
    font-size: 1.05rem;
}

.edu-store-checkout-button {
    width: 100%;
    min-height: 42px;
    margin-top: 0.55rem;
    color: #fff;
    border: 1px solid #25b963;
    border-radius: 0.25rem;
    background-color: #2ecc71;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
}

.edu-store-checkout-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.edu-store-cart-summary > small {
    display: block;
    margin-top: 0.35rem;
    color: #888;
    font-size: 0.62rem;
    text-align: center;
}

.edu-store-cart-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 270px;
    padding: 1.2rem;
    color: #777;
    text-align: center;
}

.edu-store-cart-empty > i {
    color: #bbb;
    font-size: 2.3rem;
}

.edu-store-cart-empty strong {
    margin-top: 0.55rem;
    color: #444;
    font-size: 0.9rem;
}

.edu-store-cart-empty p {
    margin: 0.3rem 0 0.8rem;
    font-size: 0.7rem;
}

.edu-store-cart-empty a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 0.7rem;
    color: #fff !important;
    border: 1px solid #ef695b;
    border-radius: 0.25rem;
    background-color: #f17565;
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none !important;
}

/* Ürün detayındaki sepet düğmeleri */
.edu-store-cart-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    margin-top: 0.4rem;
}

.edu-store-cart-actions form {
    margin: 0;
}

.edu-store-add-cart,
.edu-store-go-cart,
.edu-store-buy-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    gap: 0.3rem;
    padding: 0 0.55rem;
    border-radius: 0.25rem;
    font: inherit;
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none !important;
}

.edu-store-add-cart,
.edu-store-go-cart {
    color: #fff !important;
    border: 1px solid #ef695b;
    background-color: #f17565;
    cursor: pointer;
}

.edu-store-add-cart:not(:disabled):hover,
.edu-store-go-cart:hover {
    background-color: #eb6858;
}

.edu-store-buy-now {
    color: #fff;
    border: 1px solid #25b963;
    background-color: #2ecc71;
}

.edu-store-add-cart:disabled,
.edu-store-buy-now:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

@media (max-width: 767px) {
    .edu-store-cart-page {
        max-width: none;
    }

    .edu-store-cart-panel {
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .edu-store-cart-header p {
        display: none;
    }

    .edu-store-cart-item {
        grid-template-columns: 125px minmax(0, 1fr);
    }

    .edu-store-cart-actions {
        grid-template-columns: 1fr;
    }
}


/* v14 — StoreCatalog.css genel button kuralını kesin olarak ezer. */
.edu-store-detail-price .edu-store-cart-actions
    .edu-store-add-cart,
.edu-store-detail-price .edu-store-cart-actions
    .edu-store-go-cart {
    margin-top: 0;
    color: #fff !important;
    border-color: #e36555 !important;
    background-color: #f17565 !important;
    box-shadow: none;
}

.edu-store-detail-price .edu-store-cart-actions
    .edu-store-add-cart:not(:disabled):hover,
.edu-store-detail-price .edu-store-cart-actions
    .edu-store-go-cart:hover {
    background-color: #e96556 !important;
}

.edu-store-detail-price .edu-store-cart-actions
    .edu-store-buy-now {
    margin-top: 0;
    color: #fff !important;
    border-color: #25b963 !important;
    background-color: #2ecc71 !important;
    cursor: pointer;
}

.edu-store-detail-price .edu-store-cart-actions
    .edu-store-buy-now:not(:disabled):hover {
    background-color: #27bb67 !important;
}

.edu-store-detail-price .edu-store-cart-actions
    .edu-store-buy-now:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.edu-store-direct-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.62rem;
    padding: 0.62rem;
    border: 1px solid rgba(0, 0, 0, 0.09);
    border-radius: 0.4rem;
    background-color: #fff8f7;
}

.edu-store-direct-summary span {
    min-width: 0;
    overflow: hidden;
    color: #444;
   
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.edu-store-direct-summary strong {
    flex-shrink: 0;
    color: #f17565;
  
}

#edu-store-direct-payment-form
    .edu-store-payment-consents {
    padding: 0;
}

#edu-store-direct-payment-form
    .edu-store-phone-field {
    margin-top: 0;
}

/* Eduhol Mağaza sepet ödeme kilidi v27 */
.edu-store-cart-pending-payment {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    margin: 14px;
    padding: 16px;
    border: 1px solid #f1cf70;
    border-radius: 9px;
    background: #fff8dc;
}

.edu-store-cart-pending-payment-info {
    display: flex;
    align-items: flex-start;
    min-width: 0;
    gap: 12px;
}

.edu-store-cart-pending-payment-info > i {
    flex: 0 0 auto;
    color: #a87800;
    font-size: 25px;
}

.edu-store-cart-pending-payment-info > div {
    min-width: 0;
}

.edu-store-cart-pending-payment-info strong {
    display: block;
    color: #5c4918;
    font-size: 17px;
}

.edu-store-cart-pending-payment-info p {
    margin: 5px 0 0;
    color: #735f28;
    font-size: 16px;
    line-height: 1.5;
}

.edu-store-cart-pending-payment-info dl {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 10px 0 0;
}

.edu-store-cart-pending-payment-info dl > div {
    display: flex;
    align-items: center;
    gap: 6px;
}

.edu-store-cart-pending-payment-info dt,
.edu-store-cart-pending-payment-info dd {
    margin: 0;
    font-size: 16px;
}

.edu-store-cart-pending-payment-info dt {
    color: #846d31;
}

.edu-store-cart-pending-payment-info dd {
    color: #4e4018;
    font-weight: 800;
}

.edu-store-cart-pending-payment > form {
    margin: 0;
}

.edu-store-cart-pending-payment > form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 15px;
    color: #fff;
    border: 1px solid #d7594a;
    border-radius: 8px;
    background: #f17565;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.edu-store-cart-pending-payment > form button:hover {
    background: #e56555;
}

.edu-store-cart-pending-payment-error {
    display: flex;
    align-items: flex-start;
    max-width: 380px;
    gap: 8px;
    color: #8b3e36;
    font-size: 16px;
    line-height: 1.45;
}

.edu-store-cart-item-body form button:disabled {
    color: #999;
    border-color: #d8d8d8;
    background: #f1f1f1;
    cursor: not-allowed;
    opacity: 0.8;
}

@media (max-width: 767px) {
    .edu-store-cart-pending-payment {
        grid-template-columns: 1fr;
        margin: 12px;
    }

    .edu-store-cart-pending-payment > form button {
        width: 100%;
    }

    .edu-store-cart-pending-payment-error {
        max-width: none;
    }
}
