.checkout-wrapper {
    padding: 40px 0;
}

.checkout-header {
    margin-bottom: 40px;
}

.checkout-header h1 {
    color: var(--primary);
}

.progress-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.progress-step {
    flex: 1;
    text-align: center;
    font-weight: 600;
    color: var(--text-gray);
    position: relative;
}

.progress-step.active {
    color: var(--accent);
}

.checkout-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.main-checkout {
    flex: 2;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.checkout-summary {
    flex: 1;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 20px;
}

.checkout-step h2 {
    margin-bottom: 25px;
    color: var(--primary);
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 10px;
}

.checkout-templates-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.template-option {
    border: 2px solid var(--bg-light);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
}

.template-option img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.template-option p {
    text-align: center;
    padding: 10px;
    font-weight: 500;
}

.template-option:hover {
    border-color: var(--accent);
}

.template-option.selected {
    border-color: var(--primary);
    background-color: rgba(10, 25, 47, 0.05);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 15px;
}

.upsell-box {
    background-color: #fffbeb;
    border: 2px dashed #f59e0b;
    padding: 20px;
    border-radius: 8px;
    cursor: pointer;
}

.custom-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    cursor: pointer;
}

.custom-checkbox input {
    margin-top: 5px;
    transform: scale(1.5);
    cursor: pointer;
}

.trust-badges {
    border-top: 1px solid #eee;
    padding-top: 20px;
    color: #10b981;
    font-weight: 600;
}

.trust-badges p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border-left-color: var(--primary);
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

hr {
    border: 0;
    border-top: 1px solid #eee;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .checkout-content {
        flex-direction: column;
    }
    .checkout-summary {
        width: 100%;
    }
}
