/* TabuTech Checkout 13.3.3 */
/* TabuTech Checkout 13.0.0 — responsive redesign (Elementor breakpoints: mobile <=767, tablet 768-1024, desktop >=1025) */
/* TabuTech Checkout v12 - Complete Styles */

:root {
    --primary-color: #F01E64;
    --primary-dark: #C2124D;
    --success-color: #10b981;
    --error-color: #ef4444;
    --border-color: #e5e7eb;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, .06);
    --shadow-lg: 0 12px 40px rgba(15, 23, 42, .10);
}

* { box-sizing: border-box; }

/* Container */
.tabutech-checkout-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tabutech-checkout-widget {
    background: white;
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, .05);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* Empty Cart */
.tabutech-empty-cart {
    padding: 40px;
    text-align: center;
    background: #fee2e2;
    border: 2px solid #ef4444;
    border-radius: 12px;
    color: #991b1b;
}

/* Header */
.checkout-header {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
    overflow: hidden;
}

.checkout-header::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -10%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255,255,255,.12) 0%, transparent 70%);
    pointer-events: none;
}

.checkout-header h2 {
    position: relative;
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -.01em;
}

/* Progress */
.checkout-progress {
    display: flex;
    justify-content: space-between;
    padding: 32px 40px;
    background: var(--bg-light);
    position: relative;
}

.checkout-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 60px;
    right: 60px;
    height: 3px;
    border-radius: 2px;
    background: var(--border-color);
    transform: translateY(-50%);
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: white;
    border: 2.5px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 17px;
    color: var(--text-light);
    margin-bottom: 10px;
    transition: all 0.3s;
}

.progress-step.active .step-circle {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.12);
    box-shadow: 0 0 0 5px rgba(240, 30, 100, 0.14), 0 4px 12px rgba(240, 30, 100, 0.3);
}

.progress-step.completed .step-circle {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, .25);
}

.progress-step.completed .step-circle::after {
    content: '✓';
    font-size: 19px;
}

.step-label {
    font-size: 12.5px;
    color: var(--text-light);
    text-align: center;
    line-height: 1.3;
    transition: color .3s;
}

.progress-step.active .step-label {
    color: var(--primary-color);
    font-weight: 700;
}

/* Content */
.checkout-content {
    padding: 40px;
}

.tabutech-step {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-heading {
    position: relative;
    font-size: 22px;
    color: var(--text-color);
    margin: 0 0 30px 0;
    padding-left: 14px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.step-heading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 4px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
}

/* Form - Vertical Layout */
.form-row {
    display: block;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
}

.required {
    color: var(--error-color);
}

.tabutech-step input[type="text"],
.tabutech-step input[type="email"],
.tabutech-step input[type="tel"],
.tabutech-step input[type="password"],
.tabutech-step select,
.tabutech-step textarea {
    width: 100% !important;
    padding: 13px 16px !important;
    border: 1.5px solid var(--border-color) !important;
    border-radius: 11px !important;
    font-size: 15px !important;
    color: var(--text-color) !important;
    transition: border-color .2s, box-shadow .2s, background .2s;
    background: #fafafa !important;
    box-sizing: border-box !important;
    display: block !important;
    height: auto !important;
    min-height: 48px !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.tabutech-step input:hover,
.tabutech-step select:hover,
.tabutech-step textarea:hover {
    border-color: #c7cbd1 !important;
}

.tabutech-step input:focus,
.tabutech-step select:focus,
.tabutech-step textarea:focus {
    outline: none;
    border-color: var(--primary-color) !important;
    background: white !important;
    box-shadow: 0 0 0 4px rgba(240, 30, 100, 0.1);
}

.tabutech-step input.error,
.tabutech-step select.error,
.tabutech-step textarea.error {
    border-color: var(--error-color);
    animation: shake 0.4s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.tabutech-step select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%236b7280' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.tabutech-step textarea {
    min-height: 80px;
    resize: vertical;
}

.field-note {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 6px;
    display: block;
}

.field-warning {
    background: #fffbeb;
    border: 2px solid #f59e0b;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 20px;
    font-size: 13px;
    color: #92400e;
    line-height: 1.5;
}

.field-warning strong {
    font-weight: 700;
    display: inline-block;
    margin-right: 5px;
}

/* Payment Methods — modern card design */
.payment-methods {
    display: grid;
    gap: 12px;
}

.payment-option {
    position: relative;
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-option label {
    display: flex;
    align-items: center;
    padding: 16px;
    padding-right: 46px;
    border: 1.5px solid var(--border-color);
    border-radius: 16px;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, background .2s, transform .15s;
    background: white;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    position: relative;
}

/* Custom radio indicator — top-right circle */
.payment-option label::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: white;
    transition: all .2s;
    box-sizing: border-box;
}

.payment-option input:checked + label {
    border-color: var(--primary-color);
    background: rgba(240, 30, 100, 0.04);
    box-shadow: 0 2px 10px rgba(240, 30, 100, 0.12);
}

.payment-option input:checked + label::after {
    border-color: var(--primary-color);
    background: var(--primary-color);
    box-shadow: inset 0 0 0 4px white;
}

.payment-option input:focus-visible + label {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.payment-option label:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 14px rgba(16, 24, 40, .08);
}

.payment-option label:active {
    transform: scale(0.99);
}

/* Logo / icon badge — fixed square tile, works for square icons AND wide bank logos */
.payment-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 13px;
    background: #f8fafc;
    border: 1px solid #eef0f4;
    margin-right: 14px;
    font-size: 26px;
    overflow: hidden;
    padding: 7px;
    box-sizing: border-box;
}

.payment-info {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    gap: 3px;
}

.payment-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-color);
    overflow-wrap: break-word;
    word-break: break-word;
}

.payment-desc {
    font-size: 12.5px;
    color: var(--text-light);
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Order Summary */
.order-summary {
    background: #fbfbfc;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.summary-section {
    margin-bottom: 22px;
}

.summary-section:last-child {
    margin-bottom: 0;
}

.summary-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-color);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1.5px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    font-size: 14px;
    gap: 10px;
}

.summary-label {
    color: var(--text-light);
    flex-shrink: 0;
}

.summary-value {
    font-weight: 600;
    color: var(--text-color);
    text-align: right;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

.summary-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
}

.summary-total .summary-value {
    color: var(--primary-color);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    gap: 10px;
}

.cart-item:last-child {
    border-bottom: none;
}

.item-info {
    flex: 1 1 auto;
    min-width: 0;
}

.item-name {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
    overflow-wrap: break-word;
    word-break: break-word;
}

.item-quantity {
    font-size: 13px;
    color: var(--text-light);
}

.item-price {
    font-weight: 700;
    color: var(--text-color);
    white-space: nowrap;
    margin-left: 12px;
    flex-shrink: 0;
}

/* Navigation Buttons */
.checkout-navigation {
    display: flex;
    gap: 14px;
    margin-top: 30px;
    justify-content: space-between;
}

.btn-prev,
.btn-next,
.btn-submit {
    flex: 1;
    padding: 16px 32px;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s;
    letter-spacing: -.005em;
}

.btn-prev {
    background: white;
    color: var(--text-color);
    border: 1.5px solid var(--border-color);
}

.btn-prev:hover {
    background: var(--bg-light);
    border-color: #d1d5db;
}

.btn-next,
.btn-submit {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 6px 18px rgba(240, 30, 100, 0.28);
}

.btn-next:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(240, 30, 100, 0.38);
}

.btn-next:active,
.btn-submit:active {
    transform: translateY(0);
}

.btn-next:disabled,
.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-submit.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    display: inline-block;
    margin-left: 10px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Messages */
.form-messages {
    margin-top: 20px;
}

.message {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message.success {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--success-color);
    color: #065f46;
}

.message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid var(--error-color);
    color: #991b1b;
}

.message.info {
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid #3b82f6;
    color: #1e40af;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .checkout-progress {
        padding: 20px 15px;
    }
    
    .checkout-progress::before {
        left: 40px;
        right: 40px;
    }
    
    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .step-label {
        font-size: 11px;
    }
    
    .checkout-content {
        padding: 25px 20px;
    }
    
    .step-heading {
        font-size: 20px;
    }
    
    .checkout-navigation {
        flex-direction: column;
    }
    
    /* Next/Submit visually first, Back below — DOM order (click handlers)
       stays untouched, this only reorders the visual stacking */
    .btn-next,
    .btn-submit {
        order: 1;
    }
    .btn-prev {
        order: 2;
    }
    
    .btn-prev,
    .btn-next,
    .btn-submit {
        width: 100%;
    }
}

/* Loading Overlay */
.tabutech-loading-overlay,
.tabutech-processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    animation: fadeIn 0.3s ease-out;
}

.tabutech-loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Overlay Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes scaleIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}


/* ============================================
   STEP 1 — GUEST FORM
   ============================================ */

.tt-step1-guest {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 16px;
}

.tt-checkout-form-header {
    margin-bottom: 24px;
}

.tt-checkout-form-header h3 {
    color: var(--text-color);
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px;
}

.tt-checkout-form-header p {
    color: var(--text-light);
    font-size: 13px;
    margin: 0;
}

.tt-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}

.tt-form-group {
    margin-bottom: 18px;
    position: relative;
}

.tt-form-group label {
    display: block;
    color: var(--text-color);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 7px;
}

.tt-req { color: var(--error-color); }

.tt-co-input {
    width: 100% !important;
    padding: 11px 14px !important;
    background: white !important;
    border: 2px solid var(--border-color) !important;
    border-radius: 8px !important;
    color: var(--text-color) !important;
    font-size: 14px !important;
    outline: none !important;
    transition: border-color .22s, box-shadow .22s;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    display: block !important;
    height: auto !important;
    min-height: 44px !important;
}

.tt-co-input::placeholder { color: var(--text-light); opacity: .8; }

.tt-co-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(240, 30, 100, .1);
}

.tt-co-input.error   { border-color: var(--error-color) !important; animation: shake .3s ease; }
.tt-co-input.success { border-color: var(--success-color) !important; }

.tt-id-type-toggle {
    display: flex;
    gap: 18px;
    margin-bottom: 9px;
}

.tt-id-radio {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text-color);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.tt-id-radio input[type="radio"] {
    accent-color: var(--primary-color);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.tt-pass-wrap { position: relative; }
.tt-pass-wrap .tt-co-input { padding-right: 42px; }

.tt-toggle-pass {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    padding: 3px;
    display: flex;
    align-items: center;
    transition: color .2s;
}
.tt-toggle-pass:hover { color: var(--text-color); }

.tt-co-error {
    display: none;
    font-size: 11px;
    color: var(--error-color);
    margin-top: 4px;
}

.tt-step1-note {
    margin-top: 16px;
    padding: 10px 14px;
    background: rgba(240, 30, 100, .06);
    border: 1px solid rgba(240, 30, 100, .2);
    border-radius: 8px;
    color: var(--primary-color);
    font-size: 12px;
}

@media (max-width: 600px) {
    .tt-form-row-2 { grid-template-columns: 1fr; gap: 0; margin-bottom: 0; }
    .tt-form-row-2 .tt-form-group { margin-bottom: 16px; }
    .tt-step1-guest { padding: 18px 14px; }
    .tt-id-type-toggle { flex-direction: column; gap: 10px; }
}


/* ── Saved Address Card ────────────────────────────────── */
.tt-saved-addr-box {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
}
.tt-saved-addr-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #94a3b8;
    margin-bottom: 8px;
}
.tt-saved-addr-text {
    font-size: 14px;
    color: #0f172a;
    line-height: 1.7;
    margin-bottom: 14px;
}
.tt-saved-addr-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.tt-addr-radio-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
}
.tt-addr-radio-label input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color, #1d4ed8);
    cursor: pointer;
}
.tt-new-addr-form {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}

/* ══ SHIPPING SPLIT PANEL ══════════════════════════════════════ */
#tt-shipping-result {
    margin-top: 16px;
}
.tt-shipping-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: stretch;
}
@media (max-width: 540px) {
    .tt-shipping-split {
        grid-template-columns: 1fr;
    }
}
.tt-shipping-left,
.tt-shipping-right {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
}
.tt-shipping-right {
    background: #f0fdf4;
    border-color: #86efac;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}
.tt-shipping-panel-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .08em !important;
    color: #94a3b8 !important;
    margin-bottom: 8px !important;
}
/* item rows in left panel */
.tt-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid #e9ecef;
    gap: 8px;
}
.tt-item-row:last-child {
    border-bottom: none;
}
.tt-item-name {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    flex: 1;
}
.tt-item-qty {
    font-size: 12px !important;
    color: #64748b !important;
}
.tt-item-weight {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #374151 !important;
    background: #e2e8f0;
    border-radius: 4px;
    padding: 2px 7px;
    white-space: nowrap;
}
.tt-total-weight-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 2px solid #cbd5e1;
}
.tt-total-weight-label {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #64748b !important;
}
.tt-total-weight-value {
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    background: #e0f2fe;
    border-radius: 4px;
    padding: 2px 8px;
}
/* right panel: cost */
.tt-cost-value {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #16a34a !important;
    line-height: 1.1;
}
.tt-cost-free {
    color: #059669 !important;
    font-size: 18px !important;
}
.tt-days-value {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #166534 !important;
    background: #dcfce7;
    border-radius: 6px;
    padding: 4px 10px;
}

/* ══ PAYMENT LOGO IMAGE — fits inside the .payment-icon badge above ══ */
.payment-logo-img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}

/* ── Policy Agreement Checkbox (Step 3) ─────────────────────────────── */
.tt-policy-agreement {
    margin-top: 20px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    transition: border-color .2s, background .2s;
}
.tt-policy-agreement:has(input:checked) {
    border-color: rgba(240, 30, 100, .3);
    background: rgba(240, 30, 100, .03);
}

/* Checkbox lives inside the <label> — clicking anywhere on the label
   (text, links, or the custom box) reliably toggles it in every browser,
   since it's native label-wraps-input behaviour, not CSS-dependent. */
.tt-policy-agreement-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-color, #333);
    cursor: pointer;
}

.tt-policy-agreement-label input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    margin: -1px;
    pointer-events: none;
}

.tt-policy-checkbox-box {
    position: relative;
    width: 21px;
    height: 21px;
    min-width: 21px;
    margin-top: 1px;
    /* მუქი ჩარჩო — ჩანდეს, რომ ეს მოსანიშნი ველია */
    border: 2px solid #1f2937 !important;
    border-radius: 6px;
    background: #ffffff !important;
    flex-shrink: 0;
    transition: all .2s;
}

/* მონიშნულია: მუქი კვადრატი + თეთრი ტიკი */
.tt-policy-agreement-label input:checked ~ .tt-policy-checkbox-box {
    background: #111827 !important;
    border-color: #111827 !important;
}

.tt-policy-agreement-label input:checked ~ .tt-policy-checkbox-box::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.tt-policy-agreement-label input:focus-visible ~ .tt-policy-checkbox-box {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.tt-policy-agreement-label:hover .tt-policy-checkbox-box {
    border-color: #000000 !important;
}

.tt-policy-text a {
    color: var(--primary-color, #5045e9);
    text-decoration: underline;
    font-weight: 600;
}
.tt-policy-text a:hover { opacity: .8; }

.tt-policy-agreement.error {
    border-color: var(--error-color, #dc3545);
    background: rgba(220, 53, 69, .04);
}
.tt-policy-agreement.error .tt-policy-checkbox-box {
    border-color: var(--error-color, #dc3545) !important;
}

/* ============================================
   STEPS 2, 3, 4 — MOBILE OPTIMIZATION
   ============================================ */
@media (max-width: 600px) {
    /* Safety net — nothing should ever cause horizontal scroll */
    .tabutech-checkout-widget { overflow-x: hidden; }

    /* Step 2 — Shipping */
    .tt-saved-addr-box { padding: 14px 16px; }
    .tt-saved-addr-actions { gap: 14px; }
    .tt-shipping-panel-label { font-size: 10px !important; }
    .tt-cost-value { font-size: 22px !important; }
    .tt-item-name { font-size: 12px !important; }

    /* Step 3 — Payment methods */
    .payment-methods { gap: 10px; }
    .payment-option label {
        padding: 12px;
        padding-right: 40px;
    }
    .payment-icon {
        width: 46px;
        height: 46px;
        min-width: 46px;
        margin-right: 12px;
        font-size: 20px;
        padding: 5px;
    }
    .payment-option label::after {
        right: 12px;
        width: 20px;
        height: 20px;
    }
    .payment-name { font-size: 14px; }
    .payment-desc { font-size: 12px; }

    .tt-policy-agreement {
        padding: 12px 14px;
        gap: 8px;
        margin-top: 16px;
    }
    .tt-policy-agreement-label { font-size: 12px; line-height: 1.5; }

    /* Step 4 — Order summary */
    .order-summary { padding: 16px; }
    .summary-section { margin-bottom: 18px; }
    .summary-title { font-size: 14px; margin-bottom: 10px; }
    .summary-row {
        font-size: 13px;
        flex-wrap: wrap;
        gap: 4px;
    }
    .summary-value {
        text-align: right;
        word-break: break-word;
        max-width: 60%;
        margin-left: auto;
    }
    .cart-item { flex-wrap: wrap; gap: 6px; }
    .item-name { font-size: 14px; word-break: break-word; }
    .item-price { margin-left: 0; }
    .summary-total { font-size: 16px; }
}

@media (max-width: 380px) {
    .checkout-content { padding: 18px 14px !important; }
    .order-summary { padding: 12px; }
    .payment-option label { padding: 12px; }
    .step-heading { font-size: 18px !important; }
}


/* ══════════════════════════════════════════════════════════════
   FIELD SYSTEM — one look for every input in every step.
   Covers the legacy .form-group fields (step 2) and .tt-form-group (step 1).
   ":not(#tt-x)" adds ID-level specificity so theme / Elementor-kit form
   styles (pill radius, big fonts, coloured labels) cannot override it.
   ══════════════════════════════════════════════════════════════ */
.tabutech-checkout-widget { --tt-field-h: 48px; --tt-field-fs: 15px; --tt-field-r: 10px; }

.tabutech-checkout-widget .tabutech-step :is(.form-group, .tt-form-group) > label:not(#tt-x) {
    display: block;
    margin: 0 0 6px;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
    color: #374151;
}
.tabutech-checkout-widget .tabutech-step :is(.form-group, .tt-form-group) > label .required:not(#tt-x) { color: var(--error-color); }

.tabutech-checkout-widget .tabutech-step :is(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], select):not(#tt-x) {
    box-sizing: border-box;
    width: 100% !important;
    height: var(--tt-field-h) !important;
    min-height: 0 !important;
    margin: 0;
    padding: 0 14px !important;
    font-size: var(--tt-field-fs) !important;
    line-height: normal;
    color: #1f2937 !important;
    background-color: #fff !important;
    border: 1px solid #d1d5db !important;
    border-radius: var(--tt-field-r) !important;
    box-shadow: none;
}
.tabutech-checkout-widget .tabutech-step select:not(#tt-x) {
    padding-right: 38px !important;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%236b7280' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
}
.tabutech-checkout-widget .tabutech-step textarea:not(#tt-x) {
    box-sizing: border-box;
    width: 100% !important;
    min-height: 96px !important;
    margin: 0;
    padding: 12px 14px !important;
    font-size: var(--tt-field-fs) !important;
    line-height: 1.5;
    color: #1f2937 !important;
    background-color: #fff !important;
    border: 1px solid #d1d5db !important;
    border-radius: var(--tt-field-r) !important;
    box-shadow: none;
    resize: vertical;
}
.tabutech-checkout-widget .tabutech-step .tt-pass-wrap input:not(#tt-x) { padding-right: 46px !important; }
.tabutech-checkout-widget .tabutech-step :is(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], select, textarea):focus:not(#tt-x) {
    outline: none;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 18%, transparent);
}
.tabutech-checkout-widget .tabutech-step :is(input, select, textarea).error:not(#tt-x) { border-color: var(--error-color) !important; }
.tabutech-checkout-widget .tabutech-step :is(.form-group, .tt-form-group):not(#tt-x) { margin-bottom: 16px; }

/* ══════════════════════════════════════════════════════════════
   DESKTOP / TABLET REDESIGN (≥768px; two columns from 1025px)
   slim header + inline stepper, form card + order summary column
   ══════════════════════════════════════════════════════════════ */
.tt-side-summary { display: none; }

/* segmented control (ID type, saved / new address) — shared by all sizes */
.tt-form-group .tt-id-type-toggle,
.tt-saved-addr-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    background: #e9ebf5;
    border-radius: 10px;
}
.tt-form-group .tt-id-type-toggle { margin-bottom: 8px; }
.tt-form-group .tt-id-type-toggle .tt-id-radio,
.tt-saved-addr-actions .tt-addr-radio-label {
    position: relative;
    justify-content: center;
    height: 38px;
    margin: 0;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    text-align: center;
    white-space: nowrap;
}
.tt-id-radio input,
.tt-addr-radio-label input { position: absolute; opacity: 0; pointer-events: none; }
.tt-form-group .tt-id-type-toggle .tt-id-radio:has(input:checked),
.tt-saved-addr-actions .tt-addr-radio-label:has(input:checked) {
    background: #fff;
    color: var(--text-color);
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .1);
}
.tt-id-radio:has(input:focus-visible),
.tt-addr-radio-label:has(input:focus-visible) { outline: 2px solid var(--primary-color); outline-offset: 1px; }

@media (min-width: 768px) {

    .tabutech-checkout-container { max-width: 1160px; margin: 32px auto; padding: 0 20px; }

    .tabutech-checkout-widget {
        display: grid;
        grid-template-columns: max-content minmax(0, 1fr);
        align-items: center;
        column-gap: 24px;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
        padding: 0 !important;
    }

    /* title left, stepper right */
    .checkout-header {
        grid-column: 1;
        background: none !important;
        color: var(--text-color);
        padding: 0 0 24px !important;
        text-align: left;
    }
    .checkout-header::before { display: none; }
    .checkout-header h2 { font-size: clamp(22px, 1.2vw + 12px, 28px) !important; font-weight: 700; letter-spacing: 0; color: var(--text-color) !important; }

    .checkout-progress {
        grid-column: 2;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 12px;
        padding: 0 0 24px !important;
        background: none !important;
    }
    .checkout-progress::before { display: none; }
    .tt-mob-stepline { display: none; }
    .progress-step {
        flex: none;
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
    .progress-step ~ .progress-step::before {
        content: '';
        width: 36px;
        height: 2px;
        margin-right: 4px;
        border-radius: 2px;
        background: #d9dce3;
    }
    .progress-step.active::before,
    .progress-step.completed::before { background: var(--success-color); }
    .step-circle {
        width: 30px;
        height: 30px;
        margin: 0;
        border-width: 2px;
        font-size: 14px;
    }
    .progress-step.active .step-circle { transform: none; box-shadow: none; }
    .progress-step.completed .step-circle { font-size: 0; box-shadow: none; }
    .progress-step.completed .step-circle::after { font-size: 16px; }
    .step-label { font-size: 14px; text-align: left; }
    .progress-step.active .step-label { font-weight: 700; color: var(--text-color); }

    /* form card + summary column */
    .checkout-content {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 380px;
        gap: 24px;
        align-items: start;
        padding: 0 !important;
        background: none;
    }
    .tabutech-checkout-form {
        min-width: 0;
        padding: 32px;
        background: #fff;
        border: 1px solid var(--border-color);
        border-radius: 16px;
    }
    .step-heading { margin: 0 0 20px; padding-left: 0; font-size: clamp(18px, 0.6vw + 14px, 22px); }
    .step-heading::before { display: none; }
    .tt-mob-chip { display: none; }


    /* saved address card */
    .tt-saved-addr-box {
        padding: 16px 18px;
        margin-bottom: 20px;
        background: #f8f9ff;
        border: 1px solid #dfe3ff;
        border-radius: 12px;
        box-shadow: none;
    }
    .tt-saved-addr-text { margin-bottom: 12px; }

    /* shipping result: one calm card (weight now lives in the summary column) */
    .tt-shipping-split { grid-template-columns: 1fr; }
    .tt-shipping-left { display: none; }

    .order-summary { padding: 0; border: 0; background: none; box-shadow: none; }
    .summary-section { margin-bottom: 16px; padding: 16px 18px; border-radius: 12px; }

    /* payment + policy */
    .payment-option label { padding: 16px 18px; border-radius: 12px; }
    .tt-policy-agreement {
        margin-top: 24px;
        padding: 16px 18px;
        background: #fafafa;
        border: 1px solid #eef0f4;
        border-radius: 12px;
    }

    /* navigation: back left, continue right */
    .checkout-navigation {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 12px;
        margin-top: 28px;
        padding-top: 24px;
        border-top: 1px solid #eef0f4;
    }
    .btn-prev, .btn-next, .btn-submit {
        order: 0 !important;
        flex: none;
        width: auto;
        height: 48px;
        padding: 0 28px !important;
        border-radius: 12px !important;
        font-size: 15px;
        box-shadow: none;
    }
    .btn-next, .btn-submit {
        min-width: 200px;
        margin-left: auto;
        background: var(--primary-color);
        background-image: none;
    }

    /* order summary column */
    .tt-side-summary { display: block; position: sticky; top: 24px; }
    .tt-side-card {
        padding: 24px;
        background: #fff;
        border: 1px solid var(--border-color);
        border-radius: 16px;
    }
    .tt-side-title { margin-bottom: 16px; font-size: 16px; font-weight: 700; }
    .tt-side-item {
        display: flex;
        align-items: center;
        gap: 14px;
        padding-bottom: 16px;
        margin-bottom: 16px;
        border-bottom: 1px solid #eef0f4;
    }
    .tt-side-thumb {
        width: 64px; height: 64px; flex: 0 0 64px;
        border-radius: 10px; overflow: hidden; background: #f3f4f6;
    }
    .tt-side-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .tt-side-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
    .tt-side-name { font-size: 14px; font-weight: 600; line-height: 1.4; }
    .tt-side-qty { font-size: 13px; color: var(--text-light); }
    .tt-side-line { font-size: 14px; font-weight: 600; white-space: nowrap; }
    .tt-side-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; }
    .tt-side-row > span:first-child { color: var(--text-light); }
    .tt-side-row > span:last-child { font-weight: 600; }
    .tt-side-row .is-free { color: #15803d; }
    .tt-side-weight { font-size: 12px; }
    .tt-side-weight > span { color: #9ca3af !important; font-weight: 400 !important; }
    .tt-side-total {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-top: 10px;
        padding-top: 14px;
        border-top: 1px solid #eef0f4;
    }
    .tt-side-total > span:first-child { font-size: 15px; font-weight: 700; }
    #tt-side-total { font-size: clamp(20px, 0.8vw + 14px, 26px); font-weight: 700; }
}

/* Only the current step keeps its name unless the checkout column is really wide
   (container query = based on the checkout's own width, not the screen). */
@media (min-width: 768px) {
    .tabutech-checkout-container { container-type: inline-size; container-name: ttco; }
    .progress-step:not(.active) .step-label { display: none; }
}
@container ttco (min-width: 1200px) {
    .progress-step:not(.active) .step-label { display: block; }
}

/* tablet: summary goes under the form */
@media (min-width: 768px) and (max-width: 1024px) {
    .checkout-content { grid-template-columns: 1fr; }
    .tt-side-summary { position: static; }
}

/* ══════════════════════════════════════════════════════════════
   MOBILE REDESIGN (≤767px = Elementor mobile) — compact, edge-to-edge, sticky action bar
   Desktop is untouched: everything below lives inside the media query,
   the mobile-only helper elements are hidden here.
   ══════════════════════════════════════════════════════════════ */
.tt-mob-stepline,
.tt-mob-chip { display: none; }

@media (max-width: 767px) {

    /* no card chrome. !important: Elementor's style controls inject rules with higher
       specificity (background, padding, radius of the widget / header) and would win otherwise */
    .tabutech-checkout-container {
        width: 100%;
        max-width: 100% !important;
        margin: 0;
        padding: 0;
    }
    .tabutech-checkout-widget {
        border-radius: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
        background: #f9fafb !important;
        padding: 0 !important;
    }

    /* slim header */
    .checkout-header { display: none !important; }

    /* progress: title + "ნაბიჯი N / M" + segmented bar */
    .checkout-progress {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin: 0;
        padding: 14px 16px 14px !important;
        background: #fff !important;
        border-bottom: 1px solid var(--border-color);
    }
    .checkout-progress::before { display: none; }
    .tt-mob-stepline {
        display: flex;
        flex: 0 0 100%;
        align-items: baseline;
        justify-content: space-between;
        margin-bottom: 2px;
    }
    .tt-msl-title { font-size: 16px; font-weight: 700; color: var(--text-color); line-height: 1.3; }
    .tt-msl-count { font-size: 13px; color: var(--text-light); white-space: nowrap; }
    .tt-mob-stepline { margin-bottom: 4px; }
    .progress-step {
        flex: 1 1 0;
        height: 4px;
        min-width: 0;
        margin: 0;
        padding: 0;
        border-radius: 2px;
        background: #d1d5db;
    }
    .progress-step::before, .progress-step::after { display: none !important; }
    .progress-step .step-circle,
    .progress-step .step-label { display: none; }
    .progress-step.active,
    .progress-step.completed { background: var(--primary-color); }

    /* content */
    .checkout-content { padding: 16px !important; }
    .step-heading { display: none; }
    .tt-checkout-form-header { margin-bottom: 12px; }
    .tt-checkout-form-header h3 { display: none; }
    .tt-checkout-form-header p { margin: 0; font-size: 12px; color: var(--text-light); }
    .tt-step1-guest {
        padding: 0;
        border: 0;
        border-radius: 0;
        background: none;
        box-shadow: none;
    }
    .order-summary {
        padding: 0;
        border: 0;
        border-radius: 0;
        background: none;
        box-shadow: none;
    }

    /* order chip (step 2) */
    .tt-mob-chip {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 56px;
        padding: 8px 14px;
        margin-bottom: 14px;
        background: #fff;
        border: 1px solid var(--border-color);
        border-radius: 12px;
    }
    .tt-mob-chip-img {
        width: 40px; height: 40px; flex: 0 0 40px;
        border-radius: 8px; overflow: hidden; background: #f3f4f6;
    }
    .tt-mob-chip-img { background: #fff; border: 1px solid #eef0f4; }
    .tt-mob-chip-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
    .tt-mob-chip-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
    .tt-mob-chip-name {
        font-size: 13px; font-weight: 600; color: var(--text-color);
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .tt-mob-chip-count { font-size: 12px; color: var(--text-light); }
    .tt-mob-chip-price { font-size: 15px; font-weight: 700; white-space: nowrap; }

    /* fields: see FIELD SYSTEM above (16px on phones = no iOS zoom) */
    .tabutech-checkout-widget { --tt-field-fs: 16px; }
    .tt-form-row-2:has(input[name="first_name"]) {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    /* segmented controls: ID type, saved/new address */
    .tt-form-group .tt-id-type-toggle,
    .tt-saved-addr-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px;
        padding: 4px;
        margin-bottom: 8px;
        background: #eef0f3;
        border-radius: 10px;
    }
    .tt-saved-addr-actions { margin-bottom: 0; }
    .tt-form-group .tt-id-type-toggle .tt-id-radio,
    .tt-saved-addr-actions .tt-addr-radio-label {
        position: relative;
        justify-content: center;
        height: 40px;
        margin: 0;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        color: var(--text-light);
        text-align: center;
    }
    .tt-id-radio input,
    .tt-addr-radio-label input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }
    .tt-form-group .tt-id-type-toggle .tt-id-radio:has(input:checked),
    .tt-saved-addr-actions .tt-addr-radio-label:has(input:checked) {
        background: #fff;
        color: var(--text-color);
        font-weight: 700;
        box-shadow: 0 1px 2px rgba(15, 23, 42, .1);
    }
    .tt-id-radio:has(input:focus-visible),
    .tt-addr-radio-label:has(input:focus-visible) { outline: 2px solid var(--primary-dark); outline-offset: 1px; }

    .tt-form-group .tt-id-type-toggle .tt-id-radio,
    .tt-saved-addr-actions .tt-addr-radio-label {
        height: auto;
        min-height: 40px;
        padding: 6px 8px;
        font-size: 13px;
        line-height: 1.25;
        white-space: normal;
    }
    .tt-saved-addr-box {
        padding: 14px;
        margin-bottom: 14px;
        background: #fff;
        border: 1px solid var(--border-color);
        border-radius: 12px;
        box-shadow: none;
    }

    /* step 3: payment options */
    .payment-option label { padding: 12px 44px 12px 12px; border-radius: 12px; }
    .payment-icon { width: 40px; height: 40px; min-width: 40px; margin-right: 12px; }
    .tt-policy-agreement { margin-top: 14px; }

    /* step 4: summary as compact cards */
    .order-summary { padding: 0; }
    .summary-section {
        margin-bottom: 12px;
        padding: 12px 14px;
        background: #fff;
        border: 1px solid var(--border-color);
        border-radius: 12px;
    }
    .summary-title {
        margin-bottom: 8px;
        padding-bottom: 0;
        border-bottom: 0;
        font-size: 12px;
        font-weight: 600;
        color: var(--text-light);
    }
    .summary-row { padding: 6px 0; font-size: 13px; }
    .summary-total { font-size: 18px; }

    .form-messages { margin-top: 12px; }

    /* action bar: sticks to the bottom of the screen while the form is on screen
       (sticky, not fixed: if a theme wrapper blocks sticky it simply stays at the end of the form) */
    .checkout-navigation {
        position: sticky;
        bottom: var(--tt-bottom-offset, 0px);
        z-index: 50;
        display: flex;
        flex-direction: row;
        gap: 10px;
        margin: 16px -16px 0;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
        background: #fff;
        border-top: 1px solid var(--border-color);
    }
    .btn-prev, .btn-next, .btn-submit {
        order: 0 !important;        /* the older 768px rules put Back AFTER Next */
        width: auto;
        height: 52px;
        padding: 0 16px !important;
        border-radius: 12px !important;
        font-size: 16px;
        box-shadow: none;
    }
    .btn-prev { flex: 0 0 110px; }
    .btn-next, .btn-submit { flex: 1; margin-left: 0; }
}


/* ══════════════════════════════════════════════════════════════
   SHIPPING RESULT — one quiet row (no weight panel, no green box)
   ══════════════════════════════════════════════════════════════ */
.tabutech-checkout-widget .tt-shipping-split:not(#tt-x) { display: block; }
.tabutech-checkout-widget .tt-shipping-left:not(#tt-x) { display: none; }
.tabutech-checkout-widget .tt-shipping-right:not(#tt-x) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    row-gap: 2px;
    padding: 12px 14px;
    background: #f9fafb;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: none;
}
.tabutech-checkout-widget .tt-shipping-right .tt-shipping-panel-label:not(#tt-x) {
    grid-column: 1; grid-row: 1;
    margin: 0; padding: 0;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: #374151 !important;
}
.tabutech-checkout-widget .tt-shipping-right .tt-cost-value:not(#tt-x) {
    grid-column: 2; grid-row: 1;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.2;
    text-align: right;
    color: #111827 !important;
}
.tabutech-checkout-widget .tt-shipping-right .tt-cost-value.tt-cost-free:not(#tt-x) { color: #15803d !important; font-size: 15px !important; }
.tabutech-checkout-widget .tt-shipping-right .tt-days-value:not(#tt-x) {
    grid-column: 1 / -1; grid-row: 2;
    display: block;
    padding: 0;
    background: none;
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #6b7280 !important;
}

/* ══════════════════════════════════════════════════════════════
   PHONES — COMPACT PASS (≤767px)
   Many phones render at ~320 CSS px (large display size / zoom), so every
   size here is chosen to stay comfortable at 320px. Later + ID-weight
   selectors win over the older mobile rules and Elementor typography.
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {

    .tabutech-checkout-widget { --tt-field-h: 44px; --tt-field-fs: 15px; }
    @supports (-webkit-touch-callout: none) {
        .tabutech-checkout-widget { --tt-field-fs: 16px; }   /* iOS zooms into smaller fields */
    }

    .checkout-content { padding: 12px 12px 8px !important; }

    /* progress */
    .checkout-progress { padding: 10px 12px 10px !important; gap: 5px; }
    .tt-mob-stepline { margin-bottom: 2px; }
    .tt-msl-title { font-size: 15px; }
    .tt-msl-count { font-size: 12px; }
    .progress-step { height: 3px; }

    /* order chip */
    .tt-mob-chip { min-height: 46px; gap: 10px; padding: 6px 10px; margin-bottom: 10px; border-radius: 10px; }
    .tt-mob-chip-img { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 6px; }
    .tt-mob-chip-name { font-size: 12.5px; }
    .tt-mob-chip-count { font-size: 11px; }
    .tt-mob-chip-price { font-size: 13.5px; }

    /* fields */
    .tabutech-checkout-widget .tabutech-step :is(.form-group, .tt-form-group):not(#tt-x) { margin-bottom: 12px; }
    .tabutech-checkout-widget .tabutech-step :is(.form-group, .tt-form-group) > label:not(#tt-x) { font-size: 12px; margin-bottom: 5px; }

    /* saved address */
    .tt-saved-addr-box { padding: 12px; margin-bottom: 10px; border-radius: 10px; }
    .tabutech-checkout-widget .tt-saved-addr-label:not(#tt-x) { font-size: 10.5px; margin-bottom: 4px; }
    .tabutech-checkout-widget .tt-saved-addr-text:not(#tt-x) { font-size: 13px; line-height: 1.45; margin-bottom: 8px; }
    .tt-saved-addr-actions { gap: 3px; padding: 3px; }
    .tt-form-group .tt-id-type-toggle { gap: 3px; padding: 3px; margin-bottom: 6px; }
    .tabutech-checkout-widget .tt-saved-addr-actions .tt-addr-radio-label:not(#tt-x),
    .tabutech-checkout-widget .tt-form-group .tt-id-type-toggle .tt-id-radio:not(#tt-x) {
        min-height: 36px;
        padding: 4px 6px;
        font-size: 12px;
        line-height: 1.2;
    }
    #tt-shipping-result { margin-top: 10px !important; }
    .tabutech-checkout-widget .tt-shipping-right:not(#tt-x) { padding: 10px 12px; border-radius: 10px; }

    /* payment */
    .payment-methods { gap: 8px; }
    .tabutech-checkout-widget .payment-option label:not(#tt-x) { padding: 10px 40px 10px 10px; border-radius: 10px; }
    .tabutech-checkout-widget .payment-option label::after { right: 12px; width: 18px; height: 18px; }
    .tabutech-checkout-widget .payment-icon:not(#tt-x) { width: 38px; height: 38px; min-width: 38px; margin-right: 10px; padding: 4px; border-radius: 9px; }
    .tabutech-checkout-widget .payment-name:not(#tt-x) { font-size: 13.5px; line-height: 1.25; }
    .tabutech-checkout-widget .payment-desc:not(#tt-x) { font-size: 11.5px; line-height: 1.3; }
    .tabutech-checkout-widget .payment-info:not(#tt-x) { gap: 1px; }

    /* policy */
    .tabutech-checkout-widget .tt-policy-agreement:not(#tt-x) { margin-top: 10px; padding: 10px 12px; border-radius: 10px; }
    .tabutech-checkout-widget .tt-policy-agreement-label:not(#tt-x) { gap: 10px; font-size: 12px; line-height: 1.45; }
    .tabutech-checkout-widget .tt-policy-text:not(#tt-x) { font-size: 12px; }
    .tabutech-checkout-widget .tt-policy-checkbox-box:not(#tt-x) { width: 20px; height: 20px; min-width: 20px; }

    /* summary: ONE card, sections divided by thin lines */
    .tabutech-checkout-widget .order-summary:not(#tt-x) {
        padding: 2px 12px;
        background: #fff;
        border: 1px solid var(--border-color);
        border-radius: 10px;
    }
    .tabutech-checkout-widget .summary-section:not(#tt-x) {
        margin: 0;
        padding: 10px 0;
        background: none;
        border: 0;
        border-radius: 0;
        border-top: 1px solid #eef0f4;
    }
    .tabutech-checkout-widget .summary-section:first-child:not(#tt-x) { border-top: 0; }
    .tabutech-checkout-widget .summary-title:not(#tt-x) {
        margin: 0 0 3px;
        padding: 0;
        border: 0;
        font-size: 10.5px;
        font-weight: 700;
        letter-spacing: .03em;
        color: #9ca3af;
    }
    .tabutech-checkout-widget .summary-row:not(#tt-x) { flex-wrap: nowrap; gap: 8px; padding: 3px 0; font-size: 13px; line-height: 1.35; }
    .tabutech-checkout-widget .summary-label:not(#tt-x),
    .tabutech-checkout-widget .summary-value:not(#tt-x) { font-size: 13px; }
    .tabutech-checkout-widget .summary-value:not(#tt-x) { max-width: 68%; }
    .tabutech-checkout-widget .summary-section .summary-row[style]:not(#tt-x) {
        margin-top: 6px !important;
        padding-top: 8px !important;
        border-top: 1px solid #eef0f4 !important;
    }
    .tabutech-checkout-widget .cart-item:not(#tt-x) { flex-wrap: nowrap; gap: 8px; padding: 3px 0 6px; border: 0; }
    .tabutech-checkout-widget .item-name:not(#tt-x) { margin: 0; font-size: 13px; line-height: 1.35; }
    .tabutech-checkout-widget .item-quantity:not(#tt-x) { font-size: 11.5px; }
    .tabutech-checkout-widget .item-price:not(#tt-x) { margin: 0; font-size: 13px; }
    .tabutech-checkout-widget .summary-total:not(#tt-x) { margin-top: 6px; padding-top: 8px; border-top: 1px solid #eef0f4; font-size: 14px; align-items: baseline; }
    .tabutech-checkout-widget .summary-total .summary-value:not(#tt-x) { font-size: 17px; }
    .summary-note, .tabutech-step[data-step="4"] > p { font-size: 12px; }

    /* action bar: compact, single-line labels */
    .checkout-navigation { gap: 8px; margin: 10px -12px 0; padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); }
    .tabutech-checkout-widget .btn-prev:not(#tt-x),
    .tabutech-checkout-widget .btn-next:not(#tt-x),
    .tabutech-checkout-widget .btn-submit:not(#tt-x) {
        height: 46px;
        min-width: 0;
        padding: 0 12px !important;
        border-radius: 10px !important;
        font-size: 14px;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .tabutech-checkout-widget .btn-prev:not(#tt-x) { flex: 0 0 auto; padding: 0 16px !important; }
    .tabutech-checkout-widget .btn-next:not(#tt-x),
    .tabutech-checkout-widget .btn-submit:not(#tt-x) { flex: 1 1 0; }

    .form-messages { margin-top: 8px; }
    .form-messages:empty { display: none; }
}

/* small phones: "back" becomes a chevron button, so long labels like
   "შეკვეთის განთავსება" always fit on one line next to it */
@media (max-width: 479px) {
    .tabutech-checkout-widget .btn-prev:not(#tt-x) {
        position: relative;
        flex: 0 0 46px;
        width: 46px;
        padding: 0 !important;
        font-size: 0 !important;
    }
    .tabutech-checkout-widget .btn-prev:not(#tt-x)::before {
        content: '';
        position: absolute;
        left: 50%;
        top: 50%;
        width: 9px;
        height: 9px;
        border-left: 2.5px solid currentColor;
        border-bottom: 2.5px solid currentColor;
        transform: translate(-30%, -50%) rotate(45deg);
    }
}
