/* ITM Hosting — Sepet / Checkout v1.3.0 (frontend) */

body.master-theme .itm-checkout-page {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 16px 48px;
}

/* ─── Hero ─── */
body.master-theme .itm-checkout-hero {
    position: relative;
    margin: 0 0 28px;
    padding: 28px 24px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #312e81 100%);
    box-shadow: 0 16px 40px -20px rgba(15, 23, 42, 0.35);
    overflow: hidden;
}

body.master-theme .itm-checkout-hero::before {
    content: "";
    position: absolute;
    top: -40px;
    right: -30px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.15);
    filter: blur(40px);
    pointer-events: none;
}

body.master-theme .itm-checkout-hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

body.master-theme .itm-checkout-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e0f2fe;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.master-theme .itm-checkout-hero h1 {
    margin: 14px 0 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
}

body.master-theme .itm-checkout-hero p {
    margin: 10px auto 0;
    max-width: 480px;
    font-size: 0.92rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
}

/* ─── Grid layout ─── */
body.master-theme .itm-checkout-page .sepet {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 320px !important;
    gap: 24px !important;
    align-items: start !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
}

body.master-theme .itm-checkout-page .sepetleft,
body.master-theme .itm-checkout-page .sepetright {
    float: none !important;
    width: 100% !important;
}

body.master-theme .itm-checkout-page .sepetright {
    position: sticky !important;
    top: 20px !important;
}

/* ─── Table header ─── */
body.master-theme .itm-checkout-page .sepetbaslik {
    float: none !important;
    width: 100% !important;
    line-height: normal !important;
    background: linear-gradient(135deg, #0f172a, #1e293b) !important;
    border-radius: 16px 16px 0 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #fff !important;
    border: 1px solid #1e293b !important;
    border-bottom: none !important;
}

body.master-theme .itm-basket-page .sepetleft > .sepetbaslik {
    border-radius: 16px 16px 0 0 !important;
}

body.master-theme .itm-basket-page .sepetbaslik > div {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 130px 110px !important;
    gap: 12px !important;
    align-items: center !important;
    padding: 14px 20px !important;
}

body.master-theme .itm-basket-page .uhinfo,
body.master-theme .itm-basket-page .uhperiyod,
body.master-theme .itm-basket-page .uhtutar {
    float: none !important;
    width: auto !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

body.master-theme .itm-basket-page .uhperiyod,
body.master-theme .itm-basket-page .uhtutar {
    text-align: center !important;
}

/* ─── Product list ─── */
body.master-theme .itm-checkout-page .sepetlist {
    float: none !important;
    width: 100% !important;
    margin: 0 0 16px !important;
    border: 1px solid #e2e8f0 !important;
    border-top: none !important;
    border-radius: 0 0 16px 16px !important;
    box-shadow: 0 8px 24px -12px rgba(15, 23, 42, 0.1) !important;
    overflow: visible !important;
    background: #fff !important;
}

body.master-theme .itm-basket-page .sepetlistcon {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 130px 110px 40px !important;
    gap: 14px !important;
    align-items: start !important;
    padding: 20px !important;
}

body.master-theme .itm-basket-page .uhinfo {
    color: #0f172a !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
}

body.master-theme .itm-basket-page .uhinfo h5 {
    margin: 0 0 6px !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}

body.master-theme .itm-basket-page .uhinfo h4 {
    margin: 0 0 4px !important;
}

body.master-theme .itm-basket-page .uhinfo h4 a {
    color: #0284c7 !important;
    font-size: 0.86rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

body.master-theme .itm-basket-page .uhperiyod select {
    width: 100% !important;
    max-width: 130px !important;
    padding: 8px 10px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
    font-size: 0.86rem !important;
    color: #334155 !important;
}

body.master-theme .itm-basket-page .uhperiyod h5 {
    margin: 0 !important;
    font-size: 0.9rem !important;
    color: #334155 !important;
}

body.master-theme .itm-basket-page .uhtutar h4 {
    margin: 0 !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: #0284c7 !important;
    text-align: right !important;
}

body.master-theme .itm-basket-page .uhsil {
    float: none !important;
    width: auto !important;
    text-align: center !important;
}

body.master-theme .itm-basket-page .uhsil a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: #fef2f2 !important;
    color: #dc2626 !important;
    transition: all 0.2s ease !important;
}

body.master-theme .itm-basket-page .uhsil a:hover {
    background: #fee2e2 !important;
    color: #b91c1c !important;
}

body.master-theme .itm-basket-page .cart-additional-details a {
    font-size: 0.82rem !important;
    color: #64748b !important;
}

body.master-theme .itm-basket-page #empty_list {
    margin: 24px 0 !important;
    padding: 32px 20px !important;
    border: 1px dashed #e2e8f0 !important;
    border-radius: 16px !important;
    background: #f8fafc !important;
    text-align: center !important;
}

body.master-theme .itm-basket-page #empty_list h4 {
    margin: 12px 0 0 !important;
    color: #64748b !important;
}

/* ─── Summary sidebar ─── */
body.master-theme .itm-checkout-page .sepetrightshadow {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 32px -14px rgba(15, 23, 42, 0.12) !important;
    overflow: hidden !important;
}

body.master-theme .itm-checkout-page .sepetright .sepetbaslik {
    border-radius: 16px 16px 0 0 !important;
    border: none !important;
}

body.master-theme .itm-checkout-page .sepetright .sepetbaslik > div {
    padding: 14px 18px !important;
    text-align: left !important;
}

body.master-theme .itm-checkout-page .sepetrightcon {
    padding: 16px 18px 18px !important;
}

body.master-theme .itm-checkout-page .sepetsipinfo td {
    padding: 8px 0 !important;
    border: none !important;
    font-size: 0.88rem !important;
    color: #475569 !important;
    vertical-align: middle !important;
}

body.master-theme .itm-checkout-page .sepetsipinfo h5 {
    margin: 0 !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

body.master-theme .itm-checkout-page .totalamountinfo {
    padding: 16px 0 4px !important;
    border-top: 1px dashed #e2e8f0 !important;
    margin-top: 8px !important;
}

body.master-theme .itm-checkout-page .totalamountinfo strong {
    display: block !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    color: #64748b !important;
    margin-bottom: 6px !important;
}

body.master-theme .itm-checkout-page .totalamountinfo h5,
body.master-theme .itm-checkout-page #total-amount-payable {
    margin: 0 !important;
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    color: #0284c7 !important;
    letter-spacing: -0.02em !important;
}

body.master-theme .itm-checkout-page #use_coupon a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    color: #0284c7 !important;
    text-decoration: none !important;
}

body.master-theme .itm-checkout-page #kuponkodu input {
    width: 100% !important;
    padding: 10px 12px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    margin-top: 8px !important;
}

/* ─── CTA buttons (tek görünür buton) ─── */
body.master-theme .itm-checkout-cta,
body.master-theme .itm-basket-page .sepetright {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

body.master-theme .itm-checkout-cta .gonderbtn,
body.master-theme .itm-checkout-cta .graybtn.gonderbtn,
body.master-theme .itm-basket-page #continue_go,
body.master-theme .itm-basket-page #continue_block {
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin-top: 14px !important;
    padding: 14px 24px !important;
    border-radius: 999px !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    float: none !important;
    text-align: center !important;
    box-sizing: border-box !important;
    border: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

body.master-theme .itm-checkout-cta .gonderbtn.itm-cta-visible,
body.master-theme .itm-basket-page #continue_go.itm-cta-visible {
    display: inline-flex !important;
    background: linear-gradient(135deg, #0ea5e9, #22d3ee) !important;
    color: #fff !important;
    box-shadow: 0 8px 22px rgba(14, 165, 233, 0.32) !important;
}

body.master-theme .itm-checkout-cta .gonderbtn.itm-cta-visible:hover,
body.master-theme .itm-basket-page #continue_go.itm-cta-visible:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 26px rgba(14, 165, 233, 0.38) !important;
    color: #fff !important;
    background: linear-gradient(135deg, #0284c7, #0ea5e9) !important;
}

body.master-theme .itm-checkout-cta .graybtn.gonderbtn.itm-cta-visible,
body.master-theme .itm-basket-page #continue_block.itm-cta-visible {
    display: inline-flex !important;
    background: #e2e8f0 !important;
    color: #64748b !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
}

body.master-theme .itm-basket-page #continueshopbtn.lbtn.gonderbtn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 20px auto 0 !important;
    padding: 11px 22px !important;
    border: 1.5px solid #0ea5e9 !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #0284c7 !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    box-shadow: none !important;
    text-transform: none !important;
}

body.master-theme .itm-basket-page #continueshopbtn.lbtn.gonderbtn:hover {
    background: #f0f9ff !important;
    transform: none !important;
}

/* ─── Trust badges ─── */
body.master-theme .itm-basket-page .paymentlogos {
    margin-top: 28px !important;
    padding: 20px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    background: #f8fafc !important;
    text-align: center !important;
}

body.master-theme .itm-basket-page .paymentlogos span {
    display: block !important;
    margin-top: 10px !important;
    font-size: 0.78rem !important;
    color: #94a3b8 !important;
}

/* ─── Ödeme sayfası blokları ─── */
body.master-theme .itm-checkout-pay-page .itm-checkout-block {
    margin-bottom: 20px !important;
}

body.master-theme .itm-checkout-block-title {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 14px 18px !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    color: #fff !important;
}

body.master-theme .itm-checkout-block-title i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    font-size: 14px !important;
}

body.master-theme .itm-checkout-pay-page .itm-checkout-block .sepetlist {
    border-radius: 0 0 16px 16px !important;
    border-top: none !important;
    margin-bottom: 0 !important;
}

body.master-theme .itm-checkout-address-wrap,
body.master-theme .itm-checkout-contracts {
    padding: 4px 0 !important;
}

body.master-theme .itm-checkout-contract-row {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 12px 14px !important;
    margin-bottom: 10px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
}

body.master-theme .itm-checkout-contract-row:has(input:checked) {
    border-color: #0ea5e9 !important;
    background: #f0f9ff !important;
}

body.master-theme .itm-checkout-contract-row .checkbox-custom-label {
    font-size: 0.86rem !important;
    line-height: 1.55 !important;
    color: #334155 !important;
}

body.master-theme .itm-checkout-contract-row .checkbox-custom-label a {
    color: #0284c7 !important;
    font-weight: 600 !important;
}

body.master-theme .itm-checkout-select,
body.master-theme .itm-checkout-pay-page #address_list {
    width: 100% !important;
    padding: 10px 12px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
    font-size: 0.88rem !important;
    color: #334155 !important;
}

/* ─── Ödeme yöntemi kartları (ITMClientTheme ile aynı) ─── */
body.master-theme .itm-checkout-pmethods-wrap {
    padding: 4px 0 !important;
}

body.master-theme .itm-payment-methods-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 12px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 4px 0 !important;
    overflow: visible !important;
}

body.master-theme .itm-payment-method-card {
    display: flex !important;
    align-items: stretch !important;
    margin: 0 !important;
    cursor: pointer !important;
    position: relative !important;
}

body.master-theme .itm-payment-method-input.checkbox-custom,
body.master-theme .itm-payment-method-input.radio-custom {
    position: absolute !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    pointer-events: none !important;
}

body.master-theme .itm-payment-method-card-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 4px !important;
    width: 100% !important;
    min-height: 72px !important;
    padding: 16px 18px 16px 48px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
    box-sizing: border-box !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
}

body.master-theme .itm-payment-method-card-inner::before {
    content: '' !important;
    position: absolute !important;
    left: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 20px !important;
    height: 20px !important;
    border: 2px solid #cbd5e1 !important;
    border-radius: 50% !important;
    background: #fff !important;
    box-sizing: border-box !important;
}

body.master-theme .itm-payment-method-input:checked + .itm-payment-method-card-inner {
    border-color: #0ea5e9 !important;
    background: rgba(14, 165, 233, 0.06) !important;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1) !important;
}

body.master-theme .itm-payment-method-input:checked + .itm-payment-method-card-inner::before {
    border-color: #0ea5e9 !important;
    background: #0ea5e9 !important;
    box-shadow: inset 0 0 0 3px #fff !important;
}

body.master-theme .itm-payment-method-name {
    font-size: 0.95rem !important;
    color: #0f172a !important;
    line-height: 1.4 !important;
}

body.master-theme .itm-payment-method-fee {
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: #64748b !important;
}

body.master-theme .itm-checkout-back.lbtn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 12px !important;
    padding: 11px 18px !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    color: #0284c7 !important;
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    text-decoration: none !important;
}

body.master-theme .itm-checkout-trust.paymentlogos {
    margin-top: 24px !important;
    padding: 18px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    background: #f8fafc !important;
    text-align: center !important;
}

/* ─── Sözleşme modalları ─── */
.iziModal.itm-contract-modal,
.itm-contract-modal.iziModal,
#contract1_modal.iziModal,
#contract2_modal.iziModal {
    width: min(92vw, 520px) !important;
    max-width: 520px !important;
    max-height: 78vh !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22) !important;
    border: 1px solid #e2e8f0 !important;
    overflow: hidden !important;
}

.itm-contract-modal .iziModal-header {
    background: linear-gradient(135deg, #0f172a, #1e293b) !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.itm-contract-modal .iziModal-header-title {
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 14px 18px !important;
    line-height: 1.4 !important;
}

.itm-contract-modal .iziModal-header-icon,
.itm-contract-modal .iziModal-button {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    border-radius: 8px !important;
    opacity: 1 !important;
}

.itm-contract-modal .iziModal-content {
    padding: 0 !important;
    background: #fff !important;
}

.itm-contract-modal-body,
.itm-contract-modal .padding20,
#contract1_modal .padding20,
#contract2_modal .padding20 {
    padding: 16px 18px 20px !important;
    max-height: min(58vh, 420px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    font-size: 13px !important;
    line-height: 1.65 !important;
    color: #475569 !important;
}

.itm-contract-modal-body h1,
.itm-contract-modal-body h2,
.itm-contract-modal .padding20 h1,
.itm-contract-modal .padding20 h2,
#contract1_modal .padding20 h1,
#contract2_modal .padding20 h2 {
    color: #0f172a !important;
    font-weight: 700 !important;
    margin: 0 0 10px !important;
    font-size: 0.95rem !important;
    line-height: 1.45 !important;
}

.itm-contract-modal-body p,
.itm-contract-modal .padding20 p,
#contract1_modal .padding20 p,
#contract2_modal .padding20 p {
    margin: 0 0 10px !important;
}

.itm-contract-modal-body ul,
.itm-contract-modal .padding20 ul,
#contract1_modal .padding20 ul,
#contract2_modal .padding20 ul {
    margin: 0 0 12px 1.15em !important;
    padding: 0 !important;
}

/* ─── Dark mode ─── */
html.itm-dark-mode body.master-theme .itm-checkout-hero {
    border-color: #334155;
}

html.itm-dark-mode body.master-theme .itm-checkout-page .sepetlist,
html.itm-dark-mode body.master-theme .itm-checkout-page .sepetrightshadow {
    background: #0f172a !important;
    border-color: #334155 !important;
}

html.itm-dark-mode body.master-theme .itm-basket-page .uhinfo,
html.itm-dark-mode body.master-theme .itm-basket-page .uhinfo h5 {
    color: #f8fafc !important;
}

html.itm-dark-mode body.master-theme .itm-basket-page .uhinfo h4 a {
    color: #38bdf8 !important;
}

html.itm-dark-mode body.master-theme .itm-basket-page .uhperiyod h5,
html.itm-dark-mode body.master-theme .itm-checkout-page .sepetsipinfo td,
html.itm-dark-mode body.master-theme .itm-checkout-page .sepetsipinfo td strong {
    color: #cbd5e1 !important;
}

html.itm-dark-mode body.master-theme .itm-checkout-page .sepetsipinfo h5 {
    color: #f8fafc !important;
}

html.itm-dark-mode body.master-theme .itm-checkout-page .totalamountinfo strong {
    color: #94a3b8 !important;
}

html.itm-dark-mode body.master-theme .itm-basket-page .uhperiyod select,
html.itm-dark-mode body.master-theme .itm-checkout-select,
html.itm-dark-mode body.master-theme .itm-checkout-pay-page #address_list,
html.itm-dark-mode body.master-theme .itm-checkout-page #kuponkodu input {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

html.itm-dark-mode body.master-theme .itm-basket-page .paymentlogos,
html.itm-dark-mode body.master-theme .itm-checkout-trust.paymentlogos,
html.itm-dark-mode body.master-theme .itm-basket-page #empty_list {
    background: #1e293b !important;
    border-color: #334155 !important;
}

html.itm-dark-mode body.master-theme .itm-basket-page .paymentlogos span {
    color: #94a3b8 !important;
}

html.itm-dark-mode body.master-theme .itm-checkout-contract-row {
    background: #1e293b !important;
    border-color: #334155 !important;
}

html.itm-dark-mode body.master-theme .itm-checkout-contract-row:has(input:checked) {
    background: rgba(14, 165, 233, 0.1) !important;
    border-color: #0ea5e9 !important;
}

html.itm-dark-mode body.master-theme .itm-checkout-contract-row .checkbox-custom-label {
    color: #cbd5e1 !important;
}

html.itm-dark-mode body.master-theme .itm-basket-page #continueshopbtn.lbtn.gonderbtn,
html.itm-dark-mode body.master-theme .itm-checkout-back.lbtn {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #38bdf8 !important;
}

html.itm-dark-mode body.master-theme .itm-basket-page .cart-additional-details a {
    color: #94a3b8 !important;
}

html.itm-dark-mode body.master-theme .itm-payment-method-card-inner {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

html.itm-dark-mode body.master-theme .itm-payment-method-card-inner::before {
    background: #0f172a !important;
    border-color: #475569 !important;
}

html.itm-dark-mode body.master-theme .itm-payment-method-input:checked + .itm-payment-method-card-inner {
    border-color: #0ea5e9 !important;
    background: rgba(14, 165, 233, 0.12) !important;
}

html.itm-dark-mode body.master-theme .itm-payment-method-name {
    color: #f8fafc !important;
}

html.itm-dark-mode body.master-theme .itm-payment-method-fee {
    color: #94a3b8 !important;
}

html.itm-dark-mode body.master-theme .itm-checkout-address-head h5 {
    color: #f8fafc !important;
}

html.itm-dark-mode .itm-contract-modal .iziModal-content {
    background: #0f172a !important;
}

html.itm-dark-mode .itm-contract-modal-body,
html.itm-dark-mode .itm-contract-modal .padding20,
html.itm-dark-mode #contract1_modal .padding20,
html.itm-dark-mode #contract2_modal .padding20 {
    color: #cbd5e1 !important;
}

html.itm-dark-mode .itm-contract-modal-body h1,
html.itm-dark-mode .itm-contract-modal-body h2,
html.itm-dark-mode .itm-contract-modal .padding20 h1,
html.itm-dark-mode .itm-contract-modal .padding20 h2 {
    color: #f8fafc !important;
}

html.itm-dark-mode .itm-contract-modal.iziModal,
html.itm-dark-mode #contract1_modal.iziModal,
html.itm-dark-mode #contract2_modal.iziModal {
    border-color: #334155 !important;
}

@media (max-width: 900px) {
    body.master-theme .itm-checkout-page .sepet {
        grid-template-columns: 1fr !important;
    }

    body.master-theme .itm-checkout-page .sepetright {
        position: static !important;
    }

    body.master-theme .itm-checkout-pay-page .itm-payment-methods-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 640px) {
    body.master-theme .itm-basket-page .sepetbaslik > div,
    body.master-theme .itm-basket-page .sepetlistcon {
        grid-template-columns: 1fr !important;
    }

    body.master-theme .itm-basket-page .uhperiyod,
    body.master-theme .itm-basket-page .uhtutar {
        text-align: left !important;
    }

    body.master-theme .itm-basket-page .uhtutar h4 {
        text-align: left !important;
    }
}

/* ─── Ödeme sonuç sayfası ─── */
.itm-payment-result-page {
    max-width: 640px;
    margin: 32px auto 64px;
    padding: 0 16px;
}

.itm-payment-result-card {
    text-align: center;
    padding: 40px 32px 36px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 16px 48px -24px rgba(15, 23, 42, 0.18);
}

.itm-payment-result-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.1);
    border: 2px solid rgba(34, 197, 94, 0.2);
}

.itm-payment-result-icon img {
    display: block;
    width: 56px;
    height: auto;
}

.itm-payment-result-page--failed .itm-payment-result-icon,
.itm-payment-result-icon--failed {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
}

.itm-payment-result-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #15803d;
    background: rgba(34, 197, 94, 0.12);
}

.itm-payment-result-badge--failed {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.1);
}

.itm-payment-result-title {
    margin: 0 0 12px;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.35;
    color: #15803d;
    letter-spacing: -0.02em;
}

.itm-payment-result-title--failed {
    color: #dc2626;
}

.itm-payment-result-text {
    max-width: 420px;
    margin: 0 auto 24px;
    font-size: 0.92rem;
    line-height: 1.65;
    color: #64748b;
}

.itm-payment-result-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    padding: 13px 28px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none !important;
    background: linear-gradient(135deg, #0ea5e9, #22d3ee);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.32);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.itm-payment-result-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.38);
    color: #fff !important;
}

html.itm-dark-mode .itm-payment-result-card {
    background: #0f172a;
    border-color: #334155;
}

html.itm-dark-mode .itm-payment-result-title {
    color: #4ade80;
}

html.itm-dark-mode .itm-payment-result-title--failed {
    color: #f87171;
}

html.itm-dark-mode .itm-payment-result-text {
    color: #94a3b8;
}

@media (max-width: 640px) {
    .itm-payment-result-card {
        padding: 32px 20px 28px;
    }

    .itm-payment-result-title {
        font-size: 1.15rem;
    }
}
