/*
 * Oticon layout additions in plain CSS, loaded after styles.css (Magento_Theme/layout/default.xml).
 * Plain CSS so these rules do not depend on a Tailwind rebuild picking up new classes.
 */

/* Footer at the bottom of the window when the page is shorter than the window. */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.page-wrapper > .page-main {
    flex: 1 0 auto;
    width: 100%;
}

/* Login page = the shop's landing page: intro above the two cards, notes below. */
.oticon-login-intro {
    max-width: 48rem;
    margin: 0 0 2rem;
    font-size: 1.0625rem;
    line-height: 1.6;
}
.oticon-login-notes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1.5rem;
    margin: 2rem 0 3rem;
}
.oticon-login-notes h3 {
    margin-bottom: .375rem;
    font-size: 1.0625rem;
    font-weight: 600;
}
.oticon-login-notes p {
    line-height: 1.6;
}

/* Registration form: wider card, fields in two columns, brands on one line. */
.b2b_registration-create-account .registration-container > div:has(> .form-create-account) {
    max-width: 56rem;
}
.form-create-account .fieldset.create {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.form-create-account .fieldset.create > legend {
    margin-bottom: 1rem;
}
.form-create-account .fieldset.create > br {
    display: none;
}
.form-create-account .fieldset.create > .field {
    width: 100%;
}
.form-create-account .fieldset.create > .field.choice,
.form-create-account .fieldset.create > .field.brands {
    grid-column: 1 / -1;
}
.form-create-account .fieldset.create > .field.email,
.form-create-account .fieldset.create > .field:has(> .control input[name="email"]),
.form-create-account .fieldset.create > .field:has(input[name="email"]) {
    grid-column: 1 / -1;
}
.form-create-account .field.brands .control {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 2rem;
}
.form-create-account .field.brands .control > p {
    flex-basis: 100%;
    margin: 0;
}
.form-create-account .field.brands .control > label {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
    font-weight: 600;
}
/* Widget inputs (company name, phone) come without w-full; checkboxes inherited the
   48 px input height. */
.form-create-account .control input:not([type="checkbox"]):not([type="radio"]),
.form-create-account .control select {
    width: 100%;
}
.form-create-account input[type="checkbox"] {
    flex: none;
    width: 1.125rem;
    height: 1.125rem;
    min-height: 0;
    padding: 0;
    /* The theme's input reset sets appearance: none without styling a checked state. */
    appearance: auto;
    accent-color: #3344f6;
}
.form-create-account .fieldset.create > .field.choice {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .5rem;
}
.form-create-account .fieldset.create > .field.choice > .label {
    margin: 0;
}
@media (max-width: 767px) {
    .form-create-account .fieldset.create {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Home page brand tiles (ZSteam_BrandAccess brand_tiles.phtml). */
.oticon-brand-tiles-section {
    margin: 1.5rem 0 3rem;
}
.oticon-brand-tiles-title {
    margin-bottom: 1rem;
    font-size: 1.375rem;
    font-weight: 600;
}
.oticon-brand-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 1.5rem;
}
.oticon-brand-tile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 9rem;
    padding: 1.5rem;
    text-decoration: none;
}
.oticon-brand-tile__name {
    font-size: 1.5rem;
    font-weight: 700;
}
.oticon-brand-tile__more {
    color: #3344f6;
    font-weight: 600;
}
.oticon-brand-tiles-help {
    margin-top: 1.5rem;
}
.oticon-brand-tiles-help a {
    color: #3344f6;
    font-weight: 600;
}
.oticon-brand-tiles-empty {
    max-width: 40rem;
    padding: 1.5rem;
    line-height: 1.6;
}
