/*
 * HostWega - Refined domain choice cards
 * Styling only. No movement/transform effects on hover.
 */

#order-standard_cart .domain-productconfigiration-options-group.hostwega-domain-choice-cards {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px !important;
    align-items: stretch !important;
    width: 100%;
    margin: 22px 0 20px !important;
    padding: 0;
    overflow: visible;
    white-space: normal;
}

#order-standard_cart .hostwega-domain-choice-cards > .hostwega-domain-choice-card {
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0;
    min-height: 136px;
    overflow: hidden !important;
    border: 1px solid var(--border-color-light);
    border-radius: 12px !important;
    background: var(--background-14) !important;
    box-shadow: 0 3px 12px rgb(0 0 0 / 4%);
    transition: none !important;
}

/* Hover remains completely static: only the border gets clearer. */
#order-standard_cart .hostwega-domain-choice-cards > .hostwega-domain-choice-card:hover {
    transform: none !important;
    border-color: var(--a-link-color);
    box-shadow: 0 3px 12px rgb(0 0 0 / 4%);
}

/* Selected state: clean border, restrained shadow, no motion. */
#order-standard_cart .hostwega-domain-choice-cards > .hostwega-domain-choice-card.option-selected,
#order-standard_cart .hostwega-domain-choice-cards > .hostwega-domain-choice-card:has(input[name="domainoption"]:checked) {
    border: 2px solid var(--a-link-color);
    box-shadow: 0 4px 14px rgb(0 0 0 / 5%);
}

/* Small selected badge. */
#order-standard_cart .hostwega-domain-choice-cards > .hostwega-domain-choice-card.option-selected::after,
#order-standard_cart .hostwega-domain-choice-cards > .hostwega-domain-choice-card:has(input[name="domainoption"]:checked)::after {
    content: '\f00c';
    position: absolute;
    z-index: 5;
    top: 11px;
    right: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--a-link-color);
    color: #fff;
    font-family: "Font Awesome 5 Pro";
    font-size: 10px;
    font-weight: 400;
    line-height: 1;
    pointer-events: none;
}

body.rtl #order-standard_cart .hostwega-domain-choice-cards > .hostwega-domain-choice-card.option-selected::after,
body.rtl #order-standard_cart .hostwega-domain-choice-cards > .hostwega-domain-choice-card:has(input[name="domainoption"]:checked)::after {
    right: auto;
    left: 11px;
}

#order-standard_cart .hostwega-domain-choice-card > label {
    position: relative;
    z-index: 2;
    display: flex !important;
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    min-height: 134px;
    margin: 0;
    padding: 20px 38px 18px !important;
    text-align: center;
    white-space: normal !important;
    cursor: pointer;
    user-select: none;
}

#order-standard_cart .hostwega-domain-choice-card:focus-within {
    border-color: var(--a-link-color);
    box-shadow: 0 0 0 2px rgb(0 0 0 / 4%);
}

#order-standard_cart .hostwega-domain-choice-card .iradio_square-blue,
#order-standard_cart .hostwega-domain-choice-card > label > input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Simple icon tile; it never moves or scales. */
#order-standard_cart .hostwega-domain-choice-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    margin: 0 0 11px;
    border: 1px solid var(--border-color-light);
    border-radius: 50%;
    background: var(--background-2);
    color: var(--a-link-color);
    box-shadow: none;
    font-size: 19px;
    line-height: 1;
    transform: none !important;
    transition: none !important;
}

#order-standard_cart .hostwega-domain-choice-card:hover .hostwega-domain-choice-icon {
    transform: none !important;
    box-shadow: none;
}

#order-standard_cart .hostwega-domain-choice-card.option-selected .hostwega-domain-choice-icon,
#order-standard_cart .hostwega-domain-choice-card:has(input[name="domainoption"]:checked) .hostwega-domain-choice-icon {
    border-color: var(--a-link-color);
    background: var(--a-link-color);
    color: #fff;
    box-shadow: none;
}

#order-standard_cart .hostwega-domain-choice-content {
    display: block;
    width: 100%;
    min-width: 0;
}

#order-standard_cart .hostwega-domain-choice-card .title {
    display: block;
    margin: 0;
    padding: 0 !important;
    color: var(--color-h) !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    line-height: 1.4;
    letter-spacing: 0;
    white-space: normal !important;
}

#order-standard_cart .hostwega-domain-choice-card .title::after {
    display: none !important;
}

#order-standard_cart .hostwega-domain-choice-description {
    display: -webkit-box;
    max-width: 96%;
    margin: 5px auto 0;
    overflow: hidden;
    color: var(--color-h-sub);
    font-size: 12px;
    font-weight: 300;
    line-height: 1.48;
    white-space: normal !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

#order-standard_cart .hostwega-domain-choice-arrow {
    display: none;
    transition: none !important;
    transform: none !important;
}

@media (max-width: 991.98px) and (min-width: 768px) {
    #order-standard_cart .domain-productconfigiration-options-group.hostwega-domain-choice-cards {
        gap: 10px !important;
    }

    #order-standard_cart .hostwega-domain-choice-cards > .hostwega-domain-choice-card {
        min-height: 132px;
    }

    #order-standard_cart .hostwega-domain-choice-card > label {
        min-height: 130px;
        padding: 18px 28px 17px !important;
    }

    #order-standard_cart .hostwega-domain-choice-card .title {
        font-size: 13.5px !important;
    }
}

@media (max-width: 767.98px) {
    #order-standard_cart .domain-productconfigiration-options-group.hostwega-domain-choice-cards {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        width: calc(100% + 1px);
        max-width: none;
        margin: 18px 0 14px !important;
        padding: 2px 32px 8px 1px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        white-space: normal !important;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 1px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    #order-standard_cart .domain-productconfigiration-options-group.hostwega-domain-choice-cards::-webkit-scrollbar {
        display: none;
    }

    #order-standard_cart .hostwega-domain-choice-cards > .hostwega-domain-choice-card {
        flex: 0 0 calc(100% - 32px) !important;
        width: calc(100% - 32px) !important;
        min-width: calc(100% - 32px) !important;
        min-height: 108px;
        border-radius: 11px !important;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    #order-standard_cart .hostwega-domain-choice-card > label {
        display: grid !important;
        grid-template-columns: 46px minmax(0, 1fr) 28px;
        column-gap: 12px;
        align-items: center !important;
        justify-content: stretch !important;
        min-height: 106px;
        padding: 15px 14px 15px 16px !important;
        text-align: start;
    }

    #order-standard_cart .hostwega-domain-choice-icon {
        grid-column: 1;
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        margin: 0;
        border-radius: 50%;
        font-size: 18px;
    }

    #order-standard_cart .hostwega-domain-choice-content {
        grid-column: 2;
        align-self: center;
    }

    #order-standard_cart .hostwega-domain-choice-card .title {
        font-size: 13.5px !important;
        line-height: 1.38;
    }

    #order-standard_cart .hostwega-domain-choice-description {
        max-width: none;
        margin: 4px 0 0;
        font-size: 11.5px;
        line-height: 1.4;
        -webkit-line-clamp: 2;
    }

    #order-standard_cart .hostwega-domain-choice-arrow {
        grid-column: 3;
        position: static;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        border: 0;
        border-radius: 50%;
        background: transparent;
        color: var(--color-h-sub);
        font-size: 12px;
        pointer-events: none;
    }

    #order-standard_cart .hostwega-domain-choice-card.option-selected .hostwega-domain-choice-arrow,
    #order-standard_cart .hostwega-domain-choice-card:has(input[name="domainoption"]:checked) .hostwega-domain-choice-arrow {
        background: transparent;
        color: var(--a-link-color);
    }

    #order-standard_cart .hostwega-domain-choice-cards > .hostwega-domain-choice-card.option-selected::after,
    #order-standard_cart .hostwega-domain-choice-cards > .hostwega-domain-choice-card:has(input[name="domainoption"]:checked)::after {
        top: 9px;
        right: 9px;
        width: 22px;
        height: 22px;
        font-size: 9px;
    }

    body.rtl #order-standard_cart .domain-productconfigiration-options-group.hostwega-domain-choice-cards {
        padding: 2px 1px 8px 32px !important;
    }

    body.rtl #order-standard_cart .hostwega-domain-choice-card > label {
        grid-template-columns: 28px minmax(0, 1fr) 46px;
        padding: 15px 16px 15px 14px !important;
    }

    body.rtl #order-standard_cart .hostwega-domain-choice-icon {
        grid-column: 3;
    }

    body.rtl #order-standard_cart .hostwega-domain-choice-content {
        grid-column: 2;
        text-align: right;
    }

    body.rtl #order-standard_cart .hostwega-domain-choice-arrow {
        grid-column: 1;
        transform: rotate(180deg) !important;
    }

    body.rtl #order-standard_cart .hostwega-domain-choice-cards > .hostwega-domain-choice-card.option-selected::after,
    body.rtl #order-standard_cart .hostwega-domain-choice-cards > .hostwega-domain-choice-card:has(input[name="domainoption"]:checked)::after {
        right: auto;
        left: 9px;
    }
}

@media (max-width: 389.98px) {
    #order-standard_cart .hostwega-domain-choice-card > label {
        grid-template-columns: 42px minmax(0, 1fr) 24px;
        column-gap: 9px;
        padding-inline: 12px !important;
    }

    #order-standard_cart .hostwega-domain-choice-icon {
        width: 42px;
        height: 42px;
        font-size: 17px;
    }

    #order-standard_cart .hostwega-domain-choice-arrow {
        width: 24px;
        height: 24px;
    }

    body.rtl #order-standard_cart .hostwega-domain-choice-card > label {
        grid-template-columns: 24px minmax(0, 1fr) 42px;
    }
}

/* Dark mode compatibility - follows the theme's native dark-mode selectors. */
html[data-theme="dark"] body #order-standard_cart .hostwega-domain-choice-cards > .hostwega-domain-choice-card,
body.body__dark #order-standard_cart .hostwega-domain-choice-cards > .hostwega-domain-choice-card {
    background: var(--background-5) !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 3px 12px rgb(0 0 0 / 18%);
}

html[data-theme="dark"] body #order-standard_cart .hostwega-domain-choice-cards > .hostwega-domain-choice-card:hover,
body.body__dark #order-standard_cart .hostwega-domain-choice-cards > .hostwega-domain-choice-card:hover {
    background: var(--background-5) !important;
    border-color: var(--a-link-color) !important;
    box-shadow: 0 3px 12px rgb(0 0 0 / 18%);
}

html[data-theme="dark"] body #order-standard_cart .hostwega-domain-choice-cards > .hostwega-domain-choice-card.option-selected,
html[data-theme="dark"] body #order-standard_cart .hostwega-domain-choice-cards > .hostwega-domain-choice-card:has(input[name="domainoption"]:checked),
body.body__dark #order-standard_cart .hostwega-domain-choice-cards > .hostwega-domain-choice-card.option-selected,
body.body__dark #order-standard_cart .hostwega-domain-choice-cards > .hostwega-domain-choice-card:has(input[name="domainoption"]:checked) {
    background: var(--background-2) !important;
    border-color: var(--a-link-color) !important;
    box-shadow: 0 4px 14px rgb(0 0 0 / 22%);
}

html[data-theme="dark"] body #order-standard_cart .hostwega-domain-choice-icon,
body.body__dark #order-standard_cart .hostwega-domain-choice-icon {
    background: var(--background-3) !important;
    border-color: var(--border-color) !important;
    color: var(--color-h) !important;
}

html[data-theme="dark"] body #order-standard_cart .hostwega-domain-choice-card.option-selected .hostwega-domain-choice-icon,
html[data-theme="dark"] body #order-standard_cart .hostwega-domain-choice-card:has(input[name="domainoption"]:checked) .hostwega-domain-choice-icon,
body.body__dark #order-standard_cart .hostwega-domain-choice-card.option-selected .hostwega-domain-choice-icon,
body.body__dark #order-standard_cart .hostwega-domain-choice-card:has(input[name="domainoption"]:checked) .hostwega-domain-choice-icon {
    background: var(--a-link-color) !important;
    border-color: var(--a-link-color) !important;
    color: var(--background) !important;
}

html[data-theme="dark"] body #order-standard_cart .hostwega-domain-choice-card .title,
body.body__dark #order-standard_cart .hostwega-domain-choice-card .title {
    color: var(--color-h) !important;
}

html[data-theme="dark"] body #order-standard_cart .hostwega-domain-choice-description,
html[data-theme="dark"] body #order-standard_cart .hostwega-domain-choice-arrow,
body.body__dark #order-standard_cart .hostwega-domain-choice-description,
body.body__dark #order-standard_cart .hostwega-domain-choice-arrow {
    color: var(--color-h-sub) !important;
}

html[data-theme="dark"] body #order-standard_cart .hostwega-domain-choice-card.option-selected .hostwega-domain-choice-arrow,
html[data-theme="dark"] body #order-standard_cart .hostwega-domain-choice-card:has(input[name="domainoption"]:checked) .hostwega-domain-choice-arrow,
body.body__dark #order-standard_cart .hostwega-domain-choice-card.option-selected .hostwega-domain-choice-arrow,
body.body__dark #order-standard_cart .hostwega-domain-choice-card:has(input[name="domainoption"]:checked) .hostwega-domain-choice-arrow {
    color: var(--a-link-color) !important;
}

html[data-theme="dark"] body #order-standard_cart .hostwega-domain-choice-cards > .hostwega-domain-choice-card.option-selected::after,
html[data-theme="dark"] body #order-standard_cart .hostwega-domain-choice-cards > .hostwega-domain-choice-card:has(input[name="domainoption"]:checked)::after,
body.body__dark #order-standard_cart .hostwega-domain-choice-cards > .hostwega-domain-choice-card.option-selected::after,
body.body__dark #order-standard_cart .hostwega-domain-choice-cards > .hostwega-domain-choice-card:has(input[name="domainoption"]:checked)::after {
    background: var(--a-link-color) !important;
    color: var(--background) !important;
}

html[data-theme="dark"] body #order-standard_cart .hostwega-domain-choice-card:focus-within,
body.body__dark #order-standard_cart .hostwega-domain-choice-card:focus-within {
    border-color: var(--a-link-color) !important;
    box-shadow: 0 0 0 2px rgb(255 255 255 / 6%);
}

