/* xncartflow — paso configuración de dominio */

.fc-domain-step {
    margin-bottom: 24px;
}

.fc-domain-intro {
    margin-bottom: 22px;
}

.fc-domain-title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: var(--mx-ink, #1a1a1a);
    letter-spacing: -0.02em;
}

.fc-domain-subtitle {
    margin: 0;
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

.fc-domain-choices {
    margin-bottom: 22px;
    display: flex;
    flex-wrap: wrap;
}

.fc-domain-choices > [class*="col-"] {
    display: flex;
}

.fc-domain-choices .fc-domain-choice {
    height: 100%;
}

/* 5 opciones (raro: +subdominio): 20% c/u en desktop, sin huérfana */
@media (min-width: 992px) {
    .fc-domain-choices--5 > .fc-domain-choice-col-5 {
        width: 20%;
        float: left;
    }
}

@media (max-width: 991px) {
    .fc-domain-choices {
        display: block;
    }

    .fc-domain-choices > [class*="col-"] {
        display: block;
    }
}

.fc-domain-choice {
    display: block;
    width: 100%;
    text-align: left;
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    line-height: 1.35;
    background: #fff !important;
    color: var(--mx-ink, #1a1a1a) !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px;
    padding: 18px 16px 16px;
    margin-bottom: 14px;
    cursor: pointer;
    box-shadow: none !important;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    outline: none !important;
}

.fc-domain-choice:hover,
.fc-domain-choice:focus,
.fc-domain-choice:focus-visible,
.fc-domain-choice:active {
    background: #fff !important;
    color: var(--mx-ink, #1a1a1a) !important;
    border-color: #cbd5e1 !important;
    box-shadow: none !important;
    outline: none !important;
    transform: none;
}

/* Selected: same primary as CTA — cover hover/focus/active so it never flips */
.fc-domain-choice.active,
.fc-domain-choice.active:hover,
.fc-domain-choice.active:focus,
.fc-domain-choice.active:focus-visible,
.fc-domain-choice.active:active {
    border-color: var(--mx-primary, #1f5fa8) !important;
    background: #f0f5fb !important;
    box-shadow: none !important;
    outline: none !important;
}

.fc-domain-choice-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eaf1f9;
    color: var(--mx-primary, #1f5fa8);
    font-size: 18px;
    margin-bottom: 10px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.fc-domain-choice:hover .fc-domain-choice-icon,
.fc-domain-choice:focus .fc-domain-choice-icon {
    background: #eaf1f9 !important;
    color: var(--mx-primary, #1f5fa8) !important;
}

.fc-domain-choice.active .fc-domain-choice-icon,
.fc-domain-choice.active:hover .fc-domain-choice-icon,
.fc-domain-choice.active:focus .fc-domain-choice-icon {
    background: var(--mx-primary, #1f5fa8) !important;
    color: #fff !important;
}

.fc-domain-choice-title {
    display: block;
    font-size: 15px;
    color: var(--mx-ink, #1a1a1a) !important;
    margin-bottom: 4px;
}

.fc-domain-choice-desc {
    display: block;
    font-size: 12px;
    color: #64748b !important;
    line-height: 1.4;
    font-weight: normal;
}

.fc-domain-choice:hover .fc-domain-choice-title,
.fc-domain-choice:hover .fc-domain-choice-desc,
.fc-domain-choice:focus .fc-domain-choice-title,
.fc-domain-choice:focus .fc-domain-choice-desc {
    color: inherit;
}

.fc-domain-choice:hover .fc-domain-choice-desc,
.fc-domain-choice:focus .fc-domain-choice-desc {
    color: #64748b !important;
}

.fc-domain-panes .tab-pane {
    display: none;
}

.fc-domain-panes .tab-pane.active {
    display: block;
}

.fc-domain-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px 18px;
    box-shadow: 0 4px 16px rgba(10, 32, 56, 0.05);
}

.fc-domain-label {
    display: block;
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--mx-ink, #1a1a1a);
}

.fc-domain-row {
    margin-left: -8px;
    margin-right: -8px;
}

.fc-domain-row > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
}

.fc-domain-input-group {
    display: flex;
    align-items: stretch;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.fc-domain-input-group:focus-within {
    border-color: var(--mx-primary, #1f5fa8);
    box-shadow: 0 0 0 3px rgba(31, 95, 168, 0.18);
}

.fc-domain-prefix {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    border-right: 1px solid #e2e8f0;
    white-space: nowrap;
}

.fc-domain-input-group .fc-domain-input {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    height: 46px;
}

.fc-domain-input {
    height: 46px;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    font-size: 15px;
    color: var(--mx-ink, #1a1a1a);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.fc-domain-input:focus {
    border-color: var(--mx-primary, #1f5fa8) !important;
    box-shadow: 0 0 0 3px rgba(31, 95, 168, 0.18) !important;
}

.fc-domain-btn {
    height: 46px;
    padding: 0 16px;
    border: 0 !important;
    border-radius: 10px !important;
    background: var(--mx-primary, #1f5fa8) !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    text-transform: none !important;
    letter-spacing: normal;
    transition: background-color 0.18s ease;
}

.fc-domain-btn:hover,
.fc-domain-btn:focus {
    background: #143d6d !important;
    color: #fff !important;
    outline: none !important;
    box-shadow: none !important;
}

.fc-domain-btn-lg {
    min-width: 160px;
    height: auto;
    padding: 12px 24px;
}

.fc-domain-note {
    margin: 16px 0 0;
    font-size: 12px;
    color: #64748b;
}

.fc-domain-result {
    margin-top: 18px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
}

.fc-domain-epp {
    margin-top: 16px;
    text-align: left;
}

.fc-domain-epp-help {
    margin: 8px 0 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
}

.domain-search-cart .domain-tabs {
    display: none !important;
}

/* configuredomains — addons DNS / ID / email */

.fc-domain-conf-step {
    margin-bottom: 24px;
}

.fc-domain-conf-block {
    margin-bottom: 28px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.fc-domain-conf-block:last-of-type {
    border-bottom: 0;
}

.fc-domain-conf-domain {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
}

.fc-domain-conf-domain-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef4ff;
    color: var(--mx-accent, #e11d2e);
    font-size: 18px;
}

.fc-domain-conf-name {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 700;
    color: var(--mx-ink, #1a1a1a);
    letter-spacing: -0.02em;
}

.fc-domain-conf-meta {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.fc-domain-conf-tag {
    display: inline-block;
    margin-left: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none !important;
}

.fc-domain-conf-tag-ok {
    background: #ecfdf5;
    color: #15803d;
}

.fc-domain-conf-tag-warn {
    background: #fef2f2;
    color: #b91c1c;
}

.fc-domain-conf-epp {
    margin-bottom: 20px;
}

.fc-domain-addon-grid {
    margin-left: -8px;
    margin-right: -8px;
    margin-bottom: 8px;
}

.fc-domain-addon-grid > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .fc-domain-addon-grid {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
    }

    .fc-domain-addon-grid > [class*="col-sm-"] {
        float: none !important;
        display: flex;
        flex-direction: column;
    }
}

.fc-domain-addon {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 18px 16px 14px;
    background: #fff !important;
    color: var(--mx-ink, #1a1a1a) !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: none !important;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
    font-weight: 400;
}

.fc-domain-addon:hover {
    border-color: #cbd5e1 !important;
    background: #fff !important;
}

.fc-domain-addon-selected,
.fc-domain-addon:has(.fc-domain-addon-input:checked) {
    border-color: var(--mx-accent, #e11d2e) !important;
    background: #f8fbff !important;
    box-shadow: none !important;
}

.fc-domain-addon-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.fc-domain-addon-check {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: transparent;
    font-size: 11px;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.fc-domain-addon-selected .fc-domain-addon-check,
.fc-domain-addon:has(.fc-domain-addon-input:checked) .fc-domain-addon-check {
    border-color: var(--mx-accent, #e11d2e);
    background: var(--mx-accent, #e11d2e);
    color: #fff;
}

.fc-domain-addon-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef4ff;
    color: var(--mx-accent, #e11d2e);
    font-size: 17px;
    margin-bottom: 12px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.fc-domain-addon-selected .fc-domain-addon-icon,
.fc-domain-addon:has(.fc-domain-addon-input:checked) .fc-domain-addon-icon {
    background: var(--mx-accent, #e11d2e) !important;
    color: #fff !important;
}

.fc-domain-addon-title {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--mx-ink, #1a1a1a) !important;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.fc-domain-addon-desc {
    display: block;
    flex: 1 1 auto;
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 400;
    color: #64748b !important;
    line-height: 1.5;
}

.fc-domain-addon-price {
    display: block;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    font-size: 13px;
    font-weight: 700;
    color: var(--mx-ink, #1a1a1a) !important;
}

.fc-domain-addon-selected .fc-domain-addon-price,
.fc-domain-addon:has(.fc-domain-addon-input:checked) .fc-domain-addon-price {
    border-top-color: #dbeafe;
    color: var(--mx-accent, #e11d2e) !important;
}

.fc-domain-conf-fields {
    margin-top: 8px;
}

.fc-domain-conf-ns {
    margin-top: 8px;
    margin-bottom: 24px;
}

.fc-domain-conf-ns-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: var(--mx-ink, #1a1a1a);
}

.fc-domain-conf-ns-desc {
    margin: 0 0 16px;
    font-size: 13px;
    color: #64748b;
}

.fc-domain-conf-actions {
    margin-top: 8px;
    padding-top: 8px;
}

@media (max-width: 767px) {
    .fc-domain-addon {
        min-height: 0;
    }

    .fc-domain-row > [class*="col-"] {
        margin-bottom: 10px;
    }

    .fc-domain-btn.btn-block {
        width: 100%;
    }
}
