/*
 * Manual Dedicated — Order-time OS picker
 * Scope: #order-standard_cart.mg-configure-shell (configureproduct.tpl)
 * Reuses the page's own --cyan/--surface/--tx tokens defined in configure-enhanced.css.
 */

.mgdedi-os-native {
    display: none !important;
}

.mgdedi-os-group + .mgdedi-os-group {
    margin-top: 20px;
}

.mgdedi-os-group__title {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--txm);
}

.mgdedi-os-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.mgdedi-os-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    border-radius: var(--r-md);
    border: 1px solid var(--b-subtle);
    background: var(--surface-2);
    cursor: pointer;
    transition: border-color var(--tr), background var(--tr), transform var(--tr);
    text-align: left;
    position: relative;
}

.mgdedi-os-card:hover {
    border-color: var(--b-strong);
    transform: translateY(-1px);
}

.mgdedi-os-card:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
}

.mgdedi-os-card.is-selected {
    border-color: var(--cyan);
    background: linear-gradient(180deg, rgba(0, 168, 232, 0.14), rgba(0, 168, 232, 0.05));
    box-shadow: 0 0 0 1px var(--b-glow) inset;
}

.mgdedi-os-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--r-full);
    background: var(--glass);
    flex-shrink: 0;
}

.mgdedi-os-card__icon svg {
    width: 17px;
    height: 17px;
    fill: #fff;
}

.mgdedi-os-card__icon.brand-ubuntu { background: #E95420; }
.mgdedi-os-card__icon.brand-debian { background: #A81D33; }
.mgdedi-os-card__icon.brand-almalinux { background: #0B4F6C; }
.mgdedi-os-card__icon.brand-proxmox { background: #E57000; }
.mgdedi-os-card__icon.brand-windows { background: #00A4EF; }

.mgdedi-os-card__name {
    font-size: 13px;
    font-weight: 600;
    color: var(--tx);
    line-height: 1.3;
}

.mgdedi-os-card__check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 18px;
    height: 18px;
    border-radius: var(--r-full);
    border: 1px solid var(--b-subtle);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: transparent;
    transition: all var(--tr);
}

.mgdedi-os-card.is-selected .mgdedi-os-card__check {
    background: var(--cyan);
    border-color: var(--cyan);
    color: var(--bg);
}

.mgdedi-winlicense {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: var(--r-md);
    border: 1px solid rgba(245, 185, 66, 0.35);
    background: rgba(245, 185, 66, 0.08);
}

.mgdedi-winlicense__notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--tx2);
    font-size: 13px;
    line-height: 1.5;
}

.mgdedi-winlicense__notice i {
    color: var(--warn);
    margin-top: 2px;
}

.mgdedi-winlicense__notice p {
    margin: 0;
}

.mgdedi-winlicense__accept {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: var(--tx);
}

.mgdedi-winlicense__accept input {
    margin-top: 3px;
    flex-shrink: 0;
}

#order-standard_cart.mg-configure-shell .mgdedi-winlicense__accept a {
    color: var(--cyan-soft) !important;
    font-weight: 700;
    text-decoration: underline !important;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
    white-space: nowrap;
    transition: color .15s ease, text-underline-offset .15s ease;
}

#order-standard_cart.mg-configure-shell .mgdedi-winlicense__accept a:hover,
#order-standard_cart.mg-configure-shell .mgdedi-winlicense__accept a:focus-visible {
    color: var(--cyan) !important;
    text-underline-offset: 4px;
}

.mgdedi-winlicense__accept a i {
    font-size: 11px;
    margin-left: 3px;
}

.mgdedi-winlicense.is-invalid {
    border-color: var(--danger);
    background: rgba(239, 100, 121, 0.1);
}

.mgdedi-winlicense__error {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--danger);
}
