/**/ .cart-address-dialog { box-sizing: border-box; width: min(720px, calc(100% - 32px)); max-height: 90vh; max-height: 90dvh; margin: auto; padding: 0; border: 1px solid #dce7ee; border-radius: 24px; background: #fff; color: #123056; font-family: inherit; box-shadow: 0 28px 90px #0c23414d; overflow-y: auto; overscroll-behavior: contain; text-align: right; } .cart-address-dialog * { box-sizing: border-box; } .cart-address-dialog::backdrop { background: #0b203e99; backdrop-filter: blur(5px); } html:has(.cart-address-dialog[open]) { overflow: hidden; } .delivery-dialog-head { display: flex; align-items: center; gap: 14px; position: sticky; top: 0; z-index: 2; padding: 22px 26px; background: #fff; border-bottom: 1px solid #edf2f6; } .delivery-dialog-icon { display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; background: #eaf8fb; color: #009eb7; font-size: 20px; } .delivery-dialog-head h2 { font-size: 20px; line-height: 1.7; margin: 0; font-weight: 800; color: #123056; } .delivery-dialog-head p { font-size: 13px; margin: 3px 0 0; color: #61748b; } .delivery-close { margin-inline-start: auto; display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f0f4f8; color: #3d5a80; cursor: pointer; font-size: 18px; } .delivery-dialog-body { padding: 20px 26px 0; } .delivery-dialog-body h3 { margin: 0 0 12px; font-size: 15px; } .delivery-message { padding: 12px 14px; margin: 0 0 16px; border: 1px solid #f5cccc; border-radius: 12px; background: #fff3f3; color: #9c2929; font-size: 13px; line-height: 1.8; } .delivery-message[hidden] { display: none; } .delivery-message.is-success { color: #126751; border-color: #b8e5d8; background: #edfaf5; } .delivery-saved-list { display: grid; gap: 10px; margin-bottom: 20px; } .delivery-saved { width: 100%; text-align: right; display: grid; gap: 8px; border: 1px solid #dce7ee; border-radius: 14px; padding: 15px; background: #fff; color: #38506e; font: inherit; font-size: 13px; line-height: 1.9; cursor: pointer; } .delivery-saved.is-selected { border-color: #00a8c5; background: #f1fbfd; box-shadow: 0 0 0 1px #00a8c5; } .delivery-saved-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .delivery-saved-top > span { color: #008ba4; font-size: 12px; white-space: nowrap; } .delivery-saved small { color: #6c7e92; font-size: 11px; } .delivery-new > summary { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 14px 0; font-weight: 700; font-size: 14px; list-style: none; } .delivery-new > summary::-webkit-details-marker { display: none; } .delivery-new > summary > i:last-child { margin-inline-start: auto; font-size: 11px; } .delivery-new[open] > summary > i:last-child { transform: rotate(180deg); } .delivery-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; padding-top: 8px; } .delivery-field { display: flex; flex-direction: column; min-width: 0; gap: 7px; } .delivery-field-wide { grid-column: 1/-1; } .delivery-field label { font-size: 13px; font-weight: 600; color: #123056; } .delivery-field input, .delivery-field select, .delivery-field textarea { width: 100%; min-height: 48px; margin: 0; padding: 11px 13px; border: 1px solid #d8e2eb; border-radius: 11px; background: #fbfcfe; color: #123056; font: inherit; font-size: 14px; outline: none; transition: border-color 0.15s, box-shadow 0.15s; } .delivery-field textarea { resize: vertical; min-height: 90px; line-height: 1.9; } .delivery-field input::placeholder, .delivery-field textarea::placeholder { color: #8a9aad; font-size: 13px; } .delivery-field :is(input, select, textarea):focus { border-color: #00a8c5; box-shadow: 0 0 0 3px #00a8c51a; background: #fff; } .delivery-field [aria-invalid="true"] { border-color: #cb4949; } .delivery-error { color: #b33030; font-size: 11px; line-height: 1.6; } .delivery-error:empty { display: none; } .delivery-helper { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 2; color: #6c7e92; margin: 22px 0 0; } .delivery-helper i { color: #00a8c5; margin-top: 5px; } .delivery-form-actions { display: flex; gap: 12px; align-items: center; padding: 22px 0; margin-top: 18px; border-top: 1px solid #edf2f6; background: #fff; } .delivery-submit, .delivery-cancel { font: inherit; font-size: 14px; font-weight: 700; padding: 13px 18px; min-height: 48px; border: 0; border-radius: 12px; cursor: pointer; } .delivery-submit { margin-inline-start: auto; background: #123056; color: #fff; display: flex; align-items: center; justify-content: center; gap: 9px; } .delivery-submit:hover { background: #164872; } .delivery-cancel { background: #f0f4f8; color: #48607c; } .cart-address-dialog button:disabled { opacity: 0.6; cursor: wait; } .cart-address-dialog :focus-visible { outline: 3px solid #00a8c5; outline-offset: 3px; } .cart-shipping-hint { font-size: 12px; line-height: 1.8; color: #61748b; margin: 10px 0 0; } .cart-login-note { display: flex; align-items: center; gap: 12px; margin: 20px 0 12px; padding: 14px; border-radius: 12px; background: #f0f8fb; color: #38506e; } .cart-login-note p { font-size: 13px; line-height: 1.9; margin: 0; } .cart-login-note i { color: #00a8c5; } .cart-login-link { text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 12px; } .cart-delivery-preview { display: flex; gap: 10px; padding: 14px 0 0; line-height: 1.8; } .cart-delivery-preview > i { color: #00a8c5; margin-top: 5px; } .cart-delivery-preview div { display: grid; gap: 3px; font-size: 13px; min-width: 0; } .cart-delivery-preview span { font-size: 12px; color: #61748b; overflow-wrap: anywhere; } @media (max-width: 600px) { .cart-address-dialog { width: calc(100% - 20px); border-radius: 20px; max-height: 94dvh; } .delivery-dialog-head { padding: 16px; gap: 10px; } .delivery-dialog-head h2 { font-size: 17px; } .delivery-dialog-head p { font-size: 11px; } .delivery-dialog-icon { width: 38px; height: 38px; } .delivery-dialog-body { padding: 12px 16px 0; } .delivery-fields { grid-template-columns: 1fr; gap: 13px; } .delivery-field-wide { grid-column: auto; } .delivery-field :is(input, select, textarea) { font-size: 16px; } .delivery-helper { margin-top: 0; } .delivery-form-actions { position: sticky; bottom: 0; padding: 14px 0; margin-top: 16px; z-index: 1; } .delivery-submit { flex: 1; font-size: 13px; } .delivery-cancel { font-size: 13px; padding-inline: 14px; } .delivery-saved-top { gap: 8px; } .delivery-saved-top > span { font-size: 11px; } } /**/ @media (min-width: 1100px) { .cart-items-wrapper { --cart-columns: 100px minmax(0, 2fr) minmax(0, 1fr) 140px minmax(0, 1fr) 60px; } .cart-items-header, .cart-items-list .cart-item { display: grid; grid-template-columns: var(--cart-columns); grid-template-areas: none; align-items: center; gap: 16px; padding-inline: 30px; width: 100%; margin-inline: 0; box-sizing: border-box; direction: rtl; } .cart-items-list { padding-inline: 0; } .cart-items-header > *, .cart-items-list .cart-item > * { grid-row: 1; min-width: 0; } /**/ .cart-items-header .col-product { grid-column: 1 / 3; text-align: right; } /**/ .cart-item .cart-item-image { grid-column: 1; } /**/ .cart-item .cart-item-details { grid-column: 2; text-align: right; } /**/ .cart-items-header .col-price, .cart-item .cart-item-price { grid-column: 3; text-align: center; justify-self: center; } /**/ .cart-items-header .col-quantity, .cart-item .cart-item-quantity { grid-column: 4; text-align: center; justify-self: center; } /**/ .cart-items-header .col-total, .cart-item .cart-item-total { grid-column: 5; text-align: center; justify-self: center; } /**/ .cart-items-header .col-action, .cart-item .cart-item-actions { grid-column: 6; text-align: center; justify-self: center; } .cart-items-header span { white-space: nowrap; } }