/* ═══════════════════════════════════════════════════════
   GUEST CHECKOUT — Premium Checkout Styles
   The Buut B Store — Modern UK Retail
   ═══════════════════════════════════════════════════════ */

/* ── Progress Bar ── */
.gc-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 24px 0 32px;
    max-width: 600px;
    margin: 0 auto;
}

.gc-step-item {
    display: flex;
    align-items: center;
    flex: 1;
    position: relative;
}

.gc-step-item:last-child {
    flex: 0;
}

.gc-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 13px;
    background: #f1f5f9;
    color: #94a3b8;
    border: 2px solid #e2e8f0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.gc-step-circle svg {
    width: 18px;
    height: 18px;
    stroke-width: 3;
}

.gc-step-item.active .gc-step-circle {
    background: #1e293b;
    color: #fff;
    border-color: #1e293b;
    box-shadow: 0 0 0 4px rgba(30, 41, 59, 0.15), 0 4px 12px rgba(30, 41, 59, 0.25);
    transform: scale(1.1);
}

.gc-step-item.completed .gc-step-circle {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.gc-step-line {
    flex: 1;
    height: 3px;
    background: #e2e8f0;
    margin: 0 8px;
    border-radius: 99px;
    position: relative;
    overflow: hidden;
}

.gc-step-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: #10b981;
    border-radius: 99px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gc-step-item.completed + .gc-step-item .gc-step-line::after,
.gc-step-item.completed .gc-step-line::after {
    width: 100%;
}

.gc-step-label {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.gc-step-item.active .gc-step-label {
    color: #1e293b;
}

.gc-step-item.completed .gc-step-label {
    color: #10b981;
}

/* ── Step Container & Transitions ── */
.gc-steps-wrapper {
    position: relative;
    overflow: hidden;
}

.gc-step-panel {
    display: none;
    animation: gcSlideIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.gc-step-panel.active {
    display: block;
}

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

@keyframes gcSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-30px);
    }
}

/* ── Form Styles ── */
.gc-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gc-form-group label {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gc-form-group label .required {
    color: #ef4444;
    margin-left: 2px;
}

.gc-input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    outline: none;
    transition: all 0.25s ease;
}

.gc-input:focus {
    border-color: #1e293b;
    box-shadow: 0 0 0 4px rgba(30, 41, 59, 0.08);
}

.gc-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}

.gc-input::placeholder {
    color: #cbd5e1;
    font-weight: 400;
}

textarea.gc-input {
    resize: vertical;
    min-height: 80px;
}

.gc-error-msg {
    font-size: 11px;
    font-weight: 600;
    color: #ef4444;
    display: none;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.gc-error-msg.show {
    display: flex;
}

/* ── Section Card ── */
.gc-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.gc-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.gc-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 12px;
}

.gc-card-header .gc-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #f0fdf4;
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gc-card-header h3 {
    font-size: 16px;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.01em;
}

.gc-card-body {
    padding: 24px;
}

/* ── Cart Items ── */
.gc-cart-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f8fafc;
    align-items: center;
    transition: all 0.2s ease;
}

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

.gc-cart-item:hover {
    background: #fafafa;
    margin: 0 -16px;
    padding: 16px;
    border-radius: 12px;
}

.gc-cart-img {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    overflow: hidden;
    background: #f8fafc;
    flex-shrink: 0;
    border: 1px solid #f1f5f9;
}

.gc-cart-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
}

.gc-cart-info {
    flex: 1;
    min-width: 0;
}

.gc-cart-name {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
    line-height: 1.3;
}

.gc-cart-meta {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gc-cart-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.gc-cart-price {
    font-size: 16px;
    font-weight: 900;
    color: #1e293b;
    letter-spacing: -0.02em;
}

.gc-qty-controls {
    display: flex;
    align-items: center;
    gap: 2px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 2px;
}

.gc-qty-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    font-weight: 900;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.gc-qty-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.gc-qty-value {
    font-size: 13px;
    font-weight: 800;
    color: #1e293b;
    min-width: 28px;
    text-align: center;
}

.gc-remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #cbd5e1;
    padding: 4px;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.gc-remove-btn:hover {
    color: #ef4444;
    background: #fef2f2;
}

/* ── Order Summary Sidebar ── */
.gc-summary {
    position: sticky;
    top: 90px;
}

.gc-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.gc-summary-row .label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gc-summary-row .value {
    font-weight: 700;
    color: #1e293b;
}

.gc-summary-row.total {
    padding: 16px 0 0;
    margin-top: 12px;
    border-top: 2px solid #f1f5f9;
}

.gc-summary-row.total .label {
    font-size: 16px;
    font-weight: 800;
    color: #1e293b;
}

.gc-summary-row.total .value {
    font-size: 28px;
    font-weight: 900;
    color: #1e293b;
    letter-spacing: -0.03em;
}

.gc-weight-badge {
    font-size: 10px;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 6px;
    font-family: monospace;
    font-weight: 700;
    color: #64748b;
}

/* ── Buttons ── */
.gc-btn-primary {
    width: 100%;
    padding: 18px 32px;
    border-radius: 16px;
    background: #1e293b;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(30, 41, 59, 0.2);
}

.gc-btn-primary:hover {
    background: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(30, 41, 59, 0.3);
}

.gc-btn-primary:active {
    transform: translateY(0);
}

.gc-btn-primary:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.gc-btn-primary.gc-btn-green {
    background: #10b981;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
}

.gc-btn-primary.gc-btn-green:hover {
    background: #059669;
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.35);
}

.gc-btn-secondary {
    width: 100%;
    padding: 14px 24px;
    border-radius: 14px;
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    font-size: 13px;
    border: 1.5px solid #e2e8f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.gc-btn-secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* ── Trust Signals ── */
.gc-trust {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: #fafffe;
    border: 1px solid #d1fae5;
    border-radius: 16px;
}

.gc-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.gc-trust-item i,
.gc-trust-item svg {
    color: #10b981;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ── Payment Methods ── */
.gc-payment-option {
    padding: 20px;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 16px;
}

.gc-payment-option:hover {
    border-color: #cbd5e1;
}

.gc-payment-option.selected {
    border-color: #1e293b;
    background: #f8fafc;
    box-shadow: 0 0 0 4px rgba(30, 41, 59, 0.05);
}

.gc-payment-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gc-payment-info h4 {
    font-size: 14px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 2px;
}

.gc-payment-info p {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

/* ── Empty Cart ── */
.gc-empty-cart {
    text-align: center;
    padding: 60px 24px;
}

.gc-empty-cart-icon {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: #f8fafc;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
}

.gc-empty-cart h3 {
    font-size: 22px;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 8px;
}

.gc-empty-cart p {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 24px;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Secure Checkout Badge ── */
.gc-secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ── Loading Spinner ── */
.gc-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: gcSpin 0.6s linear infinite;
}

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

/* ── Responsive ── */
@media (max-width: 1024px) {
    .gc-layout {
        grid-template-columns: 1fr !important;
    }

    .gc-summary {
        position: static;
    }
}

@media (max-width: 640px) {
    .gc-progress {
        padding: 16px 0 28px;
        gap: 0;
    }

    .gc-step-circle {
        width: 34px;
        height: 34px;
        font-size: 11px;
    }

    .gc-step-label {
        font-size: 8px;
    }

    .gc-cart-item {
        gap: 12px;
    }

    .gc-cart-img {
        width: 56px;
        height: 56px;
    }

    .gc-card-body {
        padding: 16px;
    }

    .gc-btn-primary {
        padding: 16px 24px;
        font-size: 13px;
    }

    .gc-summary-row.total .value {
        font-size: 24px;
    }
}

/* ── Back Button ── */
.gc-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 0;
    transition: color 0.2s;
    margin-bottom: 16px;
}

.gc-back-btn:hover {
    color: #1e293b;
}

/* ── Guest Info Banner ── */
.gc-guest-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #eff6ff, #f0fdf4);
    border: 1px solid #d1fae5;
    border-radius: 14px;
    margin-bottom: 24px;
}

.gc-guest-banner p {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.gc-guest-banner p strong {
    color: #1e293b;
}

.gc-guest-banner a {
    color: #10b981;
    font-weight: 700;
    text-decoration: none;
}

.gc-guest-banner a:hover {
    text-decoration: underline;
}

/* ── Shipping recalc notice ── */
.gc-shipping-recalc {
    font-size: 11px;
    color: #f59e0b;
    font-weight: 600;
    display: none;
    align-items: center;
    gap: 4px;
    animation: gcFadeIn 0.3s ease;
}

.gc-shipping-recalc.show {
    display: flex;
}

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