/* Storefront-only layout corrections. No cart, price or payment state changes. */
/* Published contract URLs and its seller table must fit narrow dialogs. */
.sc-checkout-page #sozlesmeModal .modal-body {
    overflow-wrap: anywhere;
}

.sc-checkout-page #sozlesmeModal .modal-body table {
    width: 100%;
    max-width: 100%;
}

/* Release the sticky stacking context while a dialog is open. */
.sc-checkout-page.modal-open .teslimat-checkout-sidebar {
    position: static !important;
}

body.sc-commerce-page {
    overflow-y: visible !important;
}

.sc-commerce-page .urun-detay-main h1,
.sc-commerce-page .cart-main-div a,
.sc-commerce-page .teslimat-page-main label {
    overflow-wrap: anywhere;
}

/* The theme's mobile .row width cap clips Bootstrap's negative gutters. */
.sc-checkout-page .teslimat-page-main {
    width: min(1300px, calc(100% - 48px)) !important;
    max-width: none !important;
    overflow: visible !important;
}

.sc-checkout-page .teslimat-checkout-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 28px;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    overflow: visible !important;
}

.sc-checkout-page .teslimat-checkout-grid > [class*="col-"] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0 !important;
    margin: 0 !important;
}

.sc-checkout-page .teslimat-form-area .row {
    width: auto !important;
    max-width: none !important;
    overflow: visible !important;
}

.sc-checkout-page .teslimat-extra-row > *,
.sc-checkout-page .teslimat-form-area .form-group {
    min-width: 0;
}

.sc-checkout-page .teslimat-form-area .form-control {
    min-width: 0;
    max-width: 100%;
}

.sc-commerce-page .ccard-payment-page-main iframe {
    max-width: 100%;
}

.sc-checkout-page .cicek-floating-action,
.sc-checkout-page #return-to-top,
.sc-payment-page .cicek-floating-action,
.sc-payment-page #return-to-top {
    display: none !important;
}

@media (max-width: 1024px) {
    /* Search is in the header; WhatsApp remains in product and footer links. */
    .sc-commerce-page .cicek-floating-action,
    .sc-commerce-page #return-to-top {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .sc-checkout-page .teslimat-page-main {
        width: calc(100% - 24px) !important;
    }

    .sc-checkout-page .teslimat-checkout-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }
}

@media (max-width: 575px) {
    .sc-checkout-page .teslimat-page-main {
        width: calc(100% - 24px) !important;
        margin: 18px auto !important;
    }

    .sc-cart-page .cart-left-box-4 {
        width: 100% !important;
        display: flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 10px;
    }

    .sc-cart-page .cart-left-box-4 .btn {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .sc-cart-page .cart-left-box-4 input {
        height: 44px !important;
    }

    .sc-cart-page .cart-right-div button[data-target="#loginModal"],
    .sc-cart-page .cart-right-div a[href$="teslimat/"] {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
