/**
 * DMS Modern order form style sheet
 *
 * Product listing for the dms_modern order form. Cart, configure and checkout pages come from
 * standard_cart and are styled by the dms client theme. Reads the same variables as dms_cart.
 */
#order-modern {
    margin: 0;
    padding: 8px 0 40px;
    color: var(--text);
}

#order-modern .title-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 24px;
}

#order-modern .title-bar h1 {
    margin: 0;
    padding: 0;
    font-size: 28px;
}

#order-modern .choosecat {
    margin: 0;
}

#order-modern .currencychooser {
    margin: 0 0 16px;
    text-align: right;
}

#order-modern .currencychooser .btn.active {
    background: var(--bg-inverted);
    border-color: var(--bg-inverted);
    color: var(--text-inverted);
}

#order-modern .dropdown-item {
    padding: 8px 16px;
    font-size: 14px;
    color: var(--text);
}

#order-modern .dropdown-item:hover {
    background: var(--bg-lifted);
}

/* Product cards */

#order-modern .product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

#order-modern .product {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 20px;
    background: var(--bg);
    border: 1px solid var(--border-muted);
    border-radius: var(--rounding-lg);
    cursor: pointer;
    transition: border-color .15s;
}

#order-modern .product:hover {
    border-color: var(--border-accented);
}

#order-modern .product-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

#order-modern .product .name {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.012em;
    line-height: 1.25;
}

#order-modern .product .qty {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
}

#order-modern .product .pricing {
    flex: none;
    text-align: right;
    line-height: 1.3;
}

#order-modern .product .pricing span,
#order-modern .product .pricing small {
    display: block;
}

#order-modern .product .pricing .price {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -.02em;
}

#order-modern .product .pricing .pricing-note,
#order-modern .product .pricing .cycle,
#order-modern .product .pricing small {
    font-size: 13px;
    color: var(--text-muted);
}

#order-modern .prodfeatures {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

#order-modern .product .prodfeature {
    padding: 6px 12px;
    background: var(--bg-muted);
    border: 1px solid var(--border-muted);
    border-radius: var(--rounding-md);
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

#order-modern .product .prodfeature .feature {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
}

#order-modern .product .description {
    flex: 1;
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-accented);
}

#order-modern .product-foot {
    margin-top: 20px;
}

#order-modern .btn-order-now {
    background: var(--bg-inverted);
    border-color: var(--bg-inverted);
    color: var(--text-inverted);
    padding: 8px 20px;
    border-radius: var(--rounding-md);
}

#order-modern .btn-order-now:hover,
#order-modern .btn-order-now:focus {
    background: var(--grayscale-lifted);
    border-color: var(--grayscale-lifted);
    color: var(--text-inverted);
}

@media (max-width: 767.98px) {
    #order-modern .product-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    #order-modern .btn-order-now {
        display: block;
        width: 100%;
    }
}

/* ---------- Dealer.ms website look (plan cards like dealer.ms/pricing) ---------- */
#order-modern .title-bar { align-items: flex-end; margin-bottom: 32px; }
#order-modern .title-text { max-width: 720px; }
#order-modern .eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .09em; line-height: 1.6; text-transform: uppercase; color: var(--primary); }
#order-modern .title-bar h1 { font-size: 34px; letter-spacing: -.025em; line-height: 1.15; }
#order-modern .tagline { margin: 10px 0 0; font-size: 17px; line-height: 1.6; color: var(--text-lifted); }
#order-modern .product-grid { gap: 24px; }
@media (min-width: 992px) { #order-modern .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
#order-modern .product { padding: 28px; border-color: var(--border); border-radius: var(--rounding-lg); transition: border-color .15s, box-shadow .2s, transform .2s; }
#order-modern .product:hover { border-color: var(--primary); box-shadow: 0 24px 40px -24px rgb(10 40 90 / .35); transform: translateY(-3px); }
#order-modern .product .name { font-size: 21px; }
#order-modern .product .pricing .price { font-size: 28px; font-weight: 700; color: var(--text); }
#order-modern .product .description { font-size: 15px; line-height: 1.6; color: var(--text-lifted); }
#order-modern .product-foot { margin-top: 24px; }
#order-modern .btn-order-now {
    display: inline-flex; align-items: center; justify-content: center;
    height: 44px; padding: 0 22px;
    background: var(--primary); border: 1px solid var(--primary); border-radius: var(--rounding-md);
    color: #fff; font-size: 15px; font-weight: 600;
    box-shadow: 0 6px 14px -8px rgb(6 111 209 / .8);
}
#order-modern .btn-order-now:hover,
#order-modern .btn-order-now:focus { background: var(--primary-lifted); border-color: var(--primary-lifted); color: #fff; }
@media (max-width: 767.98px) { #order-modern .btn-order-now { display: flex; width: 100%; } }
@media (prefers-reduced-motion: reduce) { #order-modern .product, #order-modern .product:hover { transition: none; transform: none; } }

/* store category pills: wrap onto extra rows instead of scrolling sideways */
#order-modern .store-tabs {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    margin: 0 0 32px;
}
#order-modern .store-tabs a {
    flex: none; padding: 8px 16px; white-space: nowrap;
    font-size: 15px; font-weight: 600; color: var(--text-lifted);
    border: 1px solid var(--border); border-radius: 6px; background: #fff;
    transition: color .15s, border-color .15s, background .15s;
}
#order-modern .store-tabs a:hover { color: var(--primary); border-color: var(--primary); }
#order-modern .store-tabs a.active { color: #fff; background: var(--primary); border-color: var(--primary); }
#order-modern .store-tabs .store-tabs-cart { margin-left: auto; font-weight: 500; }
#order-modern .store-tabs .store-tabs-cart i { margin-right: 4px; }
#order-modern .title-bar { margin-bottom: 20px; }

/* store switcher dropdown: phones only, where the pills would take too many rows */
#order-modern .store-switch { display: none; margin: 0 0 28px; }
#order-modern .store-switch label { display: block; margin: 0 0 8px; font-size: 13.5px; font-weight: 600; color: var(--text-lifted); }
#order-modern .store-switch-row { display: flex; gap: 10px; }
#order-modern .store-switch select { flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 40px 0 14px; font-size: 16px; font-weight: 600; color: var(--primary); border: 1px solid var(--border); border-radius: 6px; background-color: #fff; }
#order-modern .store-switch select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgb(6 111 209 / .15); }
#order-modern .store-switch-cart { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--text-lifted); font-size: 17px; }
#order-modern .store-switch-cart:hover { border-color: var(--primary); color: var(--primary); }
@media (max-width: 575.98px) {
    #order-modern .store-tabs { display: none; }
    #order-modern .store-switch { display: block; }
}
/* own chevron, inset 16px from the right edge (the browser's arrow sat on the edge) */
#order-modern .store-switch select {
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23066fd1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px;
}
#order-modern .store-switch select::-ms-expand { display: none; }
