/* =========================================================
   Rinkven website: vaste knoppen + strokeswidget
   ipadgang wordt hierdoor niet beïnvloed.
   ========================================================= */

:root {
    --strokes-green: #184f2d;
    --strokes-green-dark: #103d22;
    --strokes-green-soft: #edf4ee;
    --strokes-border: #cfd9d1;
    --strokes-text: #17301f;
    --strokes-muted: #647068;
    --strokes-white: #ffffff;
    --strokes-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
}

/* EasyBooker overlay uit de bestaande footer */
.easyBookerInline {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 999999999999999999 !important;
    display: none;
}

.easyBookerInlineOverlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    background-color: #000;
    opacity: 0.6;
}

.easyBookerBtnClose {
    position: absolute;
    right: 0;
    top: 0;
    padding: 14px;
    border: 0;
    background-color: #9e1a1a !important;
    color: #fff;
    z-index: 75;
}

/* Desktop: Strokes links, La Vista rechts */
.tableBooker {
    position: fixed;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: stretch;
    width: auto;
    height: 75px;
    overflow: visible;
    border: none;
    z-index: 9879;
}

.tableBooker button {
    margin: 0;
    border-radius: 0;
    font-family: inherit;
    line-height: 1.2;
    cursor: pointer;
}

.strokesWidgetOpenDesktop,
.tableBookerButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 210px;
    height: 75px;
    padding: 12px 18px !important;
    border: 0;
    font-size: 1.15em;
    text-align: center;
}

.strokesWidgetOpenDesktop {
    background: #fff;
    color: var(--strokes-green) !important;
    border-top: 1px solid #d6ddd7;
    border-left: 1px solid #d6ddd7;
}

.strokesWidgetOpenDesktop:hover,
.strokesWidgetOpenDesktop:focus {
    background: var(--strokes-green-soft);
    color: var(--strokes-green-dark) !important;
}

.tableBookerButton {
    background-color: #4a5a35;
    color: #fff;
}

.tableBookerButton:hover,
.tableBookerButton:focus {
    background-color: #39472a;
}

.strokesButtonIcon,
.bottomBarIcon {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    fill: currentColor;
}

.terreinConditiesBtn {
    display: none;
}

/* Mobiele onderste balk */
.bottomBar {
    display: none;
}

/* Widget */
.strokesWidget[hidden] {
    display: none !important;
}

.strokesWidget {
    position: fixed;
    right: 20px;
    bottom: 92px;
    width: min(590px, calc(100vw - 40px));
    z-index: 9880;
}

.strokesWidgetPanel {
    overflow: hidden;
    width: 100%;
    border: 1px solid rgba(24, 79, 45, 0.22);
    border-bottom: 4px solid var(--strokes-green);
    border-radius: 12px;
    background: var(--strokes-white);
    color: var(--strokes-text);
    box-shadow: var(--strokes-shadow);
}

.strokesWidgetHeader {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 14px 58px 10px;
}

.strokesWidgetHeader h2 {
    margin: 0;
    color: var(--strokes-green-dark);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 1.1px;
    text-align: center;
    text-transform: uppercase;
}

.strokesWidgetClose {
    position: absolute;
    top: 7px;
    right: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--strokes-green-dark);
    font-family: Arial, sans-serif;
    font-size: 31px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}

.strokesWidgetClose:hover,
.strokesWidgetClose:focus {
    background: var(--strokes-green-soft);
}

.strokesWidgetForm {
    display: grid;
    grid-template-columns: 1fr 1.8fr 0.8fr;
    gap: 13px 14px;
    padding: 0 18px 16px;
}

.strokesWidgetField {
    min-width: 0;
}

.strokesWidgetField label {
    display: block;
    margin: 0 0 6px;
    color: var(--strokes-green-dark);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.strokesWidgetField select,
.strokesWidgetField input {
    width: 100%;
    height: 42px;
    margin: 0;
    padding: 8px 11px;
    border: 1px solid var(--strokes-border);
    border-radius: 4px;
    background: #fff;
    color: #1d2921;
    font-family: inherit;
    font-size: 15px;
    outline: none;
}

.strokesWidgetField select:focus,
.strokesWidgetField input:focus {
    border-color: var(--strokes-green);
    box-shadow: 0 0 0 2px rgba(24, 79, 45, 0.12);
}

.strokesWidgetField select:disabled {
    color: #879088;
    background: #f3f5f3;
}

.strokesWidgetCalculate {
    grid-column: 1 / -1;
    height: 42px;
    margin: 0;
    padding: 10px 15px;
    border: 0;
    border-radius: 3px;
    background: var(--strokes-green);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    cursor: pointer;
}

.strokesWidgetCalculate:hover,
.strokesWidgetCalculate:focus {
    background: var(--strokes-green-dark);
}

.strokesWidgetCalculate:disabled {
    opacity: 0.65;
    cursor: wait;
}

.strokesWidgetStatus {
    min-height: 0;
    margin: 0 18px;
    color: var(--strokes-muted);
    font-size: 13px;
    text-align: center;
}

.strokesWidgetStatus:not(:empty) {
    min-height: 20px;
    margin-bottom: 12px;
}

.strokesWidgetStatus.isError {
    color: #a21d1d;
}

.strokesWidgetResults {
    padding: 0 18px 17px;
}

.strokesWidgetResultsHeader,
.strokesWidgetResultRow {
    display: grid;
    grid-template-columns: minmax(160px, 1.6fr) minmax(90px, 1fr) minmax(70px, 0.55fr);
    align-items: center;
    column-gap: 12px;
}

.strokesWidgetResultsHeader {
    min-height: 31px;
    padding: 0 12px;
    color: var(--strokes-green-dark);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.strokesWidgetResultsHeader span:last-child {
    text-align: right;
}

.strokesWidgetRows {
    overflow: hidden;
    border: 1px solid #d9dfda;
    border-radius: 4px;
}

.strokesWidgetResultRow {
    min-height: 43px;
    padding: 6px 11px;
    background: #fff;
    font-size: 14px;
}

.strokesWidgetResultRow:nth-child(even) {
    background: #f8faf8;
}

.strokesWidgetResultRow + .strokesWidgetResultRow {
    border-top: 1px solid #dfe4df;
}

.strokesWidgetTee {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
}

.strokesWidgetDot {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.strokesWidgetLength {
    white-space: nowrap;
}

.strokesWidgetStrokes {
    justify-self: end;
    min-width: 36px;
    padding: 4px 8px;
    border: 1px solid #77af82;
    border-radius: 3px;
    color: var(--strokes-green-dark);
    background: #fff;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 80px;
    }

    .tableBooker {
        display: none;
    }

    .bottomBar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        width: 100%;
        height: 80px;
        z-index: 9999;
        background: #fff;
        box-shadow: 0 -3px 14px rgba(0, 0, 0, 0.15);
    }

    .bottomBarItem {
        display: flex;
        flex: 1 1 33.333%;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 33.333%;
        min-width: 0;
        height: 80px;
        margin: 0;
        padding: 8px 6px !important;
        border: 0;
        border-right: 1px solid #d9e0da;
        border-radius: 0;
        font-family: inherit;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.2;
        text-align: left;
        text-decoration: none !important;
        cursor: pointer;
    }

    .bottomBarItem:last-child {
        border-right: 0;
    }

    .bottomBarStatus {
        background: #fff;
        color: var(--strokes-green-dark) !important;
    }

    .bottomBarStrokes {
        background: var(--strokes-green-soft);
        color: var(--strokes-green-dark);
    }

    .bottomBarReserve {
        background: #4a5a35;
        color: #fff;
    }

    .bottomBarIcon {
        width: 26px;
        height: 26px;
    }

    .strokesWidget {
        right: 8px;
        bottom: 86px;
        width: calc(100vw - 16px);
        max-height: calc(100vh - 96px);
    }

    .strokesWidgetPanel {
        max-height: calc(100vh - 96px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 13px 13px 8px 8px;
    }

    .strokesWidgetHeader {
        min-height: 55px;
        padding: 13px 48px 8px;
    }

    .strokesWidgetHeader h2 {
        font-size: 14px;
    }

    .strokesWidgetForm {
        grid-template-columns: 1fr 1.7fr 0.7fr;
        gap: 10px;
        padding: 0 12px 13px;
    }

    .strokesWidgetField select,
    .strokesWidgetField input {
        height: 40px;
        padding: 7px 9px;
        font-size: 14px;
    }

    .strokesWidgetCalculate {
        height: 40px;
    }

    .strokesWidgetStatus {
        margin-right: 12px;
        margin-left: 12px;
    }

    .strokesWidgetResults {
        padding: 0 12px 13px;
    }

    .strokesWidgetResultsHeader,
    .strokesWidgetResultRow {
        grid-template-columns: minmax(120px, 1.5fr) minmax(72px, 0.9fr) minmax(54px, 0.45fr);
        column-gap: 7px;
    }

    .strokesWidgetResultRow {
        min-height: 42px;
        padding: 5px 9px;
        font-size: 13px;
    }

    .strokesWidgetDot {
        width: 18px;
        height: 18px;
        flex-basis: 18px;
    }
}

@media (max-width: 480px) {
    .bottomBarItem {
        gap: 6px;
        font-size: 11px;
    }

    .bottomBarIcon {
        width: 23px;
        height: 23px;
    }

    .strokesWidgetForm {
        grid-template-columns: 1fr 1.45fr 0.72fr;
        gap: 8px;
    }

    .strokesWidgetField label {
        font-size: 9px;
    }

    .strokesWidgetField select,
    .strokesWidgetField input {
        padding-right: 6px;
        padding-left: 7px;
        font-size: 13px;
    }
}
