.smartmedix-page-section {
    min-height: calc(100vh - 72px);
}

.smartmedix-order-page {
    --accent-orange: oklch(64% 0.17 62);
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 5% 15%, color-mix(in oklab, var(--primary) 14%, transparent) 0%, transparent 50%),
        radial-gradient(circle at 95% 25%, color-mix(in oklab, var(--accent-orange) 10%, transparent) 0%, transparent 45%),
        linear-gradient(180deg, var(--background) 0%, color-mix(in oklab, var(--secondary) 20%, var(--background)) 100%);
}

.smartmedix-centered-layout {
    display: grid;
    gap: 28px;
    position: relative;
    z-index: 1;
    min-width: 0;
}

.smartmedix-centered-header {
    display: grid;
    justify-items: center;
    text-align: center;
}

.smartmedix-phone-card {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    border: 1px solid color-mix(in oklab, var(--border) 40%, transparent);
    border-radius: 1.75rem;
    background: color-mix(in oklab, var(--background) 50%, transparent);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px color-mix(in oklab, var(--foreground) 2%, transparent);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    text-align: left;
    min-width: 0;
    transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.smartmedix-phone-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in oklab, var(--primary) 40%, transparent);
    box-shadow: 0 14px 35px color-mix(in oklab, var(--primary) 6%, transparent);
}

.smartmedix-phone-icon {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    background: color-mix(in oklab, var(--primary) 10%, transparent);
    color: var(--primary);
    flex: 0 0 auto;
}

@media (max-width: 640px) {
    .smartmedix-phone-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.25rem 1.5rem;
    }
}

.smartmedix-order-panel {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.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-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.smartmedix-choice {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    padding: 2.5rem 2.25rem;
    border-radius: 2rem;
    text-align: left;
    cursor: pointer;
    transition: border-color 260ms ease, box-shadow 260ms ease, transform 260ms cubic-bezier(0.16, 1, 0.3, 1), background-color 260ms ease;
    position: relative;
    width: 100%;
    min-width: 0;
}
.smartmedix-choice:nth-child(1) {
    border: 2px solid color-mix(in oklab, var(--primary) 35%, var(--border));
    background: linear-gradient(135deg, color-mix(in oklab, var(--primary) 15%, var(--background)), color-mix(in oklab, var(--primary) 3%, var(--background)));
    box-shadow: 0 12px 35px color-mix(in oklab, var(--primary) 8%, transparent);
}

.smartmedix-choice:nth-child(1):hover {
    border-color: var(--primary);
    box-shadow: 0 20px 48px color-mix(in oklab, var(--primary) 22%, transparent), 0 0 0 5px color-mix(in oklab, var(--primary) 12%, transparent);
    transform: translateY(-6px) scale(1.025);
}

.smartmedix-choice:nth-child(1).is-active {
    border-color: var(--primary);
    background: linear-gradient(135deg, color-mix(in oklab, var(--primary) 24%, var(--background)), color-mix(in oklab, var(--primary) 8%, var(--background))) !important;
    box-shadow: 0 16px 40px color-mix(in oklab, var(--primary) 16%, transparent);
}
.smartmedix-choice:nth-child(2) {
    border: 2px solid color-mix(in oklab, var(--accent-orange) 28%, var(--border));
    background: linear-gradient(135deg, color-mix(in oklab, var(--accent-orange) 12%, var(--background)), color-mix(in oklab, var(--accent-orange) 2%, var(--background)));
    box-shadow: 0 12px 35px color-mix(in oklab, var(--accent-orange) 6%, transparent);
}

.smartmedix-choice:nth-child(2):hover {
    border-color: var(--accent-orange);
    box-shadow: 0 20px 48px color-mix(in oklab, var(--accent-orange) 18%, transparent), 0 0 0 5px color-mix(in oklab, var(--accent-orange) 8%, transparent);
    transform: translateY(-6px) scale(1.025);
}

.smartmedix-choice:nth-child(2).is-active {
    border-color: var(--accent-orange);
    background: linear-gradient(135deg, color-mix(in oklab, var(--accent-orange) 20%, var(--background)), color-mix(in oklab, var(--accent-orange) 6%, var(--background))) !important;
    box-shadow: 0 16px 40px color-mix(in oklab, var(--accent-orange) 14%, transparent);
}

.smartmedix-choice-icon-wrapper {
    display: grid;
    place-items: center;
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 1.2rem;
    background: var(--background);
    color: var(--primary);
    flex: 0 0 auto;
    transition: transform 260ms ease, background-color 260ms ease, color 260ms ease, box-shadow 260ms ease;
    box-shadow: 0 4px 12px color-mix(in oklab, var(--foreground) 3%, transparent);
}

.smartmedix-choice:nth-child(2) .smartmedix-choice-icon-wrapper {
    color: var(--accent-orange);
}

.smartmedix-choice:hover .smartmedix-choice-icon-wrapper {
    transform: scale(1.1) rotate(4deg);
    background-color: var(--primary);
    color: var(--primary-foreground);
    box-shadow: 0 8px 20px color-mix(in oklab, var(--primary) 25%, transparent);
}

.smartmedix-choice:nth-child(2):hover .smartmedix-choice-icon-wrapper {
    background-color: var(--accent-orange);
    color: var(--primary-foreground);
    box-shadow: 0 8px 20px color-mix(in oklab, var(--accent-orange) 25%, transparent);
}

.smartmedix-choice-content {
    min-width: 0;
}

.smartmedix-choice-label {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--foreground);
    margin-bottom: 0.35rem;
    transition: color 220ms ease;
}

.smartmedix-choice:hover .smartmedix-choice-label {
    color: var(--primary);
}

.smartmedix-choice:nth-child(2):hover .smartmedix-choice-label {
    color: var(--accent-orange);
}

.smartmedix-choice-note {
    display: block;
    font-size: 0.9rem;
    color: var(--muted-foreground);
    line-height: 1.45;
}

.smartmedix-choice-chevron {
    margin-left: auto;
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: color-mix(in oklab, var(--border) 40%, transparent);
    color: var(--muted-foreground);
    transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), background-color 260ms ease, color 260ms ease;
    flex-shrink: 0;
}

.smartmedix-choice:hover .smartmedix-choice-chevron {
    transform: translateX(4px);
}

.smartmedix-choice:nth-child(1):hover .smartmedix-choice-chevron {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.smartmedix-choice:nth-child(2):hover .smartmedix-choice-chevron {
    background-color: var(--accent-orange);
    color: var(--primary-foreground);
}
.smartmedix-choice-grid:has(.is-active) .smartmedix-choice:not(.is-active) {
    opacity: 0.45;
    filter: grayscale(30%) blur(0.5px);
    border-color: color-mix(in oklab, var(--border) 40%, transparent);
    box-shadow: none;
    transform: scale(0.985);
}

.smartmedix-location-panel {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    border: 1px solid color-mix(in oklab, var(--primary) 22%, var(--border));
    border-radius: 1.5rem;
    background: color-mix(in oklab, var(--background) 88%, var(--primary));
    box-shadow: 0 14px 36px color-mix(in oklab, var(--foreground) 6%, transparent);
}

.smartmedix-location-panel.is-hidden {
    display: none;
}

.smartmedix-location-header {
    margin-bottom: 1rem;
}

.smartmedix-location-kicker {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary);
}

.smartmedix-location-header h2 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--foreground);
}

.smartmedix-location-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.smartmedix-location-choice {
    display: flex;
    min-width: 0;
    min-height: 6.25rem;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    padding: 1.25rem;
    border: 1px solid color-mix(in oklab, var(--primary) 24%, var(--border));
    border-radius: 1rem;
    background: var(--background);
    text-align: left;
    cursor: pointer;
    transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease, background-color 220ms ease;
}

.smartmedix-location-choice:hover,
.smartmedix-location-choice.is-active {
    border-color: var(--primary);
    background: color-mix(in oklab, var(--primary) 8%, var(--background));
    box-shadow: 0 12px 26px color-mix(in oklab, var(--primary) 14%, transparent);
    transform: translateY(-3px);
}

.smartmedix-location-name {
    font-family: var(--font-serif);
    font-size: 1.12rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--foreground);
}

.smartmedix-location-address {
    font-size: 0.86rem;
    line-height: 1.35;
    color: var(--muted-foreground);
}
@keyframes smartmedixFadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.smartmedix-frame-shell:not(.is-hidden) {
    animation: smartmedixFadeInUp 650ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (max-width: 640px) {
    .smartmedix-page-section {
        min-height: auto;
        width: 100vw;
        max-width: 100vw;
        overflow-x: clip;
    }

    .smartmedix-centered-layout {
        gap: 1.35rem;
        width: 100%;
        max-width: calc(100vw - 2rem);
    }

    .smartmedix-order-panel {
        gap: 1.35rem;
        width: 100%;
        max-width: calc(100vw - 2rem);
    }

    .smartmedix-choice-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
        margin-bottom: 1.15rem;
        width: 100%;
        max-width: 100%;
    }

    .smartmedix-location-panel {
        margin-bottom: 1.35rem;
        padding: 1rem;
        border-radius: 1.25rem;
    }

    .smartmedix-location-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .smartmedix-location-choice {
        min-height: 4.75rem;
        padding: 1rem;
    }

    .smartmedix-choice {
        display: grid;
        grid-template-columns: 2.6rem minmax(0, 1fr) 2rem;
        align-items: center;
        gap: 0.85rem;
        padding: 1rem;
        border-radius: 1rem;
        width: 100%;
        max-width: 100%;
    }

    .smartmedix-choice-icon-wrapper {
        width: 2.6rem;
        height: 2.6rem;
        border-radius: 0.85rem;
    }

    .smartmedix-choice-label {
        font-size: 1.12rem;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .smartmedix-choice-note {
        font-size: 0.84rem;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .smartmedix-choice-chevron {
        width: 2rem;
        height: 2rem;
    }

    .smartmedix-frame-shell iframe {
        min-height: 680px;
    }

    .smartmedix-phone-card {
        flex-direction: row;
        align-items: flex-start;
        gap: 0.9rem;
        padding: 1rem;
        border-radius: 1rem;
        width: 100%;
        max-width: 100%;
    }

    .smartmedix-phone-card .min-w-0,
    .smartmedix-phone-card p,
    .smartmedix-info-simplified p,
    .smartmedix-info-simplified span {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .smartmedix-info-simplified,
    .smartmedix-info-simplified .grid,
    .smartmedix-info-simplified .rounded-3xl {
        width: 100%;
        max-width: calc(100vw - 2rem);
        min-width: 0;
    }

    .smartmedix-info-simplified .rounded-3xl {
        padding: 1.25rem !important;
        border-radius: 1rem !important;
    }

    .smartmedix-phone-icon {
        width: 2.35rem;
        height: 2.35rem;
    }
}
