/* Sepet paneli */
html.eg-sepet-acik {
    overflow: hidden;
}

.eg-sepet-perde {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(26, 45, 89, .5);
    opacity: 0;
    transition: opacity .25s;
}

.eg-sepet-perde.acik {
    opacity: 1;
}

.eg-sepet-perde[hidden],
.eg-sepet-panel[hidden],
.eg-sepet-mesaj[hidden] {
    display: none;
}

.eg-sepet-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 100001;
    display: flex;
    flex-direction: column;
    width: 420px;
    max-width: 100%;
    background: #fff;
    color: #212529;
    box-shadow: -8px 0 28px rgba(26, 45, 89, .25);
    transform: translateX(100%);
    transition: transform .25s ease;
    outline: 0;
}

.eg-sepet-panel.acik {
    transform: none;
}

.eg-sepet-panel__ust {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #233c76;
    color: #fff;
}

.eg-sepet-panel__ust h2 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.eg-sepet-kapat {
    width: 36px;
    height: 36px;
    margin-right: -8px;
    border: 0;
    background: none;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.eg-sepet-mesaj {
    padding: 10px 18px;
    border-bottom: 1px solid #dde3ee;
    background: #f4f6fa;
    color: #233c76;
    font-size: 14px;
    font-weight: 600;
}

.eg-sepet-mesaj--hata {
    background: #fdf0f0;
    color: #b32d2e;
}

.eg-sepet-icerik {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
}

.eg-sepet-liste {
    flex: 1;
    margin: 0;
    padding: 0 18px;
    overflow-y: auto;
    list-style: none;
    -webkit-overflow-scrolling: touch;
}

.eg-sepet-kalem {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #dde3ee;
}

.eg-sepet-kalem:last-child {
    border-bottom: 0;
}

.eg-sepet-kalem__resim {
    flex: 0 0 60px;
}

.eg-sepet-kalem__resim img {
    display: block;
    width: 60px;
    height: 60px;
    border: 1px solid #dde3ee;
    object-fit: contain;
}

.eg-sepet-kalem__bilgi {
    flex: 1;
    min-width: 0;
}

.eg-sepet-kalem__ad {
    display: block;
    color: #233c76;
    font-size: 14px;
    font-weight: 600;
    word-break: break-word;
}

.eg-sepet-kalem__bilgi small {
    display: block;
    margin: 2px 0 8px;
    color: #5f6b7a;
}

.eg-sepet-kalem__bilgi small small {
    display: inline;
    margin: 0;
}

.eg-sepet-adet {
    display: inline-flex;
    border: 1px solid #dde3ee;
}

.eg-sepet-adet button {
    width: 34px;
    height: 34px;
    border: 0;
    background: #f4f6fa;
    color: #233c76;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.eg-sepet-adet input {
    width: 46px;
    height: 34px;
    padding: 0;
    border: 0;
    border-right: 1px solid #dde3ee;
    border-left: 1px solid #dde3ee;
    font-size: 16px;
    text-align: center;
    -moz-appearance: textfield;
}

.eg-sepet-adet input::-webkit-outer-spin-button,
.eg-sepet-adet input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.eg-sepet-kalem__sag {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    text-align: right;
}

.eg-sepet-kalem__sag strong {
    white-space: nowrap;
    font-size: 14px;
}

.eg-sepet-kalem__sag small {
    display: none;
}

.eg-sepet-sil {
    display: block;
    width: 28px;
    height: 28px;
    margin: -4px -6px 0 0;
    color: #5f6b7a;
    font-size: 20px;
    line-height: 28px;
    text-align: center;
    text-decoration: none;
}

.eg-sepet-sil:hover {
    color: #b32d2e;
    text-decoration: none;
}

.eg-sepet-panel__alt {
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid #dde3ee;
    background: #fff;
}

.eg-sepet-panel__alt .eg-kargo {
    margin-bottom: 12px;
}

.eg-sepet-toplam {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    font-size: 15px;
}

.eg-sepet-toplam strong {
    color: #233c76;
    font-size: 19px;
}

.eg-sepet-toplam small {
    display: none;
}

.eg-sepet-not {
    margin: 2px 0 12px;
    color: #5f6b7a;
    font-size: 13px;
}

.eg-sepet-dugme,
.eg-sepet-dugme:hover {
    display: block;
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #233c76;
    background: #fff;
    color: #233c76;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.eg-sepet-dugme--ana,
.eg-sepet-dugme--ana:hover {
    margin-bottom: 8px;
    border-color: #F7941D;
    background: #F7941D;
    color: #14213f;
}

.eg-sepet-bos {
    margin: auto;
    padding: 24px;
    color: #5f6b7a;
    text-align: center;
}

.eg-sepet-bos i {
    margin-bottom: 12px;
    color: #dde3ee;
    font-size: 44px;
}

@media (max-width: 480px) {
    .eg-sepet-panel {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .eg-sepet-panel,
    .eg-sepet-perde {
        transition: none;
    }
}

/* Sepet sayfası */
.eg-sepet-js .woocommerce-cart-form [name="update_cart"] {
    display: none;
}

.woocommerce-cart .woocommerce table.cart td.actions .coupon .input-text {
    width: 170px;
}

.woocommerce-cart .cart_totals > h2 {
    font-size: 20px;
}

@media (min-width: 992px) {
    .woocommerce-cart .woocommerce {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 380px;
        gap: 0 28px;
        align-items: start;
    }

    .woocommerce-cart .woocommerce > .woocommerce-notices-wrapper,
    .woocommerce-cart .woocommerce > .wc-empty-cart-message,
    .woocommerce-cart .woocommerce > .return-to-shop {
        grid-column: 1 / -1;
    }

    .woocommerce-cart .woocommerce > .woocommerce-cart-form {
        grid-column: 1;
    }

    .woocommerce-cart .woocommerce > .cart-collaterals {
        position: sticky;
        top: 16px;
        grid-column: 2;
        width: auto;
        margin-top: 0;
    }

    .woocommerce-cart .woocommerce .cart-collaterals .cart_totals {
        float: none;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .woocommerce-cart table.cart td.product-thumbnail {
        display: flex;
        justify-content: flex-end;
    }

    .woocommerce-cart table.cart td.product-thumbnail img {
        width: 60px;
    }

    .woocommerce-cart table.cart td.product-thumbnail::before {
        display: none;
    }
}
