﻿/* ==========================================================================
   PAGE DETAIL STYLES (Order Instructions & Documentation Pages)
   Design System: Root-Anchored Scalable Component Architecture (1rem = 10px)
   ========================================================================== */

.page-detail {
    font-size: 1rem;
    padding-top: 2.4em;
}

.page-detail_title {
    font-size: 3.2em;
    font-weight: 600;
    color: var(--secondary-8);
    margin-bottom: 0.75em;
}

/* ==========================================================================
   Page Layout Grid: Sidebar (TOC) + Main Content
   ========================================================================== */
.page-detail_wrapper {
    display: grid;
    grid-template-columns: 32em minmax(0, 1fr);
    gap: 5.2em;
    align-items: flex-start;
}

/* ==========================================================================
   Sidebar Navigation (Table of Contents Accordion)
   ========================================================================== */
.page-detail_sidebar {
    position: sticky;
    top: calc(var(--header-height, 115px) + 2.4em);
    max-height: calc(100vh - var(--header-height, 115px) - 4em);
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    padding-right: 0.8em;
    scrollbar-width: thin;
    scrollbar-color: var(--neutral-11) transparent;
    background-color: var(--neutral-13);
    border-radius: 1.2em;
    padding: 1.6em 1em;
}

.page-detail_sidebar::-webkit-scrollbar {
    width: 5px;
}

.page-detail_sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.page-detail_sidebar::-webkit-scrollbar-thumb {
    background-color: var(--neutral-11);
    border-radius: 4px;
}

.page-detail_sidebar::-webkit-scrollbar-thumb:hover {
    background-color: var(--brand-1);
}

.sidebar_nav {
    display: flex;
    flex-direction: column;
    gap: 0.8em;
}

.sidebar_group {
    display: flex;
    flex-direction: column;
}

.sidebar_group_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    cursor: pointer;
    user-select: none;
    padding: 0.6em 0;
    list-style: none;
}

.sidebar_group_header::-webkit-details-marker {
    display: none;
}

.sidebar_group_title {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--secondary-8);
    line-height: 1.4;
    transition: color 0.2s ease;
}

.sidebar_chevron {
    width: 1.4em;
    height: 1.4em;
    color: var(--secondary-8);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

/* Rotate arrow when details is open */
.sidebar_group[open] .sidebar_chevron {
    transform: rotate(180deg);
}

.sidebar_list {
    list-style: none;
    padding: 0.6em 0 1.2em 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.sidebar_item {
    line-height: 1.4;
}

.sidebar_link {
    font-size: 1.3em;
    color: var(--neutral-6);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    display: inline-block;
}

.sidebar_link:hover {
    color: var(--brand-1);
}

.sidebar_item.active .sidebar_link {
    color: var(--brand-1);
    font-weight: 700;
}

.sidebar_divider {
    border-bottom: 1px solid var(--neutral-7);
    width: 100%;
    margin: 0.6em 0;
}

/* ==========================================================================
   Content Area
   ========================================================================== */
.page-detail_content {
    display: flex;
    flex-direction: column;
    gap: 2.4em;
}

/* Header */
.detail_header {
    display: flex;
    flex-direction: column;
    gap: 0.4em;
}

.detail_part_tag {
    font-size: 1.8em;
    font-weight: 600;
    color: var(--brand-3);
}

.detail_main_title {
    font-size: 2.8em;
    font-weight: 600;
    color: var(--secondary-8);
    margin: 0;
}

/* Section */
.detail_section,
.detail_part_group {
    scroll-margin-top: 12em;
}

.detail_section {
    display: flex;
    flex-direction: column;
    gap: 1.6em;
}

.detail_section_title {
    font-size: 2em;
    font-weight: 600;
    color: var(--secondary-8);
    line-height: 1.3;
    margin-top: 0.4em;
}

.detail_section p,
.detail_intro p {
    font-size: 1.5em;
    line-height: 1.65;
    color: var(--neutral-6);
    margin: 0;
}

.detail_section strong,
.detail_intro strong {
    font-weight: 600;
    color: var(--neutral-9);
}

/* Bullet List */
.detail_bullet_list {
    list-style-type: disc;
    padding-left: 2.4em;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6em;
}

.detail_bullet_list>li {
    font-size: 1.5em;
    line-height: 1.6;
    color: var(--neutral-6);
}

/* ==========================================================================
   Info Notice Box
   ========================================================================== */
.detail_notice_box {
    display: flex;
    align-items: flex-start;
    gap: 1.2em;
    background-color: var(--secondary-6);
    border-radius: 0.8em;
    padding: 1.4em 1.8em;
    margin: 0.4em 0;
    box-sizing: border-box;
}

.notice_icon {
    width: 2em;
    height: 2em;
    flex-shrink: 0;
    color: var(--brand-2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.2em;
}

.notice_icon>svg {
    width: 100%;
    height: 100%;
}

.notice_text {
    font-size: 1.4em !important;
    line-height: 1.55;
    color: var(--neutral-6);
    margin: 0;
}

/* ==========================================================================
   Account Comparison Cards Grid (Retailer vs. Distributor)
   ========================================================================== */
.account_comparison_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.4em;
    margin: 0.8em 0;
}

/* Shipping Methods Grid (3 Columns) */
.shipping_methods_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.4em;
    margin: 0.8em 0;
}

.shipping_card_content {
    display: flex;
    flex-direction: column;
    gap: 1.2em;
    width: 100%;
    text-align: left;
}

.detail_bullet_list_sm {
    padding-left: 2em;
    gap: 0.4em;
}

.detail_bullet_list_sm>li {
    font-size: 1.3em !important;
    line-height: 1.5;
}

.account_card {
    background: var(--neutral-1);
    border: 1px solid var(--neutral-7);
    border-radius: 1.4em;
    padding: 2.8em 2.4em 2.4em;
    display: flex;
    flex-direction: column;
    gap: 1.6em;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.account_card:hover {
    box-shadow: 0 0.8em 2.4em rgba(0, 0, 0, 0.06);
    transform: translateY(-0.2em);
    border-color: var(--neutral-10);
}

/* Image container */
.account_card_media {
    width: 14em;
    height: 14em;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0.4em;
}

.account_card_img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Badges */
.account_card_badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4em 2em;
    border-radius: 0.6em;
    width: fit-content;
    box-sizing: border-box;
}

.account_card_badge>span {
    font-size: 1.4em;
    font-weight: 500;
    color: var(--neutral-1);
    line-height: 1.3;
}

.badge_retailer {
    background-color: var(--brand-2);
}

.badge_distributor {
    background-color: var(--brand-3);
}

.account_card_desc {
    font-size: 1.4em !important;
    line-height: 1.5;
    color: var(--neutral-6);
    text-align: left;
    width: 100%;
    margin: 0;
}

/* Checklist features */
.account_card_features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2em;
    text-align: left;
    width: 100%;
}

.account_card_features>li {
    display: flex;
    align-items: flex-start;
    gap: 1em;
    font-size: 1.4em;
    line-height: 1.45;
    color: var(--neutral-6);
}

.feature_icon {
    width: 1.6em;
    height: 1.6em;
    flex-shrink: 0;
    margin-top: 0.2em;
}

.feature_icon.icon_green {
    color: var(--brand-2);
}

.feature_icon.icon_orange {
    color: var(--brand-3);
}

/* ==========================================================================
   Part Groups, Divider & Subheadings (Part I, Part II)
   ========================================================================== */
.detail_part_group {
    display: flex;
    flex-direction: column;
    gap: 2.4em;
}

.detail_part_group.is-hidden {
    display: none !important;
}

.detail_part_group.is-active {
    display: flex;
    animation: fadeInPart 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.detail_part_group.is-active.detail_part_divider {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

@keyframes fadeInPart {
    from {
        opacity: 0;
        transform: translateY(0.8em);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail_part_divider {
    margin-top: 1.6em;
    padding-top: 2.8em;
    border-top: 1px dashed var(--neutral-7);
}

.detail_subheading {
    font-size: 1.6em;
    font-weight: 600;
    color: var(--secondary-8);
    line-height: 1.4;
    margin-top: 0.8em;
}

.detail_step_heading {
    font-size: 1.6em;
    font-weight: 600;
    color: var(--secondary-8);
    line-height: 1.4;
    margin: 0.6em 0 0.2em 0;
}

.backorder_step_block {
    display: flex;
    flex-direction: column;
    gap: 0.8em;
}

/* ==========================================================================
   Workflow Steps (5 Steps Horizontal Process)
   ========================================================================== */
.process_steps {
    font-size: 1rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8em;
    padding: 1.2em 0 2em;
    background: transparent;
    border: none;
    box-sizing: border-box;
    margin: 1.2em 0 2em;
}

.process_step_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1 1 0;
    min-width: 0;
}

.step_media {
    position: relative;
    width: 8.8em;
    height: 9.6em;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.4em;
    flex-shrink: 0;
}

.step_icon_wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step_icon_img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.step_icon_img:not([src]),
.step_icon_img[src=""] {
    opacity: 0;
}

.step_title {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--neutral-9);
    margin: 0 0 0.5em 0;
    line-height: 1.35;
    text-align: center;
}

.step_desc {
    font-size: 1.3em !important;
    line-height: 1.45;
    color: var(--neutral-6);
    margin: 0;
    text-align: center;
}

.step_connector {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 3.8em;
    margin-top: 5.6em;
    transform: translateY(-50%);
    color: var(--brand-1);
}

.step_arrow_icon {
    width: 100%;
    max-width: 3.6em;
    height: 1.2em;
    display: block;
}

/* ==========================================================================
   Lime Badge & Specialized Elements
   ========================================================================== */
.badge_lime {
    background-color: var(--brand-2);
}

.text_center {
    text-align: center !important;
}

.payment_terms_block {
    display: flex;
    flex-direction: column;
    gap: 0.4em;
    width: 100%;
    text-align: left;
}

.list_condensed {
    gap: 0.4em;
    margin: 0.2em 0;
}

/* Complex Notice Box */
.notice_box_complex {
    align-items: flex-start;
}

.notice_body {
    display: flex;
    flex-direction: column;
    gap: 0.6em;
    flex: 1;
}

.notice_title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--neutral-9);
}

.notice_ordered_list {
    margin: 0;
    padding-left: 2em;
    display: flex;
    flex-direction: column;
    gap: 0.4em;
    font-size: 1.4em;
    color: var(--neutral-6);
    line-height: 1.5;
}

/* ==========================================================================
   Inline Links & Contact Card (Part III)
   ========================================================================== */
.detail_inline_link {
    color: var(--secondary-8);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    transition: color 0.2s ease;
}

.detail_inline_link:hover {
    color: var(--brand-1);
}

.detail_contact_card {
    background-color: var(--neutral-13);
    border-radius: 1.6em;
    padding: 3.2em 3.6em;
    margin: 1.6em 0 0.8em 0;
    box-sizing: border-box;
}

.contact_card_company {
    font-size: 1.6em;
    font-weight: 700;
    color: var(--neutral-9);
    margin: 0 0 2.4em 0;
    line-height: 1.3;
}

.contact_card_list {
    display: flex;
    flex-direction: column;
    gap: 2em;
}

.contact_card_item {
    display: flex;
    align-items: flex-start;
    gap: 1.6em;
}

.contact_item_icon {
    width: 3.2em;
    height: 3.2em;
    border-radius: 50%;
    background-color: var(--brand-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-1);
    flex-shrink: 0;
    margin-top: 0.1em;
}

.contact_item_icon>svg {
    width: 1.6em;
    height: 1.6em;
}

.contact_item_content {
    display: flex;
    flex-direction: column;
    gap: 0.4em;
}

.contact_item_label {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--neutral-9);
    line-height: 1.3;
}

.contact_item_val {
    font-size: 1.4em;
    color: var(--neutral-6);
    line-height: 1.45;
    text-decoration: none;
    transition: color 0.2s ease;
}

a.contact_item_val:hover {
    color: var(--brand-1);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 991px) {
    .page-detail_wrapper {
        grid-template-columns: 1fr;
        gap: 3.6em;
    }

    .page-detail_sidebar {
        position: static;
        background-color: var(--neutral-13);
        border-radius: 1.2em;
        padding: 1.8em;
        max-height: none;
        overflow-y: visible;
        padding-right: 1.8em;
    }

    .detail_main_title {
        font-size: 2.6em;
    }
}

@media (max-width: 768px) {
    .shipping_methods_grid {
        grid-template-columns: 1fr;
        gap: 2em;
    }

    .process_steps {
        display: flex;
        overflow-x: auto;
        padding: 1.2em 0.4em 1.6em;
        gap: 0.6em;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .process_step_item {
        flex: 0 0 13.5em;
    }

    .step_connector {
        flex: 0 0 2.8em;
        margin-top: 5.6em;
        display: flex;
    }
}

@media (max-width: 640px) {
    .account_comparison_grid {
        grid-template-columns: 1fr;
        gap: 2em;
    }

    .account_card {
        padding: 2em 1.6em;
    }

    .detail_contact_card {
        padding: 2.4em 2em;
    }

    .page-detail_title {
        font-size: 2.4em;
    }

    .detail_section_title {
        font-size: 1.8em;
    }

    /* Headings */
    .page-detail_title {
        font-size: 1.8em;
        /* h1: 18px */
    }

    .detail_main_title {
        font-size: 1.6em;
    }

    .detail_section_title {
        font-size: 1.4em;
    }

    .detail_subheading,
    .detail_step_heading {
        font-size: 1.3em;
    }

    .detail_part_tag {
        font-size: 1.3em;
    }

    .step_title,
    .contact_card_company {
        font-size: 1.3em;
    }

    /* Text: 12px = 1.2em */
    .detail_section p,
    .detail_intro p,
    .detail_bullet_list>li,
    .notice_text,
    .notice_ordered_list,
    .account_card_desc,
    .account_card_features>li,
    .step_desc,
    .contact_item_label,
    .contact_item_val,
    .sidebar_link,
    .sidebar_group_title,
    .account_card_badge>span {
        font-size: 1.2em !important;
        line-height: 1.5;
    }

    .page-detail_wrapper {
        gap: 2.4em;
    }

    .page-detail_sidebar {
        padding: 1.4em 1.6em;
    }

    .detail_contact_card {
        padding: 2em 1.6em;
    }

    .account_card {
        padding: 1.8em 1.4em;
    }

    .detail_section {
        gap: 1em;
    }

}