/* Sample order — public funnel page */

/* Hide the global "Get 10% Off" newsletter banner on this page only —
   the funnel has its own conversion path and the prospect already has a code. */
.shb-newsletter-banner { display: none !important; }

/* Hide the global sample-pack promos (top bar, inline card, exit-intent popup) —
   they advertise a paid 10-for-$9.99 product, which makes no sense for a
   designer who just landed here with a free-sample code. */
#shb-sample-popup,
#shb-sample-bar,
.shb-sample-card { display: none !important; }
body.shb-sample-bar-visible { padding-top: 0 !important; }

.shb-sample-order {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1f2937;
}

.shb-so-h1 {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 12px;
}

.shb-so-sub {
    color: #6b7280;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 24px;
}
.shb-so-sub p {
    margin: 0 0 12px;
}
.shb-so-sub p:last-child {
    margin-bottom: 0;
}

.shb-so-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
}

.shb-so-code-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 380px;
}

.shb-so-label {
    font-weight: 600;
    font-size: 13px;
    color: #374151;
}

.shb-so-code-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 18px;
    font-family: "SF Mono", Menlo, monospace;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #fafafa;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
}
.shb-so-code-input:focus {
    border-color: #a013a8;
    background: #fff;
}

.shb-so-btn {
    appearance: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s, transform 0.05s;
}
.shb-so-btn-primary {
    background: #a013a8;
    color: #fff;
}
.shb-so-btn-primary:hover { background: #8a0f91; }
.shb-so-btn-primary:active { transform: translateY(1px); }
.shb-so-btn-disabled {
    background: #e5e7eb !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
}
.shb-so-btn-ghost {
    background: #f3f4f6;
    color: #374151;
}
.shb-so-btn-link {
    background: none;
    border: none;
    color: #b91c1c;
    cursor: pointer;
    font-size: 13px;
    padding: 6px;
}
.shb-so-btn-link:hover { text-decoration: underline; }

.shb-so-error {
    background: #fef2f2;
    color: #b91c1c;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid #fecaca;
}

/* Banner */
.shb-so-banner {
    display: flex;
    gap: 14px;
    align-items: center;
    background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
    border: 1px solid #fcd34d;
    color: #78350f;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 18px;
}
.shb-so-banner-icon {
    font-size: 24px;
    line-height: 1;
}
.shb-so-banner-text {
    flex: 1;
    line-height: 1.4;
    font-size: 13.5px;
}
.shb-so-banner-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 2px;
}
.shb-so-banner-row > strong {
    color: #92400e;
    font-size: 15px;
}
.shb-so-banner-count {
    color: #78350f;
    font-size: 13px;
    white-space: nowrap;
}
.shb-so-banner-count strong {
    color: #92400e;
    font-size: 15px;
}
.shb-so-banner-note {
    margin-top: 4px;
    font-size: 12.5px;
    color: #a16207;
    font-style: italic;
}
.shb-so-count-full {
    color: #b91c1c;
    font-weight: 600;
}
.shb-so-count-full strong { color: #b91c1c; }

/* Drop zone */
.shb-so-drop {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 14px 20px;
    background: #fafafa;
    transition: border-color 0.15s, background 0.15s;
    cursor: pointer;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.shb-so-drop:hover, .shb-so-drop.is-over {
    border-color: #a013a8;
    background: #fdf4ff;
}
.shb-so-drop-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.shb-so-drop-icon {
    font-size: 24px;
    color: #9ca3af;
    line-height: 1;
}
.shb-so-drop-title {
    font-size: 14px;
    font-weight: 600;
}
.shb-so-drop-hint {
    font-size: 12.5px;
    color: #6b7280;
    margin-left: auto;
    text-align: right;
}
.shb-so-drop-link {
    color: #a013a8;
    text-decoration: underline;
    cursor: pointer;
}

/* Design grid */
.shb-so-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 96px; /* room for footer */
}

.shb-so-card-design {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.shb-so-thumb {
    aspect-ratio: 1 / 1;
    background: #f3f4f6;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.shb-so-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.shb-so-thumb-loading, .shb-so-thumb-error {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    padding: 10px;
}
.shb-so-thumb-error {
    color: #b91c1c;
}

.shb-so-name {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shb-so-row {
    display: flex;
    gap: 8px;
}
.shb-so-row > * {
    flex: 1;
}

.shb-so-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.shb-so-field-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.shb-so-field-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #6b7280;
    letter-spacing: 0.5px;
}
.shb-so-select,
.shb-so-num {
    appearance: none;
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    width: 100%;
}
.shb-so-num {
    -moz-appearance: textfield;
}
.shb-so-num::-webkit-outer-spin-button,
.shb-so-num::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.shb-so-pills {
    display: flex;
    gap: 4px;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 3px;
}
.shb-so-pill {
    flex: 1;
    appearance: none;
    border: 0;
    background: transparent;
    text-align: center;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: background 0.1s, color 0.1s;
    font-family: inherit;
}
.shb-so-pill:hover {
    color: #1f2937;
}
.shb-so-pill.is-selected {
    background: #fff;
    color: #a013a8;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.shb-so-remove {
    align-self: flex-end;
}

/* Sticky footer */
.shb-so-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    z-index: 100;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
}
.shb-so-footer-total {
    font-size: 14px;
    color: #6b7280;
}
.shb-so-footer-total strong {
    color: #1f2937;
    font-size: 18px;
}

/* Checkout modal */
.shb-so-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}
.shb-so-modal-box {
    background: #fff;
    border-radius: 14px;
    padding: 32px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}
.shb-so-modal-box h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
}
.shb-so-modal-sub {
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 24px;
    line-height: 1.5;
}
.shb-so-form-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 12px;
}
.shb-so-form-grid .shb-so-field label {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
    display: block;
}
.shb-so-form-grid input,
.shb-so-form-grid select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
}
.shb-so-form-grid input:focus,
.shb-so-form-grid select:focus {
    outline: none;
    border-color: #a013a8;
    box-shadow: 0 0 0 3px rgba(160, 19, 168, 0.12);
}
.shb-so-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

/* Done state */
.shb-so-done {
    text-align: center;
    padding: 48px 32px;
}
.shb-so-done-icon {
    font-size: 56px;
    color: #16a34a;
    margin-bottom: 16px;
}

/* ---- Auto-redeem loading card (?code= invite link) ---- */
.shb-so-loading-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 56px 32px;
    text-align: center;
}
.shb-so-spinner {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid #f3e0f5;
    border-top-color: #a013a8;
    animation: shb-so-spin 0.7s linear infinite;
}
@keyframes shb-so-spin { to { transform: rotate(360deg); } }
.shb-so-loading-text {
    font-size: 15px;
    font-weight: 600;
    color: #6b7280;
}

/* ---- Trust / IP-ownership note ---- */
.shb-so-trust {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 14px 16px;
    color: #14532d;
    font-size: 14px;
    line-height: 1.5;
}
.shb-so-trust-icon { font-size: 18px; line-height: 1.4; }
.shb-so-trust-text strong { color: #166534; }
.shb-so-trust-text a {
    color: #166534;
    font-weight: 600;
    text-decoration: underline;
    white-space: nowrap;
}
.shb-so-trust-upload { margin-bottom: 18px; }

/* ---- Gate promo (shown under the code form) ---- */
.shb-so-promo {
    margin-top: 28px;
    padding-top: 4px;
}
.shb-so-promo > .shb-so-trust { margin-bottom: 24px; }
.shb-so-promo-h2 {
    font-size: 20px;
    font-weight: 800;
    color: #1f2937;
    margin: 28px 0 16px;
    letter-spacing: -0.01em;
}
.shb-so-promo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.shb-so-promo-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px 20px;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.shb-so-promo-card:hover {
    border-color: #f3d7f5;
    box-shadow: 0 10px 26px rgba(160, 19, 168, 0.07);
    transform: translateY(-2px);
}
.shb-so-promo-card h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: #a013a8;
}
.shb-so-promo-card p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: #4b5563;
}

/* ---- Demo video with click-to-play overlay ---- */
.shb-so-video {
    position: relative;
    margin: 0 0 4px;
    border-radius: 14px;
    overflow: hidden;
    background: #0b0b14;
    box-shadow: 0 14px 40px rgba(11, 11, 20, 0.16);
    cursor: pointer;
}
.shb-so-video video { width: 100%; height: auto; display: block; }
.shb-so-video-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: radial-gradient(circle at center, rgba(0,0,0,.12) 0%, rgba(0,0,0,.45) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.25s ease;
}
.shb-so-video-play {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #a013a8;
    padding-left: 4px;
    box-shadow: 0 12px 40px rgba(0,0,0,.35), 0 0 0 6px rgba(255,255,255,.18);
    transition: transform 0.15s ease, background 0.15s ease;
}
.shb-so-video-cover:hover .shb-so-video-play {
    transform: scale(1.08);
    background: #facc15;
    color: #1f2937;
}
.shb-so-video-label {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0,0,0,.45);
}
.shb-so-video.playing .shb-so-video-cover {
    opacity: 0;
    pointer-events: none;
}

/* ---- Promo actions + fallback ---- */
.shb-so-promo-actions {
    margin-top: 20px;
}
.shb-so-promo-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    color: #a013a8;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.15s;
}
.shb-so-promo-link:hover { border-bottom-color: #a013a8; }
.shb-so-fallback {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    font-size: 13.5px;
    color: #6b7280;
}
.shb-so-fallback a {
    color: #a013a8;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.shb-so-fallback a:hover { text-decoration: underline; }

@media (max-width: 600px) {
    .shb-sample-order { padding: 0 16px; margin: 24px auto; }
    .shb-so-card { padding: 24px; }
    .shb-so-form-grid .shb-so-field { grid-column: span 12 !important; }
    .shb-so-footer { padding: 12px 16px; }
    .shb-so-footer-total { font-size: 13px; }
    .shb-so-footer-total strong { font-size: 16px; }
    .shb-so-promo-grid { grid-template-columns: 1fr; }
    .shb-so-video-play { width: 64px; height: 64px; font-size: 22px; }
}
