.smartmedix-section {
    scroll-margin-top: 90px;
}

.smartmedix-page-section {
    min-height: calc(100vh - 72px);
}

.smartmedix-order-page {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 14% 12%, color-mix(in oklab, var(--secondary) 70%, transparent), transparent 30%),
        radial-gradient(circle at 86% 8%, color-mix(in oklab, var(--accent) 45%, transparent), transparent 28%),
        linear-gradient(180deg, var(--background), color-mix(in oklab, var(--secondary) 28%, var(--background)));
}

.smartmedix-page-layout {
    display: grid;
    gap: 32px;
    align-items: start;
}

.smartmedix-centered-layout {
    display: grid;
    gap: 28px;
    position: relative;
    z-index: 1;
}

.smartmedix-centered-header {
    display: grid;
    justify-items: center;
    text-align: center;
}

.smartmedix-phone-card {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 24px;
    border: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
    border-radius: 1.5rem;
    background: color-mix(in oklab, var(--secondary) 40%, transparent);
}

.smartmedix-order-panel {
    width: 100%;
    padding: clamp(20px, 3vw, 34px);
    border: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
    border-radius: 2rem;
    background: color-mix(in oklab, var(--background) 88%, transparent);
    box-shadow: 0 28px 80px color-mix(in oklab, var(--foreground) 9%, transparent);
}

.smartmedix-page-intro {
    max-width: 680px;
}

.smartmedix-page-main {
    min-width: 0;
}

@media (min-width: 1024px) {
    .smartmedix-page-layout {
        grid-template-columns: minmax(280px, 0.34fr) minmax(0, 1fr);
        gap: 56px;
    }

    .smartmedix-page-intro {
        position: sticky;
        top: 110px;
    }
}

.smartmedix-switch {
    display: inline-flex;
    width: fit-content;
    padding: 4px;
    gap: 4px;
    border: 1px solid color-mix(in oklab, var(--border) 80%, transparent);
    border-radius: 9999px;
    background: var(--background);
    box-shadow: 0 10px 30px color-mix(in oklab, var(--foreground) 8%, transparent);
}

.smartmedix-switch-button {
    border: 0;
    border-radius: 9999px;
    padding: 10px 16px;
    background: transparent;
    color: color-mix(in oklab, var(--foreground) 72%, transparent);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.smartmedix-switch-button.is-active {
    background: var(--primary);
    color: var(--primary-foreground);
    box-shadow: 0 8px 18px color-mix(in oklab, var(--primary) 22%, transparent);
}

.smartmedix-frame-shell {
    overflow: hidden;
    border: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
    border-radius: 1.5rem;
    background: var(--background);
    box-shadow: 0 24px 70px color-mix(in oklab, var(--foreground) 10%, transparent);
}

.smartmedix-frame-shell.is-hidden {
    display: none;
}

.smartmedix-frame-shell iframe {
    display: block;
    width: 100%;
    min-height: 760px;
    border: 0;
    background: #fff;
}

.smartmedix-fallback {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
    font-size: 14px;
}

.smartmedix-fallback a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.smartmedix-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.smartmedix-choice {
    min-height: 156px;
    padding: 30px;
    border: 1px solid color-mix(in oklab, var(--primary) 18%, var(--border));
    border-radius: 1.5rem;
    background: linear-gradient(180deg, var(--background), color-mix(in oklab, var(--secondary) 34%, var(--background)));
    text-align: left;
    cursor: pointer;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.smartmedix-choice:hover,
.smartmedix-choice.is-active {
    border-color: color-mix(in oklab, var(--primary) 45%, transparent);
    box-shadow: 0 18px 42px color-mix(in oklab, var(--primary) 15%, transparent);
    transform: translateY(-2px);
}

.smartmedix-choice.is-active {
    background: color-mix(in oklab, var(--primary) 9%, var(--background));
}

.smartmedix-choice-label {
    display: block;
    font-family: var(--font-serif);
    font-size: 28px;
    line-height: 1.2;
    color: var(--foreground);
}

.smartmedix-choice-note {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: var(--muted-foreground);
}

@media (max-width: 640px) {
    .smartmedix-switch {
        display: grid;
        width: 100%;
        grid-template-columns: 1fr;
        border-radius: 1rem;
    }

    .smartmedix-switch-button {
        border-radius: 0.75rem;
    }

    .smartmedix-frame-shell iframe {
        min-height: 680px;
    }

    .smartmedix-choice-grid {
        grid-template-columns: 1fr;
    }
}
