/* ============================================================
   0724 Mail Cart — Product / Configure UX (Phase 10A)
   Loaded via standard_cart/common.tpl {assetExists custom.css}
   when order form template is 0724_mail.
   ============================================================ */

#order-standard_cart.cx-order {
    max-width: 1100px;
    margin: 0 auto;
    color: var(--text, #cfe0f0);
    overflow-x: clip;
}

/* —— Trust / WhatsApp (not sticky; never covers CTA) —— */
.cx-order-trust {
    margin: 1.15rem 0 0.25rem;
    padding: 0.7rem 0.85rem;
    background: transparent;
    border-top: 1px solid var(--border, #192038);
}

.cx-order-trust__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--muted, #6a7a9a);
    font-size: 0.82rem;
}

.cx-order-trust__whatsapp {
    color: var(--cyan, #00d4ff);
    font-weight: 600;
    text-decoration: none;
}

.cx-order-trust__whatsapp:hover,
.cx-order-trust__whatsapp:focus-visible {
    text-decoration: underline;
    outline: none;
}

.cx-order__header {
    margin-bottom: 0.85rem;
}

.cx-order__header h1 {
    color: var(--white, #fff);
    font-size: clamp(1.35rem, 2.5vw, 1.75rem) !important;
    font-weight: 700;
}

.cx-order__tagline {
    margin: 0.35rem 0 0;
    color: var(--muted2, #8090b0);
    font-size: 0.95rem;
}

/* Quiet category sidebar on configure/domain — product focus first */
.cx-order--configure .cx-order__sidebar,
.cx-order--domain .cx-order__sidebar {
    opacity: 0.92;
}

@media (min-width: 992px) {
    .cx-order--configure .cart-sidebar.cx-order__sidebar {
        max-width: 200px;
    }
}

/* —— Product cards —— */
.cx-order-product {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
}

.cx-order-product header {
    font-size: 1.1rem;
    font-weight: 700;
}

.cx-order-product__desc {
    margin: 0 0 0.65rem;
    color: var(--muted2, #8090b0);
    font-size: 0.9rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cx-order-product__features {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cx-order-product__features li {
    margin: 0 0 0.3rem;
    color: var(--text, #cfe0f0);
    font-size: 0.88rem;
    line-height: 1.35;
}

.cx-order-product footer {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
}

.cx-order-product__pricing {
    min-width: 0;
    flex: 1 1 8rem;
}

.cx-order-product__billing-label {
    display: block;
    color: var(--muted, #6a7a9a);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cx-order-product__billing-cycle {
    display: block;
    color: var(--white, #fff);
    font-size: 1.05rem;
    font-weight: 700;
}

.cx-order-product__price-hint {
    display: block;
    margin-top: 0.2rem;
    color: var(--muted2, #8090b0);
    font-size: 0.8rem;
}

.cx-order-product__cta {
    flex: 0 0 auto;
    min-width: 7.5rem;
    font-weight: 700 !important;
}

/* —— Configure layout —— */
.cx-order-config__identity {
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border, #192038);
}

.cx-order-config__identity .product-title {
    margin: 0 0 0.25rem;
    color: var(--white, #fff);
    font-size: 1.35rem;
    font-weight: 700;
}

.cx-order-config__domain {
    margin: 0 0 0.35rem;
    color: var(--cyan, #00d4ff);
    font-family: var(--mono, "JetBrains Mono", monospace);
    font-size: 0.92rem;
    overflow-wrap: anywhere;
}

.cx-order-config__desc {
    margin: 0;
    color: var(--muted2, #8090b0);
    font-size: 0.9rem;
    line-height: 1.45;
    max-height: 4.5rem;
    overflow: hidden;
}

.cx-order-config__desc p {
    margin: 0 0 0.35rem;
}

.cx-order-config__cycle {
    margin-bottom: 1rem;
}

.cx-order-config__section-title {
    margin-top: 0.5rem;
}

/* Summary stays readable; sticky on desktop */
.cx-order-summary-col #orderSummary.cx-order-summary {
    position: sticky;
    top: 5.5rem;
}

.cx-order-summary .order-summary {
    background: var(--surface, #0c1220);
    border: 1px solid var(--border, #192038);
    border-radius: 12px;
    padding: 1rem 1.05rem;
}

.cx-order-summary .order-summary h2 {
    margin: 0 0 0.75rem;
    color: var(--white, #fff);
    font-size: 1.1rem !important;
    font-weight: 700;
}

.cx-order-summary__cta {
    margin-top: 0.75rem;
}

.cx-order-summary__cta #btnCompleteProductConfig {
    width: 100%;
    max-width: 100%;
}

.cx-os-billing,
.cx-os-config {
    font-weight: 550;
}

.cx-os-config .pull-left,
.cx-os-config .float-left {
    max-width: 65%;
    overflow-wrap: anywhere;
}

#order-standard_cart.cx-order .summary-container .product-name {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--white, #fff);
    font-weight: 650;
}

#order-standard_cart.cx-order .summary-container .product-group {
    display: block;
    margin-bottom: 0.65rem;
    color: var(--muted, #6a7a9a);
    font-size: 0.8rem;
}

#order-standard_cart.cx-order .total-due-today .amt {
    color: var(--cyan, #00d4ff);
    font-size: 1.35rem;
    font-weight: 700;
}

/* —— Choose a Domain — compact —— */
.cx-order--domain .cx-domain-header h1 {
    font-size: clamp(1.25rem, 2.2vw, 1.55rem) !important;
}

.cx-order--domain .domain-selection-options.cx-domain-options {
    margin: 0.25rem 0 0.75rem;
}

.cx-order--domain .domain-selection-options .option.cx-domain-option {
    margin-bottom: 0.1rem;
    padding: 0;
    background: transparent !important;
    border: none !important;
    border-radius: 8px !important;
    overflow: visible;
}

.cx-order--domain .domain-selection-options .option-selected.cx-domain-option {
    background: rgba(0, 212, 255, 0.05) !important;
}

.cx-order--domain .cx-domain-option__label {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    padding: 0.7rem 0.55rem;
    cursor: pointer;
    font-weight: 500 !important;
}

.cx-order--domain .cx-domain-option__title {
    color: var(--white, #fff);
    font-size: 0.98rem;
    font-weight: 650;
    line-height: 1.3;
}

.cx-order--domain .option-selected .cx-domain-option__title {
    color: var(--cyan, #00d4ff);
}

.cx-order--domain .cx-domain-controls.domain-input-group {
    margin: 0;
    padding: 0 0.55rem 0.75rem;
    border: none;
}

.cx-order--domain .cx-domain-free-note {
    margin: 0.35rem 0 0.75rem;
    color: var(--muted, #6a7a9a);
    font-size: 0.78rem;
    line-height: 1.4;
}

.cx-order--domain #btnDomainContinue {
    margin-top: 0.75rem;
    min-width: min(100%, 16rem);
}

/* Defeat client-theme blanket div[class*="domain"] + option cards */
#order-standard_cart.cx-order .domain-selection-options,
#order-standard_cart.cx-order .domain-selection-options .option,
#order-standard_cart.cx-order .domain-input-group,
#order-standard_cart.cx-order #DomainSearchResults,
#order-standard_cart.cx-order .spotlight-tlds,
#order-standard_cart.cx-order .suggested-domains,
#order-standard_cart.cx-order div.cx-domain-lookup,
#order-standard_cart.cx-order div.cx-domain-lookup__tld-wrap {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
}

#order-standard_cart.cx-order--domain .domain-selection-options .option.cx-domain-option {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 8px !important;
}

#order-standard_cart.cx-order--domain .option-selected.cx-domain-option {
    background: rgba(0, 212, 255, 0.05) !important;
}

#order-standard_cart.cx-order--domain .cx-domain-controls.domain-input-group {
    padding: 0 0.55rem 0.75rem !important;
    background: transparent !important;
    border: none !important;
}

/* Mail billing: internal cycle select must never paint as commercial price */
.cx-order--mail .cx-order-config__cycle--mail-internal,
.cx-order--mail .cx-order-config__cycle--mail-internal[hidden] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Mail JS injected status/tools inherit surface tokens */
#mail0724-domain-status,
#mail0724-domain-tools {
    max-width: 100%;
    overflow-wrap: anywhere;
}

#mail0724-domain-tools-actions a,
#mail0724-domain-tools-actions button {
    margin: 0.25rem 0.35rem 0.25rem 0;
}

/* —— Responsive —— */
@media (max-width: 991.98px) {
    .cx-order-summary-col #orderSummary.cx-order-summary {
        position: static;
        margin-top: 1rem;
    }

    .cx-order--configure .secondary-cart-body,
    .cx-order--configure .secondary-cart-sidebar {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }
}

@media (max-width: 767.98px) {
    .cx-order-product footer {
        flex-direction: column;
        align-items: stretch;
    }

    .cx-order-product__cta {
        width: 100%;
        text-align: center;
    }

    .cx-order-trust__list {
        flex-direction: column;
        gap: 0.35rem;
    }

    .cx-order-summary__cta #btnCompleteProductConfig,
    .cx-order--domain #btnDomainContinue {
        width: 100%;
    }

    /* Keep primary CTA clear of trust/WhatsApp */
    .cx-order-trust {
        order: 99;
        margin-top: 1.25rem;
        padding-bottom: 0.25rem;
    }
}

@media (max-width: 389.98px) {
    .cx-order-config__identity .product-title {
        font-size: 1.15rem;
    }
}

.cx-order-config__billing-plain {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.75rem;
    margin: 0 0 1.1rem;
    padding: 0.7rem 0.85rem;
    background: var(--surface2, #101828);
    border: 1px solid var(--border, #192038);
    border-radius: 10px;
}

.cx-order-config__billing-label {
    color: var(--muted, #6a7a9a);
    font-size: 0.78rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cx-order-config__billing-value {
    color: var(--white, #fff);
    font-size: 1.05rem;
    font-weight: 700;
}

.cx-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.cx-mail-sizes {
    margin-bottom: 1rem;
}

.cx-mail-size-select {
    display: block;
    width: 100%;
    max-width: 22rem;
    min-height: 2.65rem;
    padding: 0.55rem 2.25rem 0.55rem 0.85rem;
}

.cx-mail-size-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.cx-mail-size-option {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin: 0;
    padding: 0.85rem 0.95rem;
    background: var(--surface, #0c1220);
    border: 1px solid var(--border, #192038);
    border-radius: 10px;
    cursor: pointer;
    color: var(--text, #cfe0f0);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
}

.cx-mail-size-option:hover,
.cx-mail-size-option:focus-within {
    border-color: var(--cyan-border, rgba(0, 212, 255, 0.35));
}

.cx-mail-size-option:has(input:checked) {
    border-color: var(--cyan, #00d4ff);
    box-shadow: 0 0 0 1px var(--cyan, #00d4ff);
    background: rgba(0, 212, 255, 0.06);
}

.cx-mail-size-option input {
    margin-top: 0.2rem;
    flex: 0 0 auto;
}

.cx-mail-size-option__text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.cx-order-config__details {
    margin: 0.85rem 0 1rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border, #192038);
    border-radius: 10px;
    color: var(--muted2, #8090b0);
    font-size: 0.9rem;
}

.cx-order-config__details summary {
    cursor: pointer;
    color: var(--cyan, #00d4ff);
    font-weight: 600;
}

.cx-order-config__details[open] summary {
    margin-bottom: 0.55rem;
}

/* Larger, more readable order summary on desktop */
@media (min-width: 992px) {
    .cx-order--configure .secondary-cart-sidebar {
        flex: 0 0 38%;
        max-width: 38%;
    }

    .cx-order--configure .secondary-cart-body {
        flex: 0 0 62%;
        max-width: 62%;
    }

    .cx-order-summary .order-summary {
        padding: 1.25rem 1.35rem;
    }

    .cx-order-summary .order-summary h2 {
        font-size: 1.35rem !important;
    }

    #order-standard_cart.cx-order .summary-container {
        font-size: 1.02rem;
        line-height: 1.5;
    }

    #order-standard_cart.cx-order .summary-container .clearfix {
        margin-bottom: 0.35rem;
    }

    #order-standard_cart.cx-order .total-due-today .amt {
        font-size: 1.75rem;
    }

    #order-standard_cart.cx-order .total-due-today span:not(.amt) {
        font-size: 0.95rem;
    }

    .cx-order-summary__cta #btnCompleteProductConfig {
        min-height: 3rem;
        font-size: 1.05rem;
    }
}


/* Prevent horizontal scroll from long option labels / domains */
#order-standard_cart.cx-order,
#order-standard_cart.cx-order .cart-body,
#order-standard_cart.cx-order .product,
#order-standard_cart.cx-order .form-control {
    max-width: 100%;
    min-width: 0;
}

#order-standard_cart.cx-order .domain-input-group .row,
#order-standard_cart.cx-order .domains-row {
    margin-left: 0;
    margin-right: 0;
}

/* —— Cart review —— */
.cx-order--cart .cx-cart-items {
    margin: 0 0 0.75rem;
}

.cx-order--cart .cx-cart-item {
    margin: 0 0 0.65rem;
    padding: 0.95rem 1rem;
    background: var(--surface, #0c1220);
    border: 1px solid var(--border, #192038);
    border-radius: 10px;
}

.cx-order--cart .cx-cart-item__main {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
}

.cx-order--cart .cx-cart-item__copy {
    flex: 1 1 14rem;
    min-width: 0;
}

.cx-order--cart .cx-cart-item__name {
    margin: 0 0 0.4rem;
    color: var(--white, #fff);
    font-size: 1.05rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.cx-order--cart .cx-cart-item__identity,
.cx-order--cart .cx-cart-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.55rem;
    margin: 0 0 0.28rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.cx-order--cart .cx-cart-item__k {
    color: var(--muted, #6a7a9a);
    font-size: 0.75rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    min-width: 4.5rem;
}

.cx-order--cart .cx-cart-item__v {
    color: var(--text, #cfe0f0);
    overflow-wrap: anywhere;
}

.cx-order--cart .cx-cart-item__sub,
.cx-order--cart .cx-cart-item__note {
    margin: 0 0 0.25rem;
    color: var(--muted2, #8090b0);
    font-size: 0.82rem;
}

.cx-order--cart .cx-cart-item__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 0.65rem;
    margin-top: 0.55rem;
}

.cx-order--cart .cx-cart-item__actions .btn-link {
    padding: 0;
    color: var(--muted2, #8090b0);
}

.cx-order--cart .cx-cart-add-mailbox {
    margin: 0.35rem 0 0.85rem;
}

.cx-order--cart .cx-cart-add-mailbox a {
    color: var(--muted2, #8090b0);
    font-size: 0.82rem;
    font-weight: 550;
    text-decoration: none;
}

.cx-order--cart .cx-cart-add-mailbox a:hover,
.cx-order--cart .cx-cart-add-mailbox a:focus-visible {
    color: var(--cyan, #00d4ff);
    text-decoration: underline;
}

.cx-order--cart .cx-cart-item__price {
    flex: 0 0 auto;
    text-align: right;
    min-width: 7rem;
}

.cx-order--cart .cx-cart-item__amt {
    display: block;
    color: var(--white, #fff);
    font-size: 1.2rem;
    font-weight: 700;
}

.cx-order--cart .cx-cart-item__price .cycle {
    display: block;
    color: var(--muted2, #8090b0);
    font-size: 0.8rem;
}

.cx-order--cart .cx-cart-empty {
    padding: 1.25rem 0.25rem;
    color: var(--muted2, #8090b0);
}

.cx-order--cart .empty-cart {
    margin: 0 0 1rem;
}

.cx-order--cart .cx-cart-disclose {
    margin: 0 0 0.65rem;
    color: var(--muted2, #8090b0);
    font-size: 0.88rem;
}

.cx-order--cart .cx-cart-disclose summary {
    cursor: pointer;
    color: var(--muted2, #8090b0);
    font-weight: 550;
}

.cx-order--cart .cx-cart-disclose__body {
    margin-top: 0.55rem;
    max-width: 22rem;
}

.cx-order--cart .cx-cart-summary__count {
    margin: 0 0 0.75rem;
    color: var(--muted2, #8090b0);
    font-size: 0.88rem;
}

.cx-order--cart .cx-cart-secure {
    margin: 0.65rem 0 0.2rem;
    color: var(--muted, #6a7a9a);
    font-size: 0.78rem;
}

.cx-order--cart .cx-order-summary__cta .btn-continue-shopping {
    display: inline-block;
    margin: 0.15rem 0 0.45rem;
    padding: 0;
    color: var(--muted2, #8090b0);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
}

.cx-order--cart .cx-order-summary__cta .btn-continue-shopping:hover,
.cx-order--cart .cx-order-summary__cta .btn-continue-shopping:focus-visible {
    color: var(--cyan, #00d4ff);
    text-decoration: underline;
}

.cx-order--cart .cx-cart-help {
    margin: 0;
}

.cx-order--cart .cx-cart-help a {
    color: var(--muted2, #8090b0);
    font-size: 0.8rem;
    text-decoration: none;
}

.cx-order--cart .cx-cart-help a:hover,
.cx-order--cart .cx-cart-help a:focus-visible {
    color: var(--cyan, #00d4ff);
    text-decoration: underline;
}

.cx-order--cart .cx-order-summary__cta #checkout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.85rem;
    background: #00d4ff !important;
    border-color: #00d4ff !important;
    color: #041018 !important;
    font-weight: 700;
}

@media (min-width: 992px) {
    .cx-order--cart .secondary-cart-sidebar {
        flex: 0 0 36%;
        max-width: 36%;
    }

    .cx-order--cart .secondary-cart-body {
        flex: 0 0 64%;
        max-width: 64%;
    }

    .cx-order--cart #orderSummary.cx-order-summary {
        position: sticky;
        top: 1rem;
    }
}

@media (max-width: 991.98px) {
    .cx-order--cart #orderSummary.cx-order-summary {
        position: static;
        margin-top: 1.15rem;
    }
}

@media (max-width: 575.98px) {
    .cx-order--cart .cx-cart-item__main {
        flex-direction: column;
    }

    .cx-order--cart .cx-cart-item__price {
        text-align: left;
        width: 100%;
    }

    .cx-order--cart .cx-cart-item__actions .btn-link {
        min-height: 2.25rem;
        display: inline-flex;
        align-items: center;
    }
}
