/* Xbau storefront notices shared by desktop, tablet and mobile views. */
.page.messages {
    box-sizing: border-box;
    max-width: 1720px;
    padding-left: 0;
    padding-right: 0;
    text-align: left;
}

.page.messages .messages,
.page.messages .message {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
}

/* Notices also live inside minicart items, checkout forms and account panels,
 * not just .page.messages. Target typed notices, never generic chat messages. */
body .message.success,
body .message.error,
body .message.warning,
body .message.notice,
body .message.info,
body .message-success,
body .message-error,
body .message-warning,
body .message-notice,
body .message-info,
.page.messages .message-success,
.page.messages .message.success,
.page.messages .message-error,
.page.messages .message.error,
.page.messages .message-warning,
.page.messages .message.warning,
.page.messages .message-notice,
.page.messages .message.notice,
.page.messages .message-info,
.page.messages .message.info,
.sell-index-index .password-strength-meter,
.csmarketplace-account-register .password-strength-meter,
.sign-up-modal .password-strength-meter,
.sell-index-index .sell-form-container .mage-error:not(input),
.csmarketplace-account-register .sell-form-container .mage-error:not(input) {
    box-sizing: border-box;
    border-radius: 12px;
    overflow: hidden;
}

/* Magento's default notices are visually unrelated to the Xbau interface.
 * Keep the semantic state colours, but make every typed notice one coherent
 * Xbau component. The CSS variables also let compact notices inherit the
 * correct icon and accent without repeating the complete declaration. */
body .message.success,
body .message-success,
.page.messages .message-success,
.page.messages .message.success {
    --xbau-message-accent: #1E99A4;
    --xbau-message-tint: #F0F9FA;
    --xbau-message-icon: "\2713";
}

body .message.error,
body .message-error,
.page.messages .message-error,
.page.messages .message.error {
    --xbau-message-accent: #C53B3B;
    --xbau-message-tint: #FFF4F4;
    --xbau-message-icon: "!";
}

body .message.warning,
body .message-warning,
.page.messages .message-warning,
.page.messages .message.warning {
    --xbau-message-accent: #B87518;
    --xbau-message-tint: #FFF8EC;
    --xbau-message-icon: "!";
}

body .message.notice,
body .message-notice,
body .message.info,
body .message-info,
.page.messages .message-notice,
.page.messages .message.notice,
.page.messages .message-info,
.page.messages .message.info {
    --xbau-message-accent: #4D4D4F;
    --xbau-message-tint: #F5F7F7;
    --xbau-message-icon: "i";
}

body .message.success,
body .message.error,
body .message.warning,
body .message.notice,
body .message.info,
body .message-success,
body .message-error,
body .message-warning,
body .message-notice,
body .message-info {
    background: var(--xbau-message-tint, #F5F7F7) !important;
    border: 1px solid rgba(30, 153, 164, 0.22);
    border-color: color-mix(in srgb, var(--xbau-message-accent, #4D4D4F) 25%, transparent);
    border-left: 4px solid var(--xbau-message-accent, #4D4D4F);
    box-shadow: 0 8px 24px rgba(77, 77, 79, 0.10);
    color: #4D4D4F !important;
    font-size: 16px;
    line-height: 1.45;
    margin-bottom: 16px;
    min-height: 54px;
    padding: 14px 48px 14px 56px !important;
    position: relative;
}

body .message.success::before,
body .message.error::before,
body .message.warning::before,
body .message.notice::before,
body .message.info::before,
body .message-success::before,
body .message-error::before,
body .message-warning::before,
body .message-notice::before,
body .message-info::before {
    align-items: center;
    background: var(--xbau-message-accent, #4D4D4F);
    border-radius: 50%;
    color: #FFFFFF;
    content: var(--xbau-message-icon, "i");
    display: flex;
    font-size: 15px;
    font-style: normal;
    font-weight: 700;
    height: 28px;
    justify-content: center;
    left: 16px;
    line-height: 1;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
}

/* Remove only Magento's built-in status glyph. The content, dismiss control
 * and accessibility semantics remain untouched. */
body .message.success > *:first-child::before,
body .message.error > *:first-child::before,
body .message.warning > *:first-child::before,
body .message.notice > *:first-child::before,
body .message.info > *:first-child::before,
body .message-success > *:first-child::before,
body .message-error > *:first-child::before,
body .message-warning > *:first-child::before,
body .message-notice > *:first-child::before,
body .message-info > *:first-child::before {
    display: none !important;
}

body .message.success a,
body .message.error a,
body .message.warning a,
body .message.notice a,
body .message.info a,
body .message-success a,
body .message-error a,
body .message-warning a,
body .message-notice a,
body .message-info a {
    color: #1E99A4 !important;
    font-weight: 600;
    overflow-wrap: anywhere;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 150ms ease;
}

body :is(
    .message.success,
    .message.error,
    .message.warning,
    .message.notice,
    .message.info,
    .message-success,
    .message-error,
    .message-warning,
    .message-notice,
    .message-info
) a:is(:hover, :focus, :active) {
    color: #4D4D4F !important;
}

body :is(
    .message.success,
    .message.error,
    .message.warning,
    .message.notice,
    .message.info,
    .message-success,
    .message-error,
    .message-warning,
    .message-notice,
    .message-info
) a:focus-visible {
    border-radius: 2px;
    outline: 2px solid #1E99A4;
    outline-offset: 2px;
}

/* Stock and validation notices inside narrow controls use the same design at
 * a smaller scale so they do not overwhelm minicart or form layouts. */
.minicart-items .message.notice,
.minicart-items .message-notice,
.checkout-container .field .message,
.form .field .message {
    box-shadow: none;
    font-size: 14px;
    margin: 8px 0;
    min-height: 44px;
    padding: 10px 12px 10px 46px !important;
}

.minicart-items .message.notice::before,
.minicart-items .message-notice::before,
.checkout-container .field .message::before,
.form .field .message::before {
    height: 24px;
    left: 12px;
    width: 24px;
}

@media (max-width: 767px) {
    .page.messages {
        padding-left: 14px;
        padding-right: 14px;
    }

    body .message.success,
    body .message.error,
    body .message.warning,
    body .message.notice,
    body .message.info,
    body .message-success,
    body .message-error,
    body .message-warning,
    body .message-notice,
    body .message-info {
        border-radius: 10px;
        box-shadow: 0 6px 18px rgba(77, 77, 79, 0.10);
        font-size: 14px;
        margin-bottom: 12px;
        min-height: 50px;
        padding: 12px 40px 12px 50px !important;
    }

    body .message.success::before,
    body .message.error::before,
    body .message.warning::before,
    body .message.notice::before,
    body .message.info::before,
    body .message-success::before,
    body .message-error::before,
    body .message-warning::before,
    body .message-notice::before,
    body .message-info::before {
        height: 24px;
        left: 13px;
        width: 24px;
    }
}

.xbau-sell-hero {
    box-sizing: border-box;
    margin: 24px auto 0;
    /* Match the actual width and centered edge of the four step cards. */
    max-width: 1360px;
    width: calc(100% - 32px);
}

.xbau-sell-hero picture {
    display: block;
}

.xbau-sell-hero img {
    border-radius: 16px;
    display: block;
    height: clamp(180px, 17vw, 300px);
    object-fit: cover;
    object-position: center;
    width: 100%;
}

@media (max-width: 767px) {
    .xbau-sell-hero {
        margin-top: 16px;
    }

    .xbau-sell-hero img {
        border-radius: 12px;
        height: 180px;
        object-position: 65% center;
    }
}

/* Empty account sections share the neutral Favorite panel. */
.xbau-account-empty {
    align-content: center;
    background: #fff;
    border: 1px solid rgba(77, 77, 79, .32);
    border-radius: 12px;
    box-sizing: border-box;
    color: #4D4D4F;
    display: grid;
    justify-items: center;
    min-height: clamp(264px, 42vw, 400px);
    padding: 32px clamp(16px, 4vw, 40px);
    row-gap: 16px;
    text-align: center;
}

.xbau-account-empty .xbau-account-empty__icon {
    display: block;
    height: clamp(72px, 13vw, 96px);
    margin: 0;
    object-fit: contain;
    width: clamp(72px, 13vw, 96px);
}

.xbau-account-empty .xbau-account-empty__title {
    color: inherit;
    font-size: clamp(20px, 3vw, 24px);
    font-weight: 600;
    line-height: 1.15;
    margin: 0;
    max-width: min(100%, 16ch);
    overflow-wrap: anywhere;
}

.xbau-account-empty .xbau-account-empty__description {
    color: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    margin: 8px 0 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* Keep both inboxes' table and controls while styling their no-result row. */
:is(.csmessaging-customer-ainbox, .csmessaging-customer-vinbox) .column.main
.data-grid .data-grid-tr-no-data > td {
    background: #fff;
    color: #4D4D4F;
    font-size: clamp(20px, 3vw, 24px);
    font-weight: 600;
    line-height: 1.15;
    overflow-wrap: anywhere;
    padding: clamp(32px, 8vw, 96px) 16px;
    text-align: center;
    vertical-align: middle;
}

:is(.csmessaging-customer-ainbox, .csmessaging-customer-vinbox) .column.main
.data-grid .data-grid-tr-no-data > td::before {
    background: center / contain no-repeat url('../images/xbau-icons/support.svg');
    content: "";
    display: block;
    height: clamp(72px, 13vw, 96px);
    margin: 0 auto 16px;
    width: clamp(72px, 13vw, 96px);
}
