/* MP Travel — Account Login V40
 * Functional account type + language selector + back-to-website action.
 * Premium custom Account type and language dropdowns; no browser-native popup.
 */

.mp-auth-main {
    padding-top: 62px;
}

.mp-auth-back {
    position: absolute;
    top: 20px;
    left: 24px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #dfe5ee;
    border-radius: 5px;
    background: #fff;
    color: #173a69;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1;
    transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.mp-auth-back:hover,
.mp-auth-back:focus-visible {
    border-color: #f58220;
    background: #fff8f2;
    color: #c65300;
    outline: none;
}

.mp-auth-language {
    min-width: 74px;
    justify-content: flex-start;
    cursor: default;
    overflow: visible !important;
}

.mp-auth-language select {
    width: 34px;
    min-width: 34px;
    height: 28px;
    margin: 0;
    padding: 0 2px;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #071a3d;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.mp-auth-language select.mp-auth-language-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-width: 1px !important;
    min-height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    pointer-events: none !important;
    border: 0 !important;
}

.mp-auth-language-premium {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 36px;
    z-index: 70;
}

.mp-auth-language-premium__trigger {
    all: unset !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    min-width: 36px !important;
    height: 32px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #071a3d !important;
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.mp-auth-language-premium__trigger:hover,
.mp-auth-language-premium__trigger:focus,
.mp-auth-language-premium__trigger:focus-visible,
.mp-auth-language-premium__trigger:active,
.mp-auth-language-premium.is-open .mp-auth-language-premium__trigger {
    border: 0 !important;
    background: transparent !important;
    color: #071a3d !important;
    box-shadow: none !important;
    outline: none !important;
}

.mp-auth-language-premium__chevron {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    color: #5f6f84;
    transition: transform .16s ease, color .16s ease;
}

.mp-auth-language-premium.is-open .mp-auth-language-premium__chevron {
    transform: rotate(180deg);
    color: #f58220;
}

.mp-auth-language-premium__menu {
    position: absolute;
    top: calc(100% + 7px);
    right: -10px;
    z-index: 10000;
    display: none;
    width: 116px;
    box-sizing: border-box;
    margin: 0;
    padding: 5px;
    border: 1px solid #d9e1ec;
    border-radius: 5px;
    background: #fff;
    box-shadow: none;
}

.mp-auth-language-premium.is-open .mp-auth-language-premium__menu {
    display: block;
}

.mp-auth-language-premium__option {
    all: unset !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100% !important;
    min-height: 34px !important;
    padding: 7px 9px !important;
    border: 0 !important;
    border-radius: 4px !important;
    background: #fff !important;
    color: #132341 !important;
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -webkit-tap-highlight-color: transparent !important;
    transition: background .14s ease, color .14s ease !important;
}

.mp-auth-language-premium__option + .mp-auth-language-premium__option {
    margin-top: 2px;
}

.mp-auth-language-premium__option:hover,
.mp-auth-language-premium__option:focus,
.mp-auth-language-premium__option:focus-visible,
.mp-auth-language-premium__option.is-keyboard-active {
    background: #fff6ee !important;
    color: #c65300 !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

.mp-auth-language-premium__option:active {
    background: rgba(245, 130, 32, .12) !important;
    color: #c65300 !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

.mp-auth-language-premium__option.is-selected,
.mp-auth-language-premium__option.is-selected:hover,
.mp-auth-language-premium__option.is-selected:focus,
.mp-auth-language-premium__option.is-selected:active {
    background: rgba(245, 130, 32, .10) !important;
    color: #d86608 !important;
    font-weight: 700 !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

.mp-auth-language-premium__option-copy {
    display: inline-flex;
    align-items: center;
    gap: 0;
    min-width: 0;
}

.mp-auth-language-premium__code {
    display: none !important;
}

.mp-auth-language-premium__label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mp-auth-language-premium__check {
    display: none;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

.mp-auth-language-premium__option.is-selected .mp-auth-language-premium__check {
    display: block;
}

.mp-auth-language:has(.mp-auth-language-premium.is-open) {
    border-color: #f58220 !important;
    background: #fff !important;
    box-shadow: none !important;
}

.mp-auth-language:hover,
.mp-auth-language:focus-within,
.mp-auth-language:active {
    background: #fff !important;
    box-shadow: none !important;
}

.mp-auth-account-type > div {
    position: relative;
    overflow: visible !important;
}

.mp-auth-account-type select {
    min-width: 0;
    flex: 1;
    height: 100%;
    margin: 0;
    padding: 0 26px 0 0;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #132341;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.mp-auth-account-type select:invalid {
    color: #98a1af;
}

.mp-auth-account-type select option {
    color: #132341;
    background: #fff;
}

/* Keep the real select in the form for submission, but remove it from the visual UI
 * once the enhanced control is mounted. It remains programmatically available. */
.mp-auth-account-type select.mp-auth-native-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-width: 1px !important;
    min-height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.mp-auth-account-type .mp-auth-premium-select {
    position: relative;
    width: 100%;
    min-width: 0;
    z-index: 40;
}

.mp-auth-account-type .mp-auth-premium-select__trigger {
    all: unset;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    height: 100%;
    min-height: 40px;
    padding: 0 2px 0 0;
    color: #132341;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    cursor: pointer;
}

.mp-auth-account-type .mp-auth-premium-select__trigger:focus-visible {
    outline: none;
}

.mp-auth-account-type .mp-auth-premium-select__value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mp-auth-account-type .mp-auth-premium-select__value.is-placeholder {
    color: #98a1af;
    font-weight: 400;
}

.mp-auth-account-type .mp-auth-premium-select__chevron {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    color: #53657d;
    transition: transform .16s ease, color .16s ease;
}

.mp-auth-account-type .mp-auth-premium-select.is-open .mp-auth-premium-select__chevron {
    transform: rotate(180deg);
    color: #f58220;
}

.mp-auth-account-type .mp-auth-premium-select__menu {
    position: absolute;
    top: calc(100% + 6px);
    left: -37px;
    right: -11px;
    z-index: 9999;
    display: none;
    box-sizing: border-box;
    max-height: 292px;
    margin: 0;
    padding: 6px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid #d9e1ec;
    border-radius: 5px;
    background: #ffffff;
    box-shadow: none;
}

.mp-auth-account-type .mp-auth-premium-select.is-open .mp-auth-premium-select__menu {
    display: block;
}

.mp-auth-account-type .mp-auth-premium-select.is-upward .mp-auth-premium-select__menu {
    top: auto;
    bottom: calc(100% + 6px);
}

.mp-auth-account-type .mp-auth-premium-select__option {
    all: unset;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 4px;
    color: #132341;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.3;
    cursor: pointer;
    transition: background .14s ease, color .14s ease;
}

.mp-auth-account-type .mp-auth-premium-select__option + .mp-auth-premium-select__option {
    margin-top: 2px;
}

.mp-auth-account-type .mp-auth-premium-select__option:hover,
.mp-auth-account-type .mp-auth-premium-select__option:focus-visible,
.mp-auth-account-type .mp-auth-premium-select__option.is-keyboard-active {
    background: #fff6ee;
    color: #c65300;
    outline: none;
}

.mp-auth-account-type .mp-auth-premium-select__option.is-selected {
    background: rgba(245, 130, 32, .10);
    color: #d86608;
    font-weight: 700;
}

.mp-auth-account-type .mp-auth-premium-select__check {
    display: none;
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
}

.mp-auth-account-type .mp-auth-premium-select__option.is-selected .mp-auth-premium-select__check {
    display: block;
}

.mp-auth-account-type .mp-auth-premium-select.has-error .mp-auth-premium-select__trigger {
    color: #b42318;
}

.mp-auth-account-type > div:has(.mp-auth-premium-select.is-open) {
    border-color: #f58220 !important;
}

.mp-auth-account-type > div:has(.mp-auth-premium-select.has-error) {
    border-color: #d92d20 !important;
}

.mp-auth-account-type .mp-auth-premium-select__menu::-webkit-scrollbar {
    width: 6px;
}

.mp-auth-account-type .mp-auth-premium-select__menu::-webkit-scrollbar-thumb {
    border-radius: 100px;
    background: #ccd5e2;
}

.mp-auth-account-type .mp-auth-premium-select__menu::-webkit-scrollbar-track {
    background: transparent;
}

.mp-auth-form {
    gap: 12px;
}

.mp-auth-alert {
    margin-bottom: 12px;
}

@media (max-width: 900px) {
    .mp-auth-main {
        padding-top: 66px;
    }

    .mp-auth-back {
        left: 18px;
        top: 17px;
    }

    .mp-auth-language {
        right: 18px;
        top: 17px;
    }
}

@media (max-width: 560px) {
    .mp-auth-main {
        padding-top: 64px;
    }

    .mp-auth-back {
        max-width: calc(100% - 118px);
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .mp-auth-language-premium__menu {
        width: 112px;
    }

    .mp-auth-account-type select,
    .mp-auth-account-type .mp-auth-premium-select__trigger,
    .mp-auth-account-type .mp-auth-premium-select__option {
        font-size: 12.5px;
    }

    .mp-auth-account-type .mp-auth-premium-select__menu {
        left: -34px;
        right: -8px;
        max-height: 250px;
    }
}


/* MP Travel - Account submit interaction lock V41 */
.mp-auth-shell .mp-auth-submit,
.mp-auth-shell .mp-auth-submit:focus,
.mp-auth-shell .mp-auth-submit:focus-visible,
.mp-auth-shell .mp-auth-submit:active {
    background: #ff6b00 !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.mp-auth-shell .mp-auth-submit:hover {
    background: #ef6200 !important;
    color: #fff !important;
}

.mp-auth-shell .mp-auth-submit:focus-visible {
    outline: 2px solid rgba(255, 107, 0, .28) !important;
    outline-offset: 2px !important;
}
