/*
 * Copyright: Stefan Ennemoser, web-crossing GmbH
 *
 * Preismatrix "Preis pro Aufenthalt" auf der Unterkunfts-Detailseite (TK67989).
 * Markup entsteht in feratel-price-matrix.js.
 */

.fd-price-matrix {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e6e6e6;
}

.fd-price-matrix[hidden] {
    display: none;
}

.fd-price-matrix__title:focus {
    outline: none;
}

.fd-price-matrix__loading {
    margin: 0;
    color: #555;
}

.fd-price-matrix__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.fd-price-matrix__title {
    flex: 1 1 100%;
    margin: 0;
    font-size: 1.25rem;
}

.fd-price-matrix__type {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    font-size: .875rem;
    color: #555;
}

.fd-price-matrix__type select {
    min-width: 12rem;
}

.fd-price-matrix__nav {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .875rem;
}

.fd-price-matrix__nav-btn {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid #ccc;
    background: #fff;
    color: #333;
    font-size: 0;
    line-height: 1;
    cursor: pointer;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3e%3cpath d='M10.9375 16.4602L6.13672 11.6604L5.07617 10.5999L7.19824 8.47876L11.998 13.2786L16.7979 8.47876L18.9189 10.5999L11.998 17.5208L10.9375 16.4602Z' fill='%23262626'/%3e%3c/svg%3e") no-repeat center / 15px auto;
    background-color: white;
}
.fd-price-matrix__nav-btn[data-pm-key="fewer"] {
    rotate: 180deg;
}
.fd-price-matrix__nav-btn[data-pm-key="prev"] {
    rotate: 90deg;
}
.fd-price-matrix__nav-btn[data-pm-key="next"] {
    rotate: -90deg;
}

.fd-price-matrix__nav-btn:hover:not(:disabled) {
    border-color: #333;
}

.fd-price-matrix__nav-btn:disabled {
    opacity: .35;
    cursor: default;
}

.fd-price-matrix__body {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.fd-price-matrix__scroller {
    flex: 1 1 auto;
    overflow-x: auto;
}

.fd-price-matrix__side {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

/*
 * Tabellenregeln bewusst mit hoher Spezifitaet: das Site-CSS faerbt jede
 * Tabelle ueber "table:not(.ui-datepicker-calendar) tr th/td" rot ein und setzt
 * 25-30px Innenabstand plus min-width 120px. Das waere hier 7 Spalten breiter
 * als die Zimmerspalte.
 */
.fd-price-matrix table.fd-price-matrix__table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    text-align: center;
    font-size: .875rem;
}

.fd-price-matrix table.fd-price-matrix__table tr th,
.fd-price-matrix table.fd-price-matrix__table tr td {
    min-width: 0;
    padding: 0;
    border: 1px solid #e6e6e6;
    background: #fff;
    color: #333;
    font-weight: 400;
}

.fd-price-matrix table.fd-price-matrix__table thead tr th {
    padding: .5rem .25rem;
    background: #f6f6f6;
    font-weight: 600;
    line-height: 1.3;
}

.fd-price-matrix table.fd-price-matrix__table thead tr th.fd-price-matrix__corner {
    width: 5.5rem;
}

.fd-price-matrix__weekday {
    display: block;
    font-weight: 400;
    color: #555;
}

.fd-price-matrix table.fd-price-matrix__table tbody tr th {
    padding: .5rem;
    background: #f6f6f6;
    font-weight: 600;
    white-space: nowrap;
}

.fd-price-matrix table.fd-price-matrix__table tr td.fd-price-matrix__cell--unavailable {
    padding: .5rem .25rem;
    color: #767676;
    font-size: .75rem;
}

.fd-price-matrix__cell-btn {
    width: 100%;
    min-height: 3rem;
    padding: .5rem .125rem;
    font-size: .8125rem;
    border: 0;
    background: transparent;
    color: #333;
    line-height: 1.25;
    cursor: pointer;
}

.fd-price-matrix__cell-btn small {
    display: block;
    font-size: .6875rem;
}

.fd-price-matrix__cell-btn:hover {
    background: #f6f6f6;
}

/*
 * Schriftfarbe mit !important: das Site-CSS setzt fuer jeden Button ueber eine
 * lange :not(...)-Kette color #262626 - deren Spezifitaet ist nicht sinnvoll zu
 * ueberbieten. Ohne das waere der Preis in der gewaehlten Zelle schwarz auf
 * schwarz.
 */
.fd-price-matrix .fd-price-matrix__cell-btn,
.fd-price-matrix .fd-price-matrix__nav-btn {
    color: #333 !important;
}

.fd-price-matrix__cell-btn.is-selected {
    background: #222;
}

.fd-price-matrix .fd-price-matrix__cell-btn.is-selected {
    color: #fff !important;
}

/*
 * Farbe und Staerke des Fokusrings kommen aus dem Site-CSS
 * (*:focus-visible, 3px grau, !important). Hier nur der Versatz nach innen,
 * sonst schneidet der Scroller (overflow-x) den Ring der Randzellen ab.
 */
.fd-price-matrix__cell-btn:focus-visible,
.fd-price-matrix__nav-btn:focus-visible {
    outline-offset: -2px;
}
.fd-price-matrix select {
    border: 1px solid #929292;
    border-radius: 2px;
    outline: none !important;
    width: 100%;
    background-color: white;
    color: #262626;
    min-height: 48px;
    appearance: none;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3e%3cpath d='M10.9375 16.4602L6.13672 11.6604L5.07617 10.5999L7.19824 8.47876L11.998 13.2786L16.7979 8.47876L18.9189 10.5999L11.998 17.5208L10.9375 16.4602Z' fill='%23262626'/%3e%3c/svg%3e") no-repeat calc(100% - 10px) center / 24px auto;
    background-color: white;
    padding: 10px 40px 10px 16px;
}
.fd-price-matrix select:focus-visible {
    border-color: #262626;
}