/*
 * Full Hosting - product cart domain step (configureproductdomain).
 * Loaded only on that step by includes/hooks/fh_cart_domain_ux.php; markup classes added by fh-cart-domain.js.
 * Colors use the console --fh-* tokens (light/dark) with neutral fallbacks.
 */

/* Muted "(hint)" next to "Ya tengo un dominio" */
#order-standard_cart .domain-selection-options .fh-opt-hint {
    display: inline;
    margin-left: 6px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--fh-muted, #6b7280);
}

/* Name / extension / button grid (replaces the bootstrap columns inside the row) */
#order-standard_cart .domains-row.fh-dom-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1.6fr) auto minmax(0, 1fr) auto;
    column-gap: 10px;
    row-gap: 12px;
    align-items: end;
    margin: 0 !important;
}
#order-standard_cart .domains-row.fh-dom-grid.fh-dom-grid--nodot {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto;
    column-gap: 16px;
}
#order-standard_cart .domains-row.fh-dom-grid::before,
#order-standard_cart .domains-row.fh-dom-grid::after {
    content: none !important;
    display: none !important;
}
#order-standard_cart .domains-row.fh-dom-grid > div {
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    flex: none !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
#order-standard_cart .domains-row.fh-dom-grid .form-control,
#order-standard_cart .domains-row.fh-dom-grid .input-group {
    width: 100%;
    margin: 0 !important;
}
#order-standard_cart .domains-row.fh-dom-grid .fh-dom-btn .btn {
    width: auto;
    min-width: 120px;
    min-height: 52px; /* same height as the console inputs */
    margin: 0 !important;
}

#order-standard_cart .fh-dom-label {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--fh-soft, #3f3f46);
    cursor: pointer;
}

#order-standard_cart .fh-dom-dot {
    align-self: end;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px; /* input height: the dot sits on the inputs' text line */
    padding: 0 2px 6px;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    color: var(--fh-heading, #111);
    user-select: none;
}

#order-standard_cart .fh-dom-help {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--fh-muted, #6b7280);
}

/* Transfer box: .ar notice (NIC Argentina, no transfers) */
#order-standard_cart .fh-ar-hint {
    margin: 14px 0 0;
    padding: 14px 16px;
    border: 1px solid var(--fh-warn-edge, rgba(180, 120, 0, .35));
    border-radius: 10px;
    background: var(--fh-warn-bg, rgba(255, 185, 0, .08));
}
#order-standard_cart .fh-ar-hint[hidden] {
    display: none;
}
#order-standard_cart .fh-ar-hint-text {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--fh-soft, #3f3f46);
}
#order-standard_cart .fh-ar-hint-btn {
    white-space: normal;
    text-align: left;
}

/* Phones: name . extension on one line, full-width button below */
@media (max-width: 575.98px) {
    #order-standard_cart .domains-row.fh-dom-grid {
        grid-template-columns: minmax(0, 1.25fr) auto minmax(0, 1fr);
        column-gap: 6px;
    }
    #order-standard_cart .domains-row.fh-dom-grid.fh-dom-grid--nodot {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
        column-gap: 10px;
    }
    #order-standard_cart .domains-row.fh-dom-grid .fh-dom-btn {
        grid-column: 1 / -1;
    }
    #order-standard_cart .domains-row.fh-dom-grid .fh-dom-btn .btn {
        width: 100%;
        min-width: 0;
    }
    #order-standard_cart .fh-dom-dot {
        font-size: 26px;
        padding: 0 0 6px;
    }
    /* Hanging indent: wrapped option text lines up with the text start, not under the radio
       (radio 22px + 20px right margin = 42px; label keeps its 30px side padding). */
    #order-standard_cart .domain-selection-options-list .option > label {
        padding-left: 72px !important;
        text-indent: -42px;
    }
    #order-standard_cart .domain-selection-options-list .option > label > .iradio_square-blue {
        text-indent: 0;
    }
}
