/**
 * shop-public.css — Verkaufsseite (kein Login)
 *
 * Eigenes Layout, weil's kein eingeloggtes Portal ist. Türkis-Akzent
 * passend zur Landing-Page.
 */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body.shop-public-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f8fafc;
    color: #0f172a;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ==================== Topbar ==================== */
.shop-pub-topbar {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.shop-pub-topbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}
.shop-pub-brand {
    text-decoration: none;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
}
.shop-pub-logo {
    font-size: 26px;
    line-height: 1;
}
.shop-pub-nav {
    display: flex;
    gap: 24px;
    align-items: center;
}
.shop-pub-nav a {
    color: #475569;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}
.shop-pub-nav a:hover { color: #1d4ed8; }

.shop-pub-cart-link {
    background: #f1f5f9;
    padding: 8px 14px;
    border-radius: 8px;
}
.shop-pub-cart-link svg { stroke-width: 2; }

.shop-cart-badge {
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    min-width: 18px;
    text-align: center;
}

.shop-pub-portal-link {
    background: #1d4ed8;
    color: white !important;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background .15s;
}
.shop-pub-portal-link:hover {
    background: #086071 !important;
}

/* ==================== Hero ==================== */
.shop-pub-hero {
    background: linear-gradient(135deg, #1d4ed8 0%, #14a3b8 100%);
    color: white;
    padding: 60px 24px;
    text-align: center;
}
.shop-pub-hero-inner {
    max-width: 800px;
    margin: 0 auto;
}
.shop-pub-hero h1 {
    font-size: clamp(28px, 5vw, 42px);
    margin: 0 0 12px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.shop-pub-hero p {
    font-size: 17px;
    margin: 0;
    opacity: 0.95;
}

/* ==================== Main / Layout ==================== */
.shop-pub-main {
    min-height: calc(100vh - 56px - 200px);
}
.shop-pub-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
}

/* ==================== Sidebar (Kategorien) ==================== */
.shop-pub-sidebar h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin: 0 0 12px;
}
.shop-categories-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.shop-categories-list li {
    padding: 10px 14px;
    cursor: pointer;
    border-radius: 6px;
    color: #334155;
    font-size: 15px;
    transition: background .1s;
}
.shop-categories-list li:hover {
    background: #f1f5f9;
}
.shop-categories-list li.active {
    background: #1d4ed8;
    color: white;
    font-weight: 600;
}
.shop-cat-loading {
    color: #94a3b8;
    font-style: italic;
}

/* ==================== Toolbar ==================== */
.shop-pub-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
}
.shop-pub-search {
    flex: 1;
    max-width: 400px;
    padding: 10px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    background: white;
}
.shop-pub-search:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29,78,216,.15);
}
.shop-pub-count {
    color: #64748b;
    font-size: 14px;
}

/* ==================== Produkt-Grid ==================== */
.shop-pub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.shop-pub-loading,
.shop-pub-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 16px;
    color: #94a3b8;
    font-style: italic;
}

.shop-pub-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .15s, box-shadow .15s, border-color .15s;
    display: flex;
    flex-direction: column;
}
.shop-pub-card:hover {
    transform: translateY(-2px);
    border-color: #1d4ed8;
    box-shadow: 0 8px 24px rgba(29,78,216,.12);
}

.shop-pub-card-img {
    aspect-ratio: 4 / 3;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.shop-pub-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}
.shop-pub-card-placeholder {
    font-size: 56px;
    opacity: 0.2;
}
.shop-pub-featured-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #fbbf24;
    color: #78350f;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
}

.shop-pub-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.shop-pub-card-sku {
    font-family: ui-monospace, monospace;
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 4px;
}
.shop-pub-card-title {
    font-size: 16px;
    margin: 0 0 4px;
    color: #0f172a;
    font-weight: 600;
}
.shop-pub-card-sub {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 12px;
    flex: 1;
}
.shop-pub-card-foot {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}
.shop-pub-card-price {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}
.shop-pub-card-foot small {
    color: #94a3b8;
    font-size: 11px;
}
.shop-pub-stock-ok    { font-size: 12px; color: #15803d; font-weight: 500; }
.shop-pub-stock-out   { font-size: 12px; color: #b91c1c; font-weight: 500; }

/* ==================== Produkt-Detail (PDP) ==================== */
.shop-pub-pdp-back {
    display: inline-block;
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 16px;
}
.shop-pub-pdp-back:hover { color: #1d4ed8; }

.shop-pub-pdp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}
.shop-pub-pdp-gallery {
    position: sticky;
    top: 80px;
    align-self: start;
}
.shop-pub-pdp-main {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 12px;
}
.shop-pub-pdp-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 24px;
}
.shop-pub-pdp-main-empty {
    font-size: 80px;
    opacity: 0.2;
}
.shop-pub-pdp-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.shop-pub-pdp-thumb {
    width: 70px;
    height: 70px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    padding: 4px;
    transition: border-color .15s;
}
.shop-pub-pdp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.shop-pub-pdp-thumb.active {
    border-color: #1d4ed8;
}

.shop-pub-pdp-info {
    padding-left: 24px;
}
.shop-pub-pdp-sku {
    font-family: ui-monospace, monospace;
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 4px;
}
.shop-pub-pdp-title {
    font-size: 32px;
    margin: 0 0 8px;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.shop-pub-pdp-sub {
    font-size: 17px;
    color: #475569;
    margin: 0 0 24px;
}
.shop-pub-pdp-price {
    margin-bottom: 16px;
}
.shop-pub-pdp-price-gross {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    margin-right: 8px;
}
.shop-pub-pdp-price small {
    color: #94a3b8;
    font-size: 13px;
}
.shop-pub-pdp-stock-ok {
    color: #15803d;
    font-weight: 600;
    margin-bottom: 24px;
}
.shop-pub-pdp-stock-out {
    color: #b91c1c;
    font-weight: 600;
    margin-bottom: 24px;
}

.shop-pub-pdp-service {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 24px;
}
.shop-pub-pdp-service h4 {
    margin: 0 0 4px;
    font-size: 16px;
}
.shop-pub-pdp-service-hint {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 12px;
}
.shop-pub-pdp-service-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.shop-pub-pdp-service-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .15s;
}
.shop-pub-pdp-service-opt:hover {
    border-color: #1d4ed8;
}
.shop-pub-pdp-service-opt input:checked + span {
    color: #1d4ed8;
    font-weight: 600;
}

.shop-pub-pdp-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
}
.shop-pub-pdp-qty {
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
}
.shop-pub-qty-btn {
    border: none;
    background: white;
    width: 36px;
    height: 40px;
    cursor: pointer;
    font-size: 16px;
    color: #475569;
}
.shop-pub-qty-btn:hover { background: #f1f5f9; }
.shop-pub-pdp-qty input,
.shop-cart-qty-input {
    width: 50px;
    text-align: center;
    border: none;
    height: 40px;
    font-size: 15px;
    font-weight: 600;
    -moz-appearance: textfield;
}
.shop-pub-pdp-qty input::-webkit-outer-spin-button,
.shop-pub-pdp-qty input::-webkit-inner-spin-button,
.shop-cart-qty-input::-webkit-outer-spin-button,
.shop-cart-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.shop-pub-pdp-description {
    border-top: 1px solid #e2e8f0;
    padding-top: 24px;
}
.shop-pub-pdp-description h3 {
    margin: 0 0 12px;
    font-size: 18px;
}
.shop-pub-pdp-description p {
    margin: 0;
    color: #475569;
    line-height: 1.7;
    white-space: pre-wrap;
}

/* ==================== Buttons ==================== */
.shop-pub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: background .15s, transform .05s;
}
.shop-pub-btn:active { transform: translateY(1px); }
.shop-pub-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.shop-pub-btn-primary {
    background: #1d4ed8;
    color: white;
}
.shop-pub-btn-primary:hover { background: #086071; }
.shop-pub-btn-ghost {
    background: transparent;
    color: #475569;
    border: 1px solid #cbd5e1;
}
.shop-pub-btn-ghost:hover { background: #f8fafc; }
.shop-pub-btn-success {
    background: #15803d !important;
}
.shop-pub-btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    width: 100%;
}

/* ==================== Cart ==================== */
.shop-pub-cart-content {
    grid-template-columns: 1fr;
    max-width: 1100px;
}
.shop-pub-cart-content h1 {
    font-size: 32px;
    margin: 0 0 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.shop-cart-empty {
    text-align: center;
    padding: 80px 24px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
.shop-cart-empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}
.shop-cart-empty p {
    color: #64748b;
    margin-bottom: 24px;
    font-size: 16px;
}

.shop-cart-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
}

.shop-cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shop-cart-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto;
    gap: 16px;
    align-items: center;
}
.shop-cart-item-img {
    width: 80px;
    height: 80px;
    background: #f8fafc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.shop-cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}
.shop-cart-item-placeholder {
    font-size: 28px;
    opacity: 0.3;
}

.shop-cart-item-sku {
    font-family: ui-monospace, monospace;
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 2px;
}
.shop-cart-item-name {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
}
.shop-cart-item-price {
    color: #64748b;
    font-size: 13px;
}

.shop-cart-item-qty {
    display: flex;
    align-items: center;
    gap: 2px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
}
.shop-cart-item-qty .shop-pub-qty-btn { width: 28px; height: 32px; }
.shop-cart-qty-input { width: 40px; height: 32px; }

.shop-cart-item-total {
    font-weight: 700;
    color: #0f172a;
    font-size: 15px;
    min-width: 90px;
    text-align: right;
}

.shop-cart-item-remove {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 24px;
    padding: 4px 8px;
    border-radius: 4px;
    line-height: 1;
}
.shop-cart-item-remove:hover {
    color: #b91c1c;
    background: #fee2e2;
}

.shop-cart-summary {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    align-self: start;
    position: sticky;
    top: 80px;
}
.shop-cart-summary h3 {
    margin: 0 0 16px;
    font-size: 18px;
}
.shop-cart-totals-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}
.shop-cart-totals-row-final {
    border-top: 1px solid #e2e8f0;
    padding-top: 12px;
    margin-top: 8px;
    font-size: 18px;
    font-weight: 700;
}
.shop-cart-vat-toggle {
    margin: 16px 0;
    padding: 12px 0;
    border-top: 1px solid #e2e8f0;
}
.shop-pub-chk {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #475569;
}
.shop-cart-hint, .shop-cart-vat-note {
    color: #64748b;
    font-size: 12px;
    margin: 6px 0 0;
}
.shop-cart-summary .shop-pub-btn {
    margin-top: 8px;
}

/* ==================== Footer ==================== */
.shop-pub-footer {
    background: #0f172a;
    color: #cbd5e1;
    margin-top: 80px;
}
.shop-pub-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
}
.shop-pub-footer-col h4 {
    color: white;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 12px;
}
.shop-pub-footer-col p {
    margin: 0;
    line-height: 1.6;
    font-size: 14px;
}
.shop-pub-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.shop-pub-footer-col li {
    margin-bottom: 6px;
    font-size: 14px;
}
.shop-pub-footer-col a {
    color: #cbd5e1;
    text-decoration: none;
}
.shop-pub-footer-col a:hover {
    color: white;
}
.shop-pub-footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 16px 24px;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}
.shop-pub-footer-bottom p { margin: 0; }

/* ==================== Mobile ==================== */
@media (max-width: 900px) {
    .shop-pub-content {
        grid-template-columns: 1fr;
        padding: 24px 16px;
    }
    .shop-pub-sidebar {
        display: none;
    }
    .shop-pub-pdp-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .shop-pub-pdp-info {
        padding-left: 0;
    }
    .shop-pub-pdp-gallery {
        position: static;
    }
    .shop-cart-grid {
        grid-template-columns: 1fr;
    }
    .shop-cart-summary {
        position: static;
    }
    .shop-cart-item {
        grid-template-columns: 60px 1fr auto;
        gap: 12px;
    }
    .shop-cart-item-qty,
    .shop-cart-item-total {
        grid-column: 1 / -1;
        justify-self: end;
    }
    .shop-pub-footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ========== PLAN-SELECTOR auf Produktseite ========== */
.shop-pub-pdp-plans {
    margin: 24px 0;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
.shop-pub-pdp-plans h4 {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 600;
}
.shop-pub-pdp-plans-hint {
    color: #64748b;
    font-size: 13px;
    margin: 0 0 16px;
}
.plan-cards-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.plan-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 16px;
    position: relative;
    transition: all 0.15s;
    cursor: pointer;
}
.plan-card:hover {
    border-color: #93c5fd;
}
.plan-card.selected {
    border-color: var(--primary, #1d4ed8);
    background: linear-gradient(0deg, rgba(29,78,216,0.04), rgba(29,78,216,0));
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.12);
}
.plan-featured {
    border-color: rgba(29, 78, 216, 0.4);
}
.plan-card-badge {
    position: absolute;
    top: -10px;
    right: 12px;
    background: var(--primary, #1d4ed8);
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.plan-card h4 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #1d2432;
}
.plan-card-features ul {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
}
.plan-card-features li {
    padding: 3px 0 3px 20px;
    position: relative;
    font-size: 13px;
    color: #475569;
}
.plan-card-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary, #1d4ed8);
    font-weight: 700;
}
.plan-term-list {
    margin: 0 0 12px;
}
.plan-term-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}
.plan-term-opt:hover {
    background: #f1f5f9;
}
.plan-term-opt input {
    margin: 0;
}
.plan-term-label {
    flex-grow: 1;
    color: #1d2432;
    font-weight: 500;
}
.plan-term-price {
    font-size: 12px;
    color: #64748b;
}
.plan-card-empty {
    color: #94a3b8;
    font-style: italic;
    font-size: 13px;
    margin: 0 0 12px;
}
.plan-card-select {
    width: 100%;
    padding: 8px 12px;
    background: var(--primary, #1d4ed8);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.15s;
}
.plan-card-select:hover {
    background: var(--primary-dark, #1e40af);
}
.plan-card.selected .plan-card-select {
    background: #10b981;
}
.plan-deselect {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #64748b;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    margin-top: 10px;
}
.plan-deselect:hover {
    color: #1d2432;
    border-color: #94a3b8;
}

@media (max-width: 700px) {
    .plan-cards-row { grid-template-columns: 1fr; }
}

/* HTML-Beschreibung (TinyMCE) im Public-PDP */
.shop-pub-pdp-desc-body {
    line-height: 1.6;
}
.shop-pub-pdp-desc-body p { margin: 0 0 10px; }
.shop-pub-pdp-desc-body ul,
.shop-pub-pdp-desc-body ol { margin: 0 0 12px; padding-left: 22px; }
.shop-pub-pdp-desc-body li { margin: 4px 0; }
.shop-pub-pdp-desc-body strong { font-weight: 700; }
.shop-pub-pdp-desc-body em { font-style: italic; }
.shop-pub-pdp-desc-body h2, .shop-pub-pdp-desc-body h3, .shop-pub-pdp-desc-body h4 {
    margin: 14px 0 8px;
    line-height: 1.3;
}
.shop-pub-pdp-desc-body a {
    color: #1d4ed8;
    text-decoration: underline;
}

/* ========== CHECKOUT-LEGAL-SECTION (Button-Loesung) ========== */
.shop-checkout-legal {
    background: #f8fafc;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    padding: 20px;
    margin: 24px 0 16px;
}
.shop-checkout-legal h2 {
    margin: 0 0 16px;
    color: #1d2432;
}
.shop-legal-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}
.shop-legal-row:last-of-type {
    border-bottom: none;
}
.shop-legal-row input[type=checkbox] {
    flex-shrink: 0;
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: #1d4ed8;
    cursor: pointer;
}
.shop-legal-row a {
    color: #1d4ed8;
    text-decoration: underline;
}
.shop-legal-row a:hover {
    color: #1e40af;
}
.shop-legal-row strong {
    font-weight: 700;
}
.shop-legal-info {
    margin: 14px 0 0;
    padding: 12px 14px;
    background: #eff6ff;
    border-left: 3px solid #1d4ed8;
    border-radius: 4px;
    color: #475569;
    font-size: 13px;
    line-height: 1.5;
}
.shop-legal-info a {
    color: #1d4ed8;
    text-decoration: underline;
}
.shop-checkout-disclaimer {
    color: #64748b;
    font-size: 13px;
    text-align: center;
    margin: 8px 0 24px;
}
.shop-pub-btn-primary:disabled {
    background: #cbd5e1;
    color: #64748b;
    cursor: not-allowed;
}

/* ========== CHECKOUT-PAGE-LAYOUT ========== */
.shop-checkout {
    padding: 32px 0;
    background: #f8fafc;
    min-height: 70vh;
}
.shop-checkout .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}
.shop-checkout h1 {
    margin: 0 0 24px;
    font-size: 28px;
    color: #1d2432;
}
.shop-checkout-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
}
.shop-checkout-form {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.shop-checkout-section {
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
}
.shop-checkout-section:first-child {
    padding-top: 0;
}
.shop-checkout-section:last-of-type {
    border-bottom: none;
}
.shop-checkout-section h2 {
    margin: 0 0 16px;
    font-size: 18px;
    color: #1d2432;
}
.shop-checkout-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
.shop-checkout-row.shop-checkout-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
}
.shop-checkout-row.shop-checkout-row-full {
    grid-template-columns: 1fr;
}
.shop-checkout-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
}
.shop-checkout-form input[type=text],
.shop-checkout-form input[type=email],
.shop-checkout-form input[type=tel],
.shop-checkout-form select,
.shop-checkout-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #ffffff;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.shop-checkout-form input:focus,
.shop-checkout-form select:focus,
.shop-checkout-form textarea:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}
.shop-checkout-form textarea {
    resize: vertical;
}
.shop-checkout-summary {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 16px;
    height: fit-content;
}
.shop-checkout-summary h3 {
    margin: 0 0 16px;
    font-size: 16px;
    color: #1d2432;
}
.shop-checkout-summary .summary-line {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 14px;
    color: #475569;
}
.shop-checkout-summary .summary-total {
    border-top: 2px solid #1d2432;
    margin-top: 10px;
    padding-top: 10px;
    font-size: 17px;
    font-weight: 700;
    color: #1d2432;
}
.shop-checkout-error {
    background: #fee2e2;
    border-left: 3px solid #ef4444;
    padding: 10px 14px;
    border-radius: 4px;
    color: #991b1b;
    font-size: 14px;
    margin: 10px 0;
}
.shop-pub-btn-lg {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 16px;
}

@media (max-width: 900px) {
    .shop-checkout-grid {
        grid-template-columns: 1fr;
    }
    .shop-checkout-summary {
        position: static;
    }
}
@media (max-width: 600px) {
    .shop-checkout-row,
    .shop-checkout-row.shop-checkout-row-3 {
        grid-template-columns: 1fr;
    }
}
