/* STORY-396 — the sign-up pages. login.css is Be Agent's own stylesheet (accounts.beagent.online); this file holds
   what the captured markup needs that Be Agent did with components: the chip strip, the country list, the code
   boxes' error state, and TripCloud's own notice line. */

body { margin: 0; background: #fff; }

/* the features strip on a phone: Be Agent's is a Swiper carousel — here a strip that scrolls sideways */
swiper-container { display: flex; gap: 32px; overflow-x: auto; scrollbar-width: none; padding-inline: 32px; }
swiper-container::-webkit-scrollbar { display: none; }
swiper-container > swiper-slide { flex: 0 0 auto; display: block; }
swiper-container > swiper-slide.max-lg\:ms-8 { margin-inline-start: 0; }

/* a server message above the form (an expired sign-up, Be Agent unreachable, a general 422) */
.ba-signup-notice { width: 100%; max-width: 338px; margin: -16px auto 24px; padding: 10px 14px; box-sizing: border-box;
    border-radius: 14px; background: #FFF7E6; color: #6B4E16; font-size: 14px; line-height: 1.4; text-align: center; }
.ba-signup-notice--error { background: #FEEFEB; color: #F6370D; }

/* field errors (Be Agent's .error-class) take no room until there is one */
.error-class:empty { display: none; }

/* the password rules: one icon or the other */
[data-ba-rule] svg[hidden] { display: none; }

/* the country list (Be Agent's headless UI listbox), anchored under the dial-code button */
[data-ba-prefix-host] { position: relative; }
[data-ba-panel] { position: absolute; top: calc(100% + 4px); inset-inline-start: 0; z-index: 40; width: 320px; max-height: 360px;
    display: flex; flex-direction: column; background: #fff; border-radius: 24px; box-shadow: 0 4px 30px rgba(0, 0, 0, .15); overflow: hidden; }
[data-ba-panel] [data-ba-rows] { overflow-y: auto; }
[data-ba-panel] [data-ba-row][aria-selected="true"] { background: #F0F6FB; }
@media (max-width: 1023px) {
    [data-ba-panel] { position: fixed; inset: 0; top: 51px; width: auto; max-height: none; border-radius: 36px 36px 0 0; }
}

/* the code boxes: Be Agent marks a wrong code with a red border */
[data-ba-code].is-wrong { border-color: #F6370D !important; }

/* the brand's custom colour (Be Agent's "+") */
.ba-color-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* an English-only field (dir=ltr) on a Hebrew page: its clear button sits at the field's left, where the text starts */
[dir="rtl"] .relative:has(> [data-ba-clear].end-0) > input[dir="ltr"] { padding-left: 22px; }
