:root {
    --primary: #C85A23;
    --primary-dark: #A04518;
    --accent: #E8952E;
    --bg-light: #FDF8F3;
    --bg-white: #FFFFFF;
    --text-dark: #2C2416;
    --text-gray: #6B6356;
    --border: #E5DDD1;
    --success: #5C8A3D;
    --error: #D64532;
}

.option input {
    display: none;
}

.option-inner {
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    background-color: #fff;
    transition: all 0.3s ease;
}

.option input:checked + .option-inner {
    border-color: var(--success);
    background: linear-gradient(135deg, #F0F8EC 0%, var(--bg-white) 100%);
}
.option input:checked + .option-inner .fake-button {
    display: none;
}
.option-inner .fake-button.added {
    display: none;
}
.option input:checked + .option-inner .fake-button.added {
    display: inline-block;
    background: none;
    color: #009900;
}


.options-grid {
    display: flex;
    justify-content: space-between;
    max-width: 600px;
    margin: 1em auto;
}

.option {
    flex: 1;
    margin: 0 0.5rem;
    cursor: pointer;
    position: relative;

}

.options-grid .option:first-child {
    margin-left: 0;
}

.options-grid .option:last-child {
    margin-right: 0;
}

.option img {
    max-width: 100%;
    margin-bottom: 1rem;
}

.option h3 {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: #222
}

.option p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.option button {
    background-color: #f5a623;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.option .highlight {
    color: green;
}

.badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: orange;
    color: white;
    padding: 4px 8px;
    font-size: 0.8rem;
    border-radius: 6px;
}

.fake-button {
    display: inline-block;
    background-color: #f5a623;
    color: white;
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.errors {
    background: red;
    padding: 6px;
    color: white;
    list-style-type: none;
}
.upsell {
    padding: 1em;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    padding: 16px 40px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
nav .btn {
    padding: 4px 20px;
}

.btn-primary {
    flex: 1;
}
.btn-primary.hidden {
    display: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    font-size: 1.2rem;
    padding: 18px 40px;
    box-shadow: 0 4px 12px rgba(200, 90, 35, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 90, 35, 0.4);
    background: var(--primary-dark);
}


.btn-secondary {
    border: 2px solid var(--border);
}

/* Order Summary Sidebar */
.order-summary {
    position: sticky;
    top: 20px;
    background: #eeeeee;
    color: var(--text-dark);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid var(--border);
}

.summary-title {
    font-size: 1.2rem;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-dark);
    border-bottom: 1px solid var(--border);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item-name {
    font-weight: 500;
}

.summary-item-price {
    font-weight: 600;
}

.summary-subtotal {
    font-size: 0.9rem;
    opacity: 0.9;
    border-bottom: none;
}

.summary-savings {
    color: var(--success);
    font-weight: 600;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 20px;
    padding-top: 20px;
    color: var(--primary);
    border-top: 2px solid var(--border);
}

#summary-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 20px;
    padding-top: 20px;
    color: var(--primary);
    border-top: 2px solid var(--border);
}


/* Step Container */
.step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-content {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
}

.step-title {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.step-subtitle {
    color: var(--text-gray);
    margin-bottom: 30px;
    font-size: 1.05rem;
}

/* Upsells */
.upsells {
    display: grid;
    gap: 20px;
}

.upsell-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-light);
    align-items: center;
}

.upsell-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(200, 90, 35, 0.1);
}

.upsell-item.added {
    border-color: var(--success);
    background: linear-gradient(135deg, #F0F8EC 0%, var(--bg-white) 100%);
}

.upsell-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
}
.upsell-image img {max-width: 100px}

.upsell-content {
    flex: 1;
}

.upsell-name {
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.upsell-description {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.upsell-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.upsell-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.2rem;
}

.upsell-item.added .upsell-add {
    background: var(--success);
}

.upsell-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    min-width: 120px;
}

.upsell-quantity {
    display: flex;
    align-items: stretch;
    border: 2px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: white;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.3rem;
    transition: all 0.2s;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--bg-light);
}

.qty-btn:active {
    background: var(--border);
}

.qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.qty-display {
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    border-left: 2px solid var(--border);
    border-right: 2px solid var(--border);
    background: white;
}

.upsell-add {
    padding: 6px 24px;
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    height: 44px;
}

.upsell-add:hover {
    background: var(--primary);
    color: white;
    background: var(--primary-dark);
}

.upsell-remove {
    padding: 5px 24px;
    background: white;
    color: var(--error);
    border: 2px solid var(--error);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.upsell-remove:hover {
    background: var(--error);
    color: white;
}

.skip-upsells {
    text-align: center;
    margin-top: 20px;
}

.skip-link {
    color: var(--text-gray);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
}

.skip-link:hover {
    color: var(--primary);
}

.address-prefilled {
    background: #F0F8EC;
    border: 2px solid var(--success);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.address-prefilled-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.address-prefilled-title {
    font-weight: 600;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 8px;
}

.edit-address {
    color: var(--primary);
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9rem;
}

.address-prefilled-content {
    color: var(--text-dark);
    line-height: 1.8;
}

/* Progress Bar Styles */
.progress-bar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 30px 0 40px;
    padding: 0 20px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 200px;
}

.progress-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #E5DDD1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #6B6356;
    transition: all 0.3s ease;
}

.progress-step.active .progress-circle {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.progress-step.completed .progress-circle {
    background: var(--success);
    color: white;
}

.progress-label {
    font-size: 0.85rem;
    color: #6B6356;
    text-align: center;
}

.progress-step.active .progress-label {
    color: var(--primary);
    font-weight: 600;
}

.progress-line {
    flex: 1;
    height: 3px;
    background: #E5DDD1;
    position: relative;
    top: -15px;
}

.progress-line.completed {
    background: var(--success);
}
.order-summary {
    display: none;
}


.countdown {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 15px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

.countdown-icon {
    font-size: 1.2rem;
}

/* Error display */
.error-container {
    display: none;
    background: #D64532;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.error-container.show {
    display: block;
}

.error-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-list li {
    padding: 5px 0;
}

/* Submit button states */
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#foot {
    background-color: #333;
    color: white;
    font-size: 15px;
    padding: 60px 0;
}
#foot ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
#foot ul li {
    margin-bottom: 0.5em
}
#foot a {
    color: #eee;
}
#foot h3 {
    padding-bottom: 1em;
}
#foot hr {
    border-color: rgba(255,255,255,.1);
}
#main {margin-bottom: 2em;}

#clpsn-zbox-select {background: #ba1b02; color: #fff; text-decoration: none; padding: 6px 10px; display: inline-block;}
#clpsn-zbox-info {margin-top: 7px;}

@media (max-width: 992px) {
    .options-grid {
        flex-direction: column;
        align-items: stretch;
    }

    .options-grid label {
        max-width: 100%;
    }
    .option {
        width: 100%;
        max-width: 100%;
        margin: 0.5rem 0;
    }

    .option-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.8rem;
        gap: 1rem;
        text-align: left;
    }

    .option img {
        max-width: 80px;
        flex-shrink: 0;
        margin-bottom: 1rem;
    }

    .option-content {
        flex: 1;
    }

    .option h3 {
        font-size: 1rem;
        margin: 0 0 0.25rem;
    }

    .option p {
        margin: 0;
        font-size: 0.85rem;
    }

    .fake-button {
        background-color: #f5a623;
        color: white;
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
        border-radius: 5px;
        font-weight: bold;
        margin-top: 0.5rem;
        display: inline-block;
        text-align: center;
        white-space: nowrap;
    }
    .badge {
        left: 8px;
        right: inherit;
    }
    .order-summary {
        position: static;
    }

    .step-content {padding: 0}
    .upsell-item {display: block}
    .upsell-description {font-size: 0.85rem;}
    .upsell-image {float: left; display: block}
    .upsell-content {display: block; margin-left: 120px}
    .upsell-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        clear: both;
        margin-left: 0;
        margin-top: 10px;
    }

    .upsell-quantity {
        grid-column: 1;
        width: 100%;
        justify-content: center;
    }

    .upsell-remove {
        grid-column: 2;
        width: 100%;
    }

    .upsell-add {
        grid-column: 1 / -1;
        width: 100%;
    }

    .form-label {
        font-size: 13px;
        margin-bottom: 0;
    }

    .btn-primary {
        font-size: 1.1rem;
        padding: 16px 32px;
    }

    .upsell-add {
        font-size: 0.95rem;
        padding: 5px 20px;
        height: 40px;
    }

    .upsell-remove {
        font-size: 0.95rem;
        padding: 5px 20px;
        height: 40px;
    }

    .upsell-price-row {display: block}
    .upsell-price-row s {display: block}
}