/**
 * The Swag World - Three-Step Luxury WhatsApp Checkout Stylesheet
 * Desktop: Single Compact Horizontal Header Row (Stepper Left, Title Right) + Two-Column Layout (Form Left, Order Summary Right)
 * Brand Palette: Rose Pink (#E34592), Deep Charcoal (#2B2A29), Off-White (#FAF7F8), Warm Accents (#C5A059)
 */

/* ==========================================================================
   1. PAGE WRAPPER & CONTAINER
   ========================================================================== */
.tsw-checkout-page-main {
    background-color: #FAF7F8;
    min-height: calc(100vh - 200px);
    padding-top: 0.85rem;
    padding-bottom: 3.5rem;
}

.tsw-checkout-container {
    max-width: 1140px;
    margin: 0 auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* Compact Top Navigation Bar */
.tsw-checkout-top-bar {
    margin-bottom: 0.5rem;
}

.tsw-checkout-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: transparent;
    border: none;
    padding: 0.35rem 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: #766B65;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.tsw-checkout-back-link:hover {
    color: #E34592;
    transform: translateX(-2px);
}

.tsw-checkout-back-link svg {
    stroke: currentColor;
    flex-shrink: 0;
}

/* ==========================================================================
   2. HORIZONTAL HEADER ROW (DESKTOP)
   Left: Stepper  |  Right: Checkout Heading Group
   ========================================================================== */
.tsw-checkout-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #EBE4E0;
}

/* Stepper Column (Left) */
.tsw-checkout-stepper-col {
    flex-shrink: 0;
}

.tsw-checkout-stepper {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.tsw-step-node {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    user-select: none;
}

.tsw-step-indicator {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 2px solid #D5CAC3;
    color: #766B65;
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.tsw-step-check {
    display: none;
}

.tsw-step-label {
    font-size: 0.86rem;
    font-weight: 600;
    color: #766B65;
    white-space: nowrap;
    transition: color 0.2s ease;
}

/* Active Step */
.tsw-step-node.active .tsw-step-indicator {
    border-color: #E34592;
    background: #E34592;
    color: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(227, 69, 146, 0.16);
}

.tsw-step-node.active .tsw-step-label {
    color: #2B2A29;
    font-weight: 700;
}

/* Completed Step */
.tsw-step-node.completed .tsw-step-indicator {
    background: #2B2A29;
    border-color: #2B2A29;
    color: #FFFFFF;
}

.tsw-step-node.completed .tsw-step-num {
    display: none;
}

.tsw-step-node.completed .tsw-step-check {
    display: block;
    stroke: #FFFFFF;
}

.tsw-step-node.completed .tsw-step-label {
    color: #2B2A29;
}

/* Connecting lines between step circles */
.tsw-step-connector {
    width: 28px;
    height: 2px;
    background: #E5D9D2;
    transition: background 0.25s ease;
    flex-shrink: 0;
}

.tsw-step-connector.active {
    background: #2B2A29;
}

/* Heading Group Column (Right) */
.tsw-checkout-heading-col {
    text-align: right;
}

.tsw-checkout-page-title {
    font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
    font-size: 1.7rem;
    font-weight: 500;
    color: #2B2A29;
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.tsw-checkout-page-sub {
    font-size: 0.78rem;
    color: #766B65;
    margin: 0.2rem 0 0;
    line-height: 1.3;
}

/* ==========================================================================
   3. TWO-COLUMN GRID LAYOUT
   Left: Step Form Card (60-65%)  |  Right: Order Summary & Assurances (35-40%)
   ========================================================================== */
.tsw-checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 1.75rem;
    align-items: start;
}

/* Left Column Form Card */
.tsw-checkout-card {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #EBE4E0;
    padding: 2rem 2.25rem;
    box-shadow: 0 4px 20px rgba(43, 42, 41, 0.03);
}

.tsw-pane-header {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #F5EBE6;
}

.tsw-checkout-step-title {
    font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: #2B2A29;
    margin: 0 0 0.35rem;
    line-height: 1.25;
}

.tsw-checkout-step-subtitle {
    font-size: 0.84rem;
    color: #766B65;
    margin: 0;
    line-height: 1.45;
}

/* Form Groups & Inputs */
.tsw-form-group {
    margin-bottom: 1.25rem;
}

.tsw-form-label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: #2B2A29;
    margin-bottom: 0.4rem;
}

.tsw-req {
    color: #E34592;
    margin-left: 2px;
}

.tsw-optional {
    font-size: 0.76rem;
    font-weight: 400;
    color: #8C827A;
    margin-left: 4px;
}

.tsw-form-input {
    width: 100%;
    height: 48px;
    padding: 0 1rem;
    font-size: 0.92rem;
    color: #2B2A29;
    background: #FFFFFF;
    border: 1px solid #D8CFC8;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.tsw-form-input:hover {
    border-color: #B5A8A0;
}

.tsw-form-input:focus {
    outline: none;
    border-color: #E34592;
    box-shadow: 0 0 0 3px rgba(227, 69, 146, 0.12);
}

.tsw-form-input.is-invalid {
    border-color: #D32F2F;
    background-color: #FFF9F9;
}

.tsw-textarea {
    height: auto;
    padding: 0.75rem 1rem;
    line-height: 1.5;
    resize: vertical;
}

.tsw-phone-input-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid #D8CFC8;
    border-radius: 8px;
    background: #FFFFFF;
    overflow: hidden;
    transition: all 0.2s ease;
}

.tsw-phone-input-wrap:focus-within {
    border-color: #E34592;
    box-shadow: 0 0 0 3px rgba(227, 69, 146, 0.12);
}

.tsw-phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 0.85rem;
    background: #F8F4F2;
    color: #2B2A29;
    font-size: 0.9rem;
    font-weight: 600;
    border-right: 1px solid #D8CFC8;
    user-select: none;
}

.tsw-phone-input {
    border: none;
    border-radius: 0;
    height: 46px;
}

.tsw-phone-input:focus {
    box-shadow: none;
}

.tsw-field-hint {
    display: block;
    font-size: 0.74rem;
    color: #8C827A;
    margin-top: 0.35rem;
    line-height: 1.35;
}

.tsw-field-error {
    display: none;
    font-size: 0.76rem;
    color: #D32F2F;
    margin-top: 0.35rem;
    font-weight: 500;
}

.tsw-field-error.is-visible {
    display: block;
}

/* PIN Input & Detected Location Badge */
.tsw-pin-input-wrap {
    position: relative;
}

.tsw-pin-spinner {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid #E5D9D2;
    border-top-color: #E34592;
    border-radius: 50%;
    animation: tswSpin 0.75s linear infinite;
}

@keyframes tswSpin {
    to { transform: translateY(-50%) rotate(360deg); }
}

.tsw-detected-location-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.35rem 0.75rem;
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #C8E6C9;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
}

.tsw-detected-location-badge svg {
    stroke: #2E7D32;
    flex-shrink: 0;
}

.tsw-badge-change-btn {
    background: transparent;
    border: none;
    color: #1B5E20;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    margin-left: 0.25rem;
}

.tsw-location-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.75rem;
}

/* Optional Fields Accordion Toggle */
.tsw-optional-toggle-wrap {
    margin-bottom: 1.25rem;
}

.tsw-toggle-optional-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    border: none;
    padding: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: #E34592;
    cursor: pointer;
    transition: color 0.2s ease;
}

.tsw-toggle-optional-btn:hover {
    color: #C02C76;
    text-decoration: underline;
}

.tsw-toggle-optional-btn span:first-child {
    font-size: 1.1rem;
    line-height: 1;
}

.tsw-optional-fields-wrap {
    background: #FDF9FA;
    border: 1px dashed #E5D9D2;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

/* Step Action Buttons */
.tsw-step-actions-row {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid #F5EBE6;
}

.tsw-step-actions-dual {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.tsw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 1.75rem;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    border: none;
}

.tsw-btn-step-continue {
    background: #2B2A29;
    color: #FFFFFF;
    width: 100%;
}

.tsw-btn-step-continue:hover {
    background: #E34592;
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(227, 69, 146, 0.25);
}

.tsw-step-actions-dual .tsw-btn-step-continue {
    width: auto;
    flex: 1;
}

.tsw-btn-step-back {
    background: #FFFFFF;
    color: #766B65;
    border: 1px solid #D8CFC8;
    padding: 0 1.25rem;
}

.tsw-btn-step-back:hover {
    background: #F8F4F2;
    color: #2B2A29;
    border-color: #B5A8A0;
}

/* ==========================================================================
   4. STEP 3 REVIEW BLOCKS (INSIDE LEFT CARD)
   ========================================================================== */
.tsw-review-block {
    background: #FAF7F8;
    border: 1px solid #EBE4E0;
    border-radius: 8px;
    padding: 1.15rem 1.25rem;
    margin-bottom: 1.25rem;
}

.tsw-review-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #EFE8E4;
}

.tsw-review-block-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #766B65;
}

.tsw-review-edit-btn {
    background: transparent;
    border: none;
    font-size: 0.8rem;
    font-weight: 600;
    color: #E34592;
    cursor: pointer;
    padding: 0;
}

.tsw-review-edit-btn:hover {
    text-decoration: underline;
    color: #C02C76;
}

.tsw-review-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2B2A29;
}

.tsw-review-meta {
    font-size: 0.84rem;
    color: #5A524D;
    margin-top: 0.15rem;
}

.tsw-review-subtext {
    font-size: 0.82rem;
    color: #766B65;
    margin-top: 0.15rem;
}

.tsw-review-bold-meta {
    font-size: 0.84rem;
    font-weight: 600;
    color: #2B2A29;
    margin-top: 0.25rem;
}

.tsw-review-note {
    font-size: 0.8rem;
    font-style: italic;
    color: #8C6239;
    margin-top: 0.35rem;
}

/* WhatsApp Final CTA Button */
.tsw-review-submit-wrap {
    margin-top: 1.75rem;
}

.tsw-btn-wa-submit {
    width: 100%;
    height: 52px;
    background: #2B2A29;
    color: #FFFFFF;
    border: 1px solid #2B2A29;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(43, 42, 41, 0.12);
}

.tsw-btn-wa-submit:hover:not(:disabled) {
    background: #1F1E1E;
    border-color: #C5A059;
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(43, 42, 41, 0.22);
}

.tsw-btn-wa-submit:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.tsw-wa-submit-icon {
    color: #25D366;
    flex-shrink: 0;
}

.tsw-btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: tswBtnSpin 0.75s linear infinite;
    margin-left: 0.5rem;
}

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

.tsw-checkout-reassurance-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0.85rem;
    font-size: 0.76rem;
    color: #766B65;
    text-align: center;
}

.tsw-checkout-reassurance-note svg {
    stroke: #8C6239;
    flex-shrink: 0;
}

/* ==========================================================================
   5. RIGHT COLUMN: ORDER SUMMARY & FOUR ASSURANCE BENEFITS
   ========================================================================== */
.tsw-order-summary-card {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #EBE4E0;
    padding: 1.5rem 1.65rem;
    position: sticky;
    top: 1.25rem;
    box-shadow: 0 4px 20px rgba(43, 42, 41, 0.03);
}

.tsw-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.15rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #F0EAE6;
}

.tsw-summary-title {
    font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: #2B2A29;
    margin: 0;
}

.tsw-summary-badge {
    background: #FDF3F7;
    color: #E34592;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

/* Items List */
.tsw-summary-items-list {
    max-height: 280px;
    overflow-y: auto;
    margin-bottom: 1.15rem;
    padding-right: 0.25rem;
}

.tsw-summary-items-list::-webkit-scrollbar {
    width: 4px;
}

.tsw-summary-items-list::-webkit-scrollbar-thumb {
    background: #E5D9D2;
    border-radius: 4px;
}

.tsw-summary-item-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #F7F1EE;
}

.tsw-summary-item-row:last-child {
    border-bottom: none;
}

.tsw-summary-item-thumb {
    width: 54px;
    height: 54px;
    border-radius: 6px;
    overflow: hidden;
    background: #FAF7F8;
    border: 1px solid #EBE4E0;
    flex-shrink: 0;
}

.tsw-summary-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tsw-summary-item-meta {
    flex: 1;
    min-width: 0;
}

.tsw-summary-item-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #2B2A29;
    margin: 0 0 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tsw-summary-qty-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.tsw-qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid #D8CFC8;
    background: #FFFFFF;
    color: #2B2A29;
    font-size: 0.9rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.tsw-qty-btn:hover {
    background: #FDF3F7;
    border-color: #E34592;
    color: #E34592;
}

.tsw-qty-value {
    font-size: 0.82rem;
    font-weight: 700;
    color: #2B2A29;
    min-width: 18px;
    text-align: center;
}

.tsw-unit-price-label {
    font-size: 0.75rem;
    color: #8C827A;
    margin-left: 0.25rem;
}

.tsw-summary-item-price {
    font-size: 0.92rem;
    font-weight: 700;
    color: #2B2A29;
    white-space: nowrap;
    text-align: right;
}

/* Totals Breakdown */
.tsw-summary-totals-breakdown {
    background: #FAF7F8;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
}

.tsw-summary-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
    font-size: 0.84rem;
    color: #5A524D;
}

.tsw-summary-total-row:last-child {
    margin-bottom: 0;
}

.tsw-summary-total-row .tsw-free-badge {
    background: #E8F5E9;
    color: #2E7D32;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
}

.tsw-summary-grand-total {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid #EBE4E0;
    font-size: 1rem;
    font-weight: 700;
    color: #2B2A29;
}

.tsw-summary-grand-total .tsw-total-val {
    color: #E34592;
    font-size: 1.05rem;
}

/* Four Assurance Benefits */
.tsw-summary-assurances {
    border-top: 1px solid #F0EAE6;
    padding-top: 1.15rem;
}

.tsw-assurance-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.tsw-assurance-item:last-child {
    margin-bottom: 0;
}

.tsw-assurance-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #FDF3F7;
    color: #E34592;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.tsw-assurance-icon svg {
    stroke: currentColor;
}

.tsw-assurance-text {
    flex: 1;
    min-width: 0;
}

.tsw-assurance-text strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #2B2A29;
    line-height: 1.25;
}

.tsw-assurance-text span {
    display: block;
    font-size: 0.74rem;
    color: #766B65;
    line-height: 1.35;
    margin-top: 0.15rem;
}

/* ==========================================================================
   6. SUCCESS MODAL & EMPTY CARD
   ========================================================================== */
.tsw-checkout-empty-card {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #EBE4E0;
    padding: 3.5rem 2rem;
    text-align: center;
    max-width: 520px;
    margin: 2rem auto;
}

.tsw-checkout-empty-icon {
    color: #D5CAC3;
    margin-bottom: 1rem;
}

.tsw-checkout-empty-card h2 {
    font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
    font-size: 1.5rem;
    color: #2B2A29;
    margin-bottom: 0.5rem;
}

.tsw-checkout-empty-card p {
    font-size: 0.9rem;
    color: #766B65;
    margin-bottom: 1.5rem;
}

.tsw-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(43, 42, 41, 0.65);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.tsw-modal-dialog {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 2.25rem 2rem;
    max-width: 460px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.tsw-modal-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #E8F5E9;
    color: #2E7D32;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.tsw-modal-title {
    font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
    font-size: 1.35rem;
    color: #2B2A29;
    margin: 0 0 0.35rem;
}

.tsw-modal-subtitle {
    font-size: 0.9rem;
    color: #5A524D;
    margin-bottom: 0.75rem;
}

.tsw-modal-desc {
    font-size: 0.82rem;
    color: #766B65;
    line-height: 1.45;
    margin-bottom: 1.5rem;
}

.tsw-btn-wa-modal {
    width: 100%;
    height: 48px;
    background: #25D366;
    color: #FFFFFF;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: background 0.2s ease;
    margin-bottom: 0.75rem;
}

.tsw-btn-wa-modal:hover {
    background: #1EBE5D;
    color: #FFFFFF;
}

.tsw-modal-home-link {
    display: inline-block;
    font-size: 0.82rem;
    color: #766B65;
    text-decoration: underline;
}

.tsw-modal-home-link:hover {
    color: #2B2A29;
}

/* ==========================================================================
   7. RESPONSIVE MEDIA QUERIES
   Desktop (1024px+), Tablet (768px-1023px), Mobile (<768px)
   ========================================================================== */
@media (max-width: 1023px) {
    .tsw-checkout-grid {
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 1.25rem;
    }

    .tsw-checkout-card {
        padding: 1.75rem 1.5rem;
    }

    .tsw-order-summary-card {
        padding: 1.35rem 1.25rem;
    }
}

@media (max-width: 900px) {
    .tsw-checkout-header-row {
        gap: 1rem;
    }

    .tsw-checkout-page-title {
        font-size: 1.45rem;
    }

    .tsw-checkout-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tsw-order-summary-card {
        position: static;
    }
}

@media (max-width: 767px) {
    .tsw-checkout-page-main {
        padding-top: 0.25rem;
        padding-bottom: 2rem;
    }

    .tsw-checkout-container {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    /* 1. Compact Header & Navigation */
    .tsw-checkout-top-bar {
        margin-bottom: 0.2rem;
    }

    .tsw-checkout-back-link {
        font-size: 0.78rem;
        padding: 0.15rem 0;
        gap: 0.35rem;
    }

    .tsw-checkout-header-row {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 0.4rem;
        margin-bottom: 0.65rem;
        padding-bottom: 0.45rem;
        border-bottom: 1px solid #ECE4DF;
    }

    .tsw-checkout-heading-col {
        text-align: left;
        width: 100%;
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .tsw-checkout-page-title {
        font-size: 1.25rem;
        line-height: 1.1;
    }

    .tsw-checkout-page-sub {
        font-size: 0.72rem;
        margin: 0;
        color: #8C827A;
    }

    .tsw-checkout-stepper-col {
        width: 100%;
    }

    .tsw-checkout-stepper {
        width: 100%;
        justify-content: space-between;
        gap: 0.35rem;
    }

    .tsw-step-node {
        gap: 0.35rem;
    }

    .tsw-step-indicator {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
        border-width: 1.5px;
    }

    .tsw-step-check {
        width: 11px;
        height: 11px;
    }

    .tsw-step-label {
        font-size: 0.78rem;
    }

    .tsw-step-connector {
        width: 16px;
        height: 1.5px;
    }

    /* 2. Compact Form Card */
    .tsw-checkout-card {
        padding: 0.95rem 0.85rem 1.15rem;
        border-radius: 10px;
    }

    .tsw-pane-header {
        margin-bottom: 0.75rem;
        padding-bottom: 0.35rem;
    }

    .tsw-checkout-step-title {
        font-size: 1.12rem;
        margin-bottom: 0;
    }

    /* Hide redundant descriptive copy on mobile */
    .tsw-checkout-step-subtitle {
        display: none !important;
    }

    /* 3. Form Fields Compactness & iOS Safari 16px font-size to prevent auto-zoom */
    .tsw-form-group {
        margin-bottom: 0.7rem;
    }

    .tsw-form-label {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }

    .tsw-form-input {
        height: 44px;
        font-size: 16px; /* Prevents iOS Safari auto-zoom */
        padding: 0 0.75rem;
        border-radius: 6px;
    }

    .tsw-phone-input-wrap {
        border-radius: 6px;
    }

    .tsw-phone-prefix {
        font-size: 0.84rem;
        padding: 0 0.65rem;
    }

    .tsw-phone-input {
        height: 42px;
        font-size: 16px;
    }

    .tsw-field-hint {
        font-size: 0.7rem;
        margin-top: 0.2rem;
        line-height: 1.25;
    }

    .tsw-detected-location-badge {
        margin-top: 0.35rem;
        padding: 0.25rem 0.6rem;
        font-size: 0.76rem;
    }

    .tsw-textarea {
        height: auto;
        min-height: 52px;
        padding: 0.45rem 0.75rem;
        font-size: 16px;
    }

    .tsw-optional-toggle-wrap {
        margin-top: 0.25rem;
        margin-bottom: 0.75rem;
    }

    .tsw-toggle-optional-btn {
        font-size: 0.78rem;
    }

    .tsw-optional-fields-wrap {
        padding: 0.85rem;
        margin-bottom: 1rem;
        border-radius: 6px;
    }

    /* 4. Action Buttons */
    .tsw-step-actions-row {
        margin-top: 1rem;
        padding-top: 0.75rem;
    }

    .tsw-step-actions-dual {
        gap: 0.65rem;
    }

    .tsw-btn {
        height: 44px;
        font-size: 0.88rem;
        border-radius: 6px;
        padding: 0 1rem;
    }

    .tsw-btn-step-back {
        padding: 0 0.85rem;
        flex: 0 0 auto;
    }

    .tsw-btn-step-continue {
        flex: 1;
    }

    /* 5. Step 3 Review on Mobile */
    .tsw-review-block {
        padding: 0.75rem 0.85rem;
        margin-bottom: 0.75rem;
        border-radius: 6px;
    }

    .tsw-review-block-header {
        margin-bottom: 0.35rem;
        padding-bottom: 0.25rem;
    }

    .tsw-review-block-title {
        font-size: 0.74rem;
    }

    .tsw-review-edit-btn {
        font-size: 0.78rem;
    }

    .tsw-review-name {
        font-size: 0.88rem;
    }

    .tsw-review-meta,
    .tsw-review-subtext,
    .tsw-review-bold-meta {
        font-size: 0.78rem;
    }

    .tsw-review-submit-wrap {
        margin-top: 1rem;
    }

    .tsw-btn-wa-submit {
        height: 46px;
        font-size: 0.92rem;
        border-radius: 6px;
    }

    .tsw-checkout-reassurance-note {
        font-size: 0.7rem;
        margin-top: 0.5rem;
    }

    /* 6. Order Summary Card on Mobile */
    .tsw-order-summary-card {
        padding: 1rem 0.85rem;
        margin-top: 1rem;
        border-radius: 10px;
    }

    .tsw-summary-header {
        margin-bottom: 0.65rem;
        padding-bottom: 0.45rem;
    }

    .tsw-summary-title {
        font-size: 1.05rem;
    }

    .tsw-summary-item-thumb {
        width: 48px;
        height: 48px;
    }

    .tsw-summary-item-title {
        font-size: 0.82rem;
    }

    .tsw-summary-totals-breakdown {
        padding: 0.65rem 0.75rem;
        margin-bottom: 0.85rem;
    }

    .tsw-summary-total-row {
        font-size: 0.78rem;
        margin-bottom: 0.3rem;
    }

    .tsw-summary-grand-total {
        font-size: 0.92rem;
    }

    .tsw-summary-assurances {
        padding-top: 0.75rem;
    }

    .tsw-assurance-item {
        gap: 0.55rem;
        margin-bottom: 0.55rem;
    }

    .tsw-assurance-icon {
        width: 26px;
        height: 26px;
    }

    .tsw-assurance-icon svg {
        width: 15px;
        height: 15px;
    }

    .tsw-assurance-text strong {
        font-size: 0.75rem;
    }

    .tsw-assurance-text span {
        font-size: 0.68rem;
    }

    .tsw-location-fields-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

