/* VDS order form: keep WHMCS option IDs while presenting OS choices as cards. */
body.hx-template-configureproduct #order-standard_cart .hx-vds-os-options {
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
}

body.hx-template-configureproduct #order-standard_cart .hx-vds-os-options legend {
    width: 100%;
    margin: 0 0 13px;
    padding: 0;
    border: 0;
    color: #12342f;
    font-size: 18px;
    font-weight: 700;
}

body.hx-template-configureproduct #order-standard_cart .hx-vds-os-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 12px;
}

body.hx-template-configureproduct #order-standard_cart .hx-vds-os-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 132px;
    margin: 0;
    padding: 17px 10px;
    border: 1px solid #d8e6df;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(18, 68, 51, .04);
    color: #244b3d;
    text-align: center;
    cursor: pointer;
    transition: border-color .18s, box-shadow .18s, background .18s, transform .18s;
}

body.hx-template-configureproduct #order-standard_cart .hx-vds-os-card:hover {
    border-color: #8abda4;
    box-shadow: 0 8px 22px rgba(18, 68, 51, .1);
    transform: translateY(-2px);
}

body.hx-template-configureproduct #order-standard_cart .hx-vds-os-card:has(input:checked) {
    border: 2px solid #2c735c;
    background: #f2faf5;
    box-shadow: 0 5px 17px rgba(30, 109, 77, .13);
}

body.hx-template-configureproduct #order-standard_cart .hx-vds-os-card:has(input:checked)::after {
    content: '✓';
    position: absolute;
    top: 9px;
    right: 9px;
    display: grid;
    place-items: center;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #2c735c;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

body.hx-template-configureproduct #order-standard_cart .hx-vds-os-card:focus-within {
    outline: 2px solid #2c735c;
    outline-offset: 2px;
}

body.hx-template-configureproduct #order-standard_cart .hx-vds-os-card input[type="radio"],
body.hx-template-configureproduct #order-standard_cart .hx-vds-os-card .iradio_square-blue {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    overflow: hidden;
}

body.hx-template-configureproduct #order-standard_cart .hx-vds-os-icon {
    display: grid;
    place-items: center;
    width: 51px;
    height: 51px;
    border-radius: 13px;
    background: #f3f7f5;
}

body.hx-template-configureproduct #order-standard_cart .hx-vds-os-icon img {
    display: block;
    width: 39px;
    height: 39px;
    object-fit: contain;
}

body.hx-template-configureproduct #order-standard_cart .hx-vds-os-icon.ubuntu {
    background: #e95420;
}

body.hx-template-configureproduct #order-standard_cart .hx-vds-os-icon.ubuntu img {
    width: 32px;
    height: 32px;
}

body.hx-template-configureproduct #order-standard_cart .hx-vds-os-icon.windows {
    background: #e8f2ff;
}

body.hx-template-configureproduct #order-standard_cart .hx-vds-os-name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

body.hx-template-configureproduct #order-standard_cart .hx-vds-os-custom-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 132px;
    padding: 14px 10px;
    border: 1px dashed #69ad8a;
    border-radius: 12px;
    background: #f3faf6;
    color: #194d3d;
    text-align: center;
    text-decoration: none;
    transition: background .18s, border-color .18s, transform .18s;
}

body.hx-template-configureproduct #order-standard_cart .hx-vds-os-custom-card:hover,
body.hx-template-configureproduct #order-standard_cart .hx-vds-os-custom-card:focus {
    border-color: #26865f;
    background: #e8f7ed;
    color: #123e2f;
    text-decoration: none;
    transform: translateY(-2px);
}

body.hx-template-configureproduct #order-standard_cart .hx-vds-os-custom-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #d9f0e1;
    font-size: 24px;
    line-height: 1;
}

body.hx-template-configureproduct #order-standard_cart .hx-vds-os-custom-card strong {
    font-size: 13px;
}

body.hx-template-configureproduct #order-standard_cart .hx-vds-os-custom-card small {
    max-width: 150px;
    color: #547467;
    font-size: 11px;
    line-height: 1.35;
}

@media (max-width: 600px) {
    body.hx-template-configureproduct #order-standard_cart .hx-vds-os-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.hx-template-configureproduct #order-standard_cart .hx-vds-os-card {
        min-height: 113px;
        padding: 13px 8px;
    }
}

