/* Loaded into Nexus Cart's existing Shadow DOM by CloudYork Six only. */
:host { font-family: 'DM Sans', 'Open Sans', sans-serif; color: #001233; }
:host([data-app="cart-module"]) .min-h-screen { min-height: 0; }
[data-test="cart-empty-message"] { background: #fff; padding: 40px 24px; border: 1px solid #dde3ef; border-top: 3px solid #673de6; border-radius: 0; margin: 24px 0; color: #34415b; }
[data-test="cart-item"] { background: #fff; border: 1px solid #dde3ef; border-radius: 0; padding: 20px; margin-bottom: 16px; }
.cy-order-summary { background: #fff !important; border: 1px solid #dde3ef; border-top: 3px solid #673de6; padding: 24px !important; border-radius: 0; min-height: 0 !important; height: auto !important; align-self: flex-start; }
[data-test="cart-order-summary"] { color: #001233; padding-bottom: 4px; }
[data-test="cart-order-summary"] h1, [data-test="cart-order-summary"] h2, [data-test="cart-order-summary"] h3 { font-size: 22px; font-weight: 500; }
[data-test="cart-checkout-button"] { background: #673de6; border-color: #673de6; color: #fff; min-height: 46px; border-radius: 0; font-weight: 500; width: 100%; }
[data-test="cart-checkout-button"]:hover { background: #542dc7; border-color: #542dc7; }
[data-test="cart-header-browse-link"], [data-test="cart-header-edit-nameservers-link"] { color: #673de6; font-size: 13px; text-decoration: none; }
[data-test="cart-header-edit-nameservers-link"] { border: 1px solid #dde3ef; padding: 8px 12px; background: #fff; border-radius: 0; }
[data-test="cart-header-edit-nameservers-link"]:hover { background: #f3efff; }
.cy-order-summary button:not([data-test="cart-checkout-button"]) { border-radius: 0; }
.cy-order-summary input { border-radius: 0; border-color: #dde3ef; }
button:focus-visible, a:focus-visible { outline: 2px dotted #673de6; outline-offset: 3px; }
/* Keep the search hero compact and its helper copy readable. */
[data-test="domain-register-page"] h1 { color: #001233; font-size: 26px; font-weight: 500; line-height: 1.3; }
[data-test="domain-register-page"] > p { color: #647089; font-size: 14px; line-height: 1.6; }
[data-test="domain-search-input"] { font-size: 16px; }
/* Domain-name wrappers need to shrink independently of the suffix/price. */
@media (max-width: 480px) {
  :host([data-app="domain-module"]) .group > .flex-row > .min-w-0.flex-1 { flex-wrap: wrap; gap: .25rem; }
  :host([data-app="domain-module"]) .group > .flex-row > .min-w-0.flex-1 > .flex.items-center.justify-between { min-width: 0; flex: 1 1 100%; justify-content: flex-start; }
  .cy-order-summary { padding: 20px !important; }
  [data-test="domain-register-page"] h1 { font-size: 24px; }
}

.cy-page-title { color: #001233; font-size: 26px; font-weight: 500; line-height: 1.3 !important; }
.cy-page-description { color: #647089; font-size: 14px; line-height: 1.6; }
.cy-summary-title { color: #001233; font-size: 22px; font-weight: 500; line-height: 1.4 !important; }
.cy-order-summary { gap: 24px; }
.cy-order-summary > div { padding: 0 !important; background: transparent !important; position: static !important; }
.cy-order-summary [data-test="cart-checkout-button"] { position: static; margin: 0; }
@media (max-width: 480px) { .cy-page-title { font-size: 24px; } }

/* Shared keyboard focus inside the isolated Nexus cart surface. */
:is(a,button,input,select,textarea,[tabindex]):where(:not(.StripeElement *, #paymentGatewayInput *, .moduleclientarea *, .g-recaptcha *, .h-captcha *)):focus-visible { outline:2px dotted #673de6 !important; outline-offset:3px; box-shadow:none !important; }
:is(a,button,input,select,textarea,[tabindex]):where(:not(.StripeElement *, #paymentGatewayInput *, .moduleclientarea *, .g-recaptcha *, .h-captcha *)):focus:not(:focus-visible) { outline:none; box-shadow:none; }

/* Nameserver modal V1.1: retain the purple wrapper border, with no second outline. */
input[data-test^="edit-nameservers-modal-input-"]:is(:focus, :focus-visible) {
  outline: none !important;
  outline-width: 0 !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
}
div:has(> input[data-test^="edit-nameservers-modal-input-"]):focus-within {
  outline: none !important;
  outline-width: 0 !important;
  box-shadow: none !important;
  border-color: #633bef !important;
}
