#mobile-shop-question-modal,
#mobile-shop-question-modal * {
    box-sizing: border-box;
}

#mobile-shop-question-modal {
    position: fixed;
    top: var(--mobile-app-header-height, calc(env(safe-area-inset-top, 0px) + 116px));
    right: 0;
    bottom: var(--mobile-shop-bottom-nav-offset, calc(64px + env(safe-area-inset-bottom, 0px)));
    left: 0;
    z-index: 9000;
    background: #ffffff !important;
    color: #050505 !important;
    color-scheme: light;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 18px 20px calc(30px + env(safe-area-inset-bottom, 0px));
}

.mobile-shop-guest-ask {
    display: grid;
    align-content: start;
    gap: 16px;
    min-height: 100%;
}

.mobile-shop-guest-ask h1 {
    margin: 0 0 2px;
    color: #050505 !important;
    -webkit-text-fill-color: #050505 !important;
    font-size: 34px;
    line-height: 1;
    font-weight: 950;
}

.mobile-shop-guest-ask-card {
    display: grid;
    gap: 12px;
    border: 1px solid rgba(5, 5, 5, 0.14);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 250, 0.98)) !important;
    padding: 16px;
    box-shadow: 0 22px 54px rgba(5, 5, 5, 0.075);
}

.mobile-shop-guest-ask-card label {
    color: rgba(5, 5, 5, 0.64) !important;
    -webkit-text-fill-color: rgba(5, 5, 5, 0.64) !important;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
    line-height: 1;
    text-transform: uppercase;
}

.mobile-shop-guest-ask-picker {
    position: relative;
}

#mobile-shop-question-modal .mobile-shop-guest-ask-selected,
#mobile-shop-question-modal .mobile-shop-guest-ask-option {
    width: 100%;
    min-height: 64px;
    border: 1px solid rgba(5, 5, 5, 0.14) !important;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #fbfbfb) !important;
    color: #050505 !important;
    -webkit-text-fill-color: #050505 !important;
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 11px;
    padding: 10px 12px 10px 10px;
    text-align: left;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

#mobile-shop-question-modal .mobile-shop-guest-ask-option {
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 60px;
    border: 0 !important;
    border-radius: 14px;
    padding: 8px;
}

#mobile-shop-question-modal .mobile-shop-guest-ask-option.is-active {
    background: rgba(230, 83, 61, 0.08) !important;
}

.mobile-shop-guest-ask-thumb {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    border: 1px solid rgba(5, 5, 5, 0.1);
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.04), rgba(5, 5, 5, 0.02));
    color: rgba(5, 5, 5, 0.58);
    -webkit-text-fill-color: rgba(5, 5, 5, 0.58);
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: 0 0 auto;
}

.mobile-shop-guest-ask-option .mobile-shop-guest-ask-thumb {
    width: 44px;
    height: 44px;
    border-radius: 13px;
}

.mobile-shop-guest-ask-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-shop-guest-ask-selected-copy,
.mobile-shop-guest-ask-option span:not(.mobile-shop-guest-ask-thumb) {
    min-width: 0;
}

.mobile-shop-guest-ask-selected-copy strong,
.mobile-shop-guest-ask-selected-copy em,
.mobile-shop-guest-ask-option strong,
.mobile-shop-guest-ask-option em {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
}

.mobile-shop-guest-ask-selected-copy strong,
.mobile-shop-guest-ask-option strong {
    font-size: 15px;
    line-height: 1.15;
    font-weight: 950;
}

.mobile-shop-guest-ask-selected-copy em,
.mobile-shop-guest-ask-option em {
    margin-top: 5px;
    color: rgba(5, 5, 5, 0.58) !important;
    -webkit-text-fill-color: rgba(5, 5, 5, 0.58) !important;
    font-size: 12px;
    line-height: 1;
    font-style: normal;
    font-weight: 780;
}

.mobile-shop-guest-ask-selected > i {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(5, 5, 5, 0.05);
    color: rgba(5, 5, 5, 0.58);
    -webkit-text-fill-color: rgba(5, 5, 5, 0.58);
    display: grid;
    place-items: center;
    font-size: 11px;
    transition: transform 0.16s ease;
}

.mobile-shop-guest-ask-picker.is-open .mobile-shop-guest-ask-selected > i {
    transform: rotate(180deg);
}

.mobile-shop-guest-ask-options {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 5;
    max-height: 252px;
    overflow-y: auto;
    border: 1px solid rgba(5, 5, 5, 0.14);
    border-radius: 20px;
    background: #ffffff;
    padding: 8px;
    box-shadow: 0 22px 52px rgba(5, 5, 5, 0.16);
}

.mobile-shop-guest-ask-picker.is-open .mobile-shop-guest-ask-options {
    display: grid;
    gap: 4px;
}

#mobile-shop-question-modal #mobile-shop-question-text.mobile-shop-guest-ask-textbox {
    width: 100%;
    min-height: 132px;
    border: 1px solid rgba(5, 5, 5, 0.14) !important;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #fbfbfb) !important;
    color: #050505 !important;
    -webkit-text-fill-color: #050505 !important;
    caret-color: #e6533d !important;
    color-scheme: light !important;
    outline: none;
    padding: 15px;
    font: inherit;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 760;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

#mobile-shop-question-modal .mobile-shop-guest-ask-input {
    width: 100%;
    min-height: 52px;
    border: 1px solid rgba(5, 5, 5, 0.14) !important;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #fbfbfb) !important;
    color: #050505 !important;
    -webkit-text-fill-color: #050505 !important;
    caret-color: #e6533d !important;
    color-scheme: light !important;
    outline: none;
    padding: 0 15px;
    font: inherit;
    font-size: 15px;
    line-height: 1;
    font-weight: 760;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

#mobile-shop-question-modal .mobile-shop-guest-ask-input::placeholder {
    color: rgba(5, 5, 5, 0.42) !important;
    -webkit-text-fill-color: rgba(5, 5, 5, 0.42) !important;
}

#mobile-shop-question-modal #mobile-shop-question-text.mobile-shop-guest-ask-textbox:empty::before {
    content: attr(data-placeholder);
    color: rgba(5, 5, 5, 0.42) !important;
    -webkit-text-fill-color: rgba(5, 5, 5, 0.42) !important;
    pointer-events: none;
}

#mobile-shop-question-modal .mobile-shop-guest-ask-submit {
    width: 100%;
    min-height: 54px;
    margin-top: 4px;
    border: 1px solid #e6533d !important;
    border-radius: 18px;
    background: linear-gradient(180deg, #f05a45, #e6533d) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 15px;
    font-weight: 950;
    box-shadow: 0 16px 34px rgba(230, 83, 61, 0.22) !important;
}

#mobile-shop-question-modal .mobile-shop-guest-ask-submit:active {
    transform: translateY(1px);
    box-shadow: 0 10px 24px rgba(230, 83, 61, 0.18) !important;
}

#mobile-shop-question-modal .mobile-shop-guest-ask-submit:disabled {
    opacity: 0.62 !important;
}

/* Senior guest ask redesign: compact, neutral, and aligned with the premium
   shop surfaces instead of the older red form-card treatment. */
html body #mobile-shop-question-modal {
    top: var(--mobile-app-header-height, calc(env(safe-area-inset-top, 0px) + 112px)) !important;
    bottom: var(--mobile-shop-bottom-nav-offset, calc(66px + env(safe-area-inset-bottom, 0px))) !important;
    padding: 18px 16px calc(22px + env(safe-area-inset-bottom, 0px)) !important;
    background:
        linear-gradient(180deg, #ffffff 0%, #fbfbfb 58%, #f6f6f6 100%) !important;
    color: #0b0b0b !important;
    -webkit-text-fill-color: #0b0b0b !important;
}

html body #mobile-shop-question-modal .mobile-shop-guest-ask {
    width: min(100%, 430px) !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    gap: 14px !important;
}

html body #mobile-shop-question-modal .mobile-shop-guest-ask-card {
    gap: 14px !important;
    padding: 14px !important;
    border: 1px solid rgba(5, 5, 5, 0.10) !important;
    border-radius: 22px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 18px 44px rgba(5, 5, 5, 0.07) !important;
}

html body #mobile-shop-question-modal .mobile-shop-guest-ask-field {
    display: grid !important;
    gap: 8px !important;
}

html body #mobile-shop-question-modal .mobile-shop-guest-ask-card label {
    color: #737373 !important;
    -webkit-text-fill-color: #737373 !important;
    font-size: 10px !important;
    font-weight: 860 !important;
    letter-spacing: 0.12em !important;
}

html body #mobile-shop-question-modal .mobile-shop-guest-ask-selected,
html body #mobile-shop-question-modal .mobile-shop-guest-ask-option {
    min-height: 58px !important;
    border-color: rgba(5, 5, 5, 0.10) !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;
    box-shadow: none !important;
}

html body #mobile-shop-question-modal .mobile-shop-guest-ask-selected {
    grid-template-columns: 42px minmax(0, 1fr) 24px !important;
    padding: 8px 10px 8px 8px !important;
}

html body #mobile-shop-question-modal .mobile-shop-guest-ask-thumb {
    width: 42px !important;
    height: 42px !important;
    border-radius: 14px !important;
    background: #f5f5f5 !important;
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;
}

html body #mobile-shop-question-modal .mobile-shop-guest-ask-selected-copy strong,
html body #mobile-shop-question-modal .mobile-shop-guest-ask-option strong {
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;
    font-size: 14px !important;
    font-weight: 860 !important;
    letter-spacing: 0 !important;
}

html body #mobile-shop-question-modal .mobile-shop-guest-ask-selected-copy em,
html body #mobile-shop-question-modal .mobile-shop-guest-ask-option em {
    color: #777777 !important;
    -webkit-text-fill-color: #777777 !important;
    font-size: 11px !important;
    font-weight: 720 !important;
}

html body #mobile-shop-question-modal .mobile-shop-guest-ask-option.is-active {
    background: #f4f4f4 !important;
    box-shadow: inset 0 0 0 1px #111111 !important;
}

html body #mobile-shop-question-modal .mobile-shop-guest-ask-options {
    border-color: rgba(5, 5, 5, 0.12) !important;
    background: #ffffff !important;
    box-shadow: 0 20px 44px rgba(5, 5, 5, 0.14) !important;
}

html body #mobile-shop-question-modal .mobile-shop-guest-ask-chips {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
}

html body #mobile-shop-question-modal .mobile-shop-guest-ask-chips button {
    min-width: 0 !important;
    min-height: 36px !important;
    padding: 0 8px !important;
    border: 1px solid rgba(5, 5, 5, 0.10) !important;
    border-radius: 999px !important;
    background: #f7f7f7 !important;
    color: #222222 !important;
    -webkit-text-fill-color: #222222 !important;
    box-shadow: none !important;
    font-size: 11px !important;
    font-weight: 780 !important;
    white-space: nowrap !important;
}

html body #mobile-shop-question-modal #mobile-shop-question-text.mobile-shop-guest-ask-textbox {
    min-height: 150px !important;
    border-color: rgba(5, 5, 5, 0.11) !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;
    caret-color: #111111 !important;
    padding: 15px !important;
    font-size: 15px !important;
    font-weight: 680 !important;
    line-height: 1.42 !important;
    box-shadow: inset 0 1px 0 rgba(5, 5, 5, 0.02) !important;
}

html body #mobile-shop-question-modal .mobile-shop-guest-ask-input {
    min-height: 50px !important;
    border-radius: 16px !important;
    border-color: rgba(5, 5, 5, 0.12) !important;
    background: #ffffff !important;
    padding: 0 14px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
}

html body #mobile-shop-question-modal #mobile-shop-question-text.mobile-shop-guest-ask-textbox:empty::before {
    color: #a0a0a0 !important;
    -webkit-text-fill-color: #a0a0a0 !important;
}

html body #mobile-shop-question-modal .mobile-shop-guest-ask-submit,
html body #mobile-shop-question-modal .mobile-shop-question-submit:not(:disabled),
html body #mobile-shop-question-modal #mobile-shop-question-submit {
    width: 100% !important;
    min-height: 54px !important;
    margin: 0 !important;
    border: 1px solid #111111 !important;
    border-radius: 16px !important;
    background: #111111 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: 0 14px 28px rgba(17, 17, 17, 0.14) !important;
    font-size: 15px !important;
    font-weight: 840 !important;
    letter-spacing: 0 !important;
}

html body #mobile-shop-question-modal .mobile-shop-guest-ask-submit:active {
    transform: translateY(1px) !important;
    box-shadow: 0 8px 18px rgba(17, 17, 17, 0.12) !important;
}

/* Containerless guest ask. The form is short enough that cards and field boxes
   only add weight — space and type hierarchy carry the structure instead. Every
   fill, border, and shadow above is unset here; inputs keep a single bottom
   rule so the tap target still reads as a field. */
html body #mobile-shop-question-modal {
    padding: 26px 22px calc(26px + env(safe-area-inset-bottom, 0px)) !important;
    background: #ffffff !important;
}

html body #mobile-shop-question-modal .mobile-shop-guest-ask {
    gap: 30px !important;
}

html body #mobile-shop-question-modal .mobile-shop-guest-ask-card {
    gap: 26px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body #mobile-shop-question-modal .mobile-shop-guest-ask-field {
    gap: 10px !important;
}

html body #mobile-shop-question-modal .mobile-shop-guest-ask-card label {
    color: #9a9a9a !important;
    -webkit-text-fill-color: #9a9a9a !important;
}

/* Product picker: no box, just the thumb, the copy, and the chevron. */
html body #mobile-shop-question-modal .mobile-shop-guest-ask-selected {
    min-height: 0 !important;
    padding: 2px 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* The open dropdown stays a real floating surface — it overlaps content and
   needs its own ground to be readable. */
html body #mobile-shop-question-modal .mobile-shop-guest-ask-options {
    border-radius: 18px !important;
}

/* Chips: outline only, no fill. */
html body #mobile-shop-question-modal .mobile-shop-guest-ask-chips {
    gap: 8px !important;
}

html body #mobile-shop-question-modal .mobile-shop-guest-ask-chips button {
    border: 1px solid rgba(5, 5, 5, 0.16) !important;
    background: transparent !important;
    color: #444444 !important;
    -webkit-text-fill-color: #444444 !important;
}

/* Fields: a bottom rule instead of a full border. */
html body #mobile-shop-question-modal input.mobile-shop-guest-ask-input,
html body #mobile-shop-question-modal #mobile-shop-question-text.mobile-shop-guest-ask-textbox {
    border: 0 !important;
    border-bottom: 1px solid rgba(5, 5, 5, 0.16) !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

html body #mobile-shop-question-modal .mobile-shop-guest-ask-input {
    padding-bottom: 2px !important;
}

html body #mobile-shop-question-modal #mobile-shop-question-text.mobile-shop-guest-ask-textbox {
    min-height: 120px !important;
    padding-top: 2px !important;
    padding-bottom: 12px !important;
}

/* The message field is a contenteditable div, so it reports :focus as soon as
   the surface mounts — scope the darkened rule to real keyboard focus only,
   otherwise it renders near-black next to the email field's hairline. */
html body #mobile-shop-question-modal .mobile-shop-guest-ask-input:focus-visible,
html body #mobile-shop-question-modal #mobile-shop-question-text.mobile-shop-guest-ask-textbox:focus-visible {
    border-bottom-color: #111111 !important;
}

/* The picker thumb is a glyph, not a tile — drop its box too. */
html body #mobile-shop-question-modal .mobile-shop-guest-ask-thumb {
    border: 0 !important;
    background: transparent !important;
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;
}

/* The submit button is the one thing that should stay solid. */
html body #mobile-shop-question-modal .mobile-shop-guest-ask-submit,
html body #mobile-shop-question-modal #mobile-shop-question-submit {
    margin-top: 4px !important;
    border-radius: 999px !important;
    box-shadow: none !important;
}
