/* Shared public-page details and mobile layout. */
.mobile-rhino-hero {
    display: none;
}

.public-social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    color: #858585;
    font-family: 'Source Sans Pro', Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.5;
}

.public-social-links a {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    min-height: 32px;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.public-social-links a:hover {
    color: #555;
    text-decoration: underline;
}

.public-social-links a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
    border-radius: 3px;
}

.public-social-links svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: currentColor;
}

/* Warranty form appearance is shared by desktop and mobile. */
.mobile-brand-warranty .warranty-form-panel {
    width: 100%;
    max-width: 432px;
    margin: 0 auto 24px !important;
    padding: 28px;
    border-radius: 20px;
    background: #d9d9d9;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    font-family: 'Source Sans Pro', Arial, sans-serif;
}

.mobile-brand-warranty .warranty-brand {
    display: block;
    margin-bottom: 40px;
}

.mobile-brand-warranty .warranty-brand img {
    display: block;
    width: 45%;
    max-height: 160px;
    margin: 0 auto;
}

.mobile-brand-warranty .warranty-input:not(.select2-hidden-accessible),
.mobile-brand-warranty #advancedSearchForm .select2-container {
    width: 100% !important;
    min-width: 0;
    margin-bottom: 16px !important;
}

.mobile-brand-warranty .warranty-input:not(.select2-hidden-accessible) {
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    background: #f8f9fa;
    color: #6c757d;
    text-align: left;
    line-height: 24px;
    appearance: none;
}

.mobile-brand-warranty .warranty-input,
.mobile-brand-warranty .warranty-input::placeholder,
.mobile-brand-warranty .select2-selection__rendered {
    font-size: 16px !important;
}

.mobile-brand-warranty .warranty-input::placeholder {
    color: #9ca3af;
    font-style: normal;
    font-weight: 400;
    text-align: left;
}

.mobile-brand-warranty .warranty-input:not(.select2-hidden-accessible),
.mobile-brand-warranty .select2-selection--single {
    min-height: 54px;
}

.mobile-brand-warranty .select2-selection--single {
    display: flex;
    align-items: center;
    padding: 15px 44px 15px 20px;
    border: none;
    border-radius: 10px;
    background: #f8f9fa;
}

.mobile-brand-warranty .select2-selection__rendered {
    width: 100%;
    padding: 0 !important;
    color: #6c757d !important;
    text-align: left !important;
    line-height: 24px !important;
}

.mobile-brand-warranty .select2-selection__rendered[title="Select Country"] {
    color: #9ca3af !important;
}

.mobile-brand-warranty .select2-selection__arrow {
    right: 20px !important;
}

.mobile-brand-warranty .select2-selection__arrow b {
    width: 8px !important;
    height: 8px !important;
    margin-top: -6px !important;
    border: none !important;
    border-right: 2px solid #9ca3af !important;
    border-bottom: 2px solid #9ca3af !important;
    transform: rotate(45deg);
}

.mobile-brand-warranty .warranty-btn {
    width: 100%;
    margin-top: 0;
    padding: 15px 20px;
    border-radius: 10px;
    background: #767676;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    font-style: normal;
    line-height: 21px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.mobile-brand-warranty .warranty-btn .e-warranty-icon {
    display: none;
}

@media only screen and (max-width: 767px) {
    body.mobile-brand-login,
    body.mobile-brand-warranty {
        background: #e6e6e6 url('/assets/grey-bg.png') center / cover;
        background-attachment: scroll;
        min-height: 100vh;
    }

    /* Keep the complete rhino, forest and mountain visible on the page texture. */
    .mobile-rhino-hero {
        display: block;
        width: calc(100% - 32px);
        max-width: 420px;
        aspect-ratio: 3 / 4;
        margin: 0 auto;
        background: url('/assets/mobile-rhino-mountain.png') center / contain no-repeat;
    }

    .mobile-brand-login .login-image {
        display: none;
    }

    .mobile-brand-login .login-content {
        min-height: 0 !important;
        padding: 16px 16px 32px;
        font-family: 'Source Sans Pro', Arial, sans-serif !important;
    }

    .mobile-brand-login .login-card {
        min-width: 0;
        width: 100% !important;
        max-width: 432px;
        margin: 0 auto;
        padding: 16px !important;
    }

    .mobile-brand-login .card-body {
        padding: 12px;
    }

    .mobile-brand-login .login-input {
        min-width: 0;
        font-size: 16px;
    }

    .mobile-brand-warranty .section {
        background: none !important;
        justify-content: flex-start;
        padding: 24px 0 32px;
    }

    .mobile-brand-warranty .home-controller {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-right: 16px;
        padding-left: 16px;
    }

    .mobile-brand-warranty .mobile-rhino-hero {
        width: 100%;
        margin-bottom: 16px;
    }

    .mobile-brand-warranty .warranty-results {
        flex: 0 0 100%;
        max-width: 100%;
        min-width: 0;
    }

    .mobile-brand-warranty .warranty-results table {
        min-width: 520px;
    }
}
