/* Scoped to reservation screens; no theme-wide changes. */
.yyr { max-width: 850px; margin: 1.5em auto; line-height: 1.7; overflow-wrap: anywhere; }
.yyr *, .yyr *::before, .yyr *::after { box-sizing: border-box; }
.yyr form { margin: 0 0 24px; }
.yyr label { display: block; margin: 16px 0; min-height: 48px; cursor: pointer; }
.yyr input:not([type="hidden"]):not([type="checkbox"]):not([type="submit"]),
.yyr select {
    display: block; width: 100%; max-width: 100%; min-width: 0;
    min-height: 48px; height: auto; margin-top: 6px; padding: 10px 12px;
    font-size: 16px; line-height: 1.5; color: #202c28;
    background-color: #fff; border: 1px solid #85938d; border-radius: 6px;
}
.yyr input[type="checkbox"] {
    width: 22px; height: 22px; margin: 0 8px 0 0; vertical-align: middle;
    accent-color: #235d46; cursor: pointer;
}
.yyr form button, .yyr form input[type="submit"] {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; height: auto; min-width: 144px; max-width: 100%;
    padding: 12px 20px; margin: 8px 0; font-size: 16px; font-weight: 700;
    line-height: 1.5; white-space: normal; text-align: center;
    background: #235d46; color: #fff; border: 2px solid #235d46;
    border-radius: 8px; box-shadow: none; cursor: pointer; touch-action: manipulation;
}
.yyr form button:hover, .yyr form input[type="submit"]:hover { background: #174431; border-color: #174431; color: #fff; }
.yyr form button:disabled, .yyr form input[type="submit"]:disabled { opacity: .55; cursor: not-allowed; }
.yyr button:focus-visible, .yyr input:focus-visible, .yyr select:focus-visible, .yyr a:focus-visible {
    outline: 3px solid #a44f00; outline-offset: 3px;
}
.yyr nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.yyr nav a {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 10px 14px; border: 1px solid #85938d;
    border-radius: 8px; background: #f2f7f4; color: #174431; font-size: 16px;
    text-decoration: none; text-align: center; touch-action: manipulation;
}
.yyr p > a, .yyr li > a, .yyr td > a {
    display: inline-block; min-height: 44px; padding: 10px 4px;
}
.yyr table { width: 100%; border-collapse: collapse; }
.yyr th, .yyr td { padding: 12px 8px; border-bottom: 1px solid #ddd; text-align: left; vertical-align: top; }
.yyr td form { min-width: 180px; }
.yyr .table-wrap { overflow-x: auto; }
.yyr .notice { padding: 16px; border: 1px solid #777; }
.yyr nav a[aria-current="page"] { background: #235d46; border-color: #235d46; color: #fff; font-weight: 700; }
.yyr .yyr-reservation-filter { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 16px; align-items: end; padding: 18px; background: #f5f7f6; border-radius: 10px; }
.yyr .yyr-reservation-filter label { margin: 0; }
.yyr .yyr-reservation-filter button { margin: 0; min-width: 100px; }
.yyr .yyr-reservation-list { table-layout: fixed; border: 0; line-height: 1.6; }
.yyr .yyr-reservation-list th { background: #f5f7f6; color: #4a5952; font-size: 14px; padding: 14px 16px; border: 0; border-bottom: 1px solid #dce4df; }
.yyr .yyr-reservation-list th:nth-child(1) { width: 35%; }
.yyr .yyr-reservation-list th:nth-child(2) { width: 39%; }
.yyr .yyr-reservation-list th:nth-child(3) { width: 26%; }
.yyr .yyr-reservation-list td { padding: 20px 16px; background: #fff; border: 0; border-bottom: 1px solid #dce4df; }
.yyr .yyr-reservation-date { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.yyr .yyr-reservation-date strong, .yyr .yyr-reservation-date span { white-space: nowrap; }
.yyr .yyr-guest-name { margin-top: 8px; font-weight: 700; }
.yyr .yyr-reservation-id, .yyr .yyr-action-note { color: #5b6861; font-size: 13px; }
.yyr .yyr-status { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 20px; font-size: 13px; font-weight: 700; }
.yyr .yyr-status-confirmed { background: #e6f3eb; color: #174431; }
.yyr .yyr-status-cancelled { background: #eef0f2; color: #525c65; }
.yyr .yyr-reservation-contact > div + div { margin-top: 12px; }
.yyr .yyr-contact-label { display: block; color: #5b6861; font-size: 12px; margin-bottom: 2px; }
.yyr .yyr-edit-button, .yyr .yyr-cancel-details > summary { display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; min-height: 44px; border: 1px solid #81978a; border-radius: 6px; color: #235d46; background: #fff; text-decoration: none; font-size: 14px; font-weight: 700; cursor: pointer; }
.yyr .yyr-edit-button { margin-bottom: 8px; }
.yyr .yyr-edit-button:hover { background: #eff6f1; }
.yyr .yyr-cancel-details > summary { color: #9b3429; border-color: #cc9b95; list-style: none; }
.yyr .yyr-cancel-details > summary::-webkit-details-marker { display: none; }
.yyr .yyr-cancel-details > summary:focus-visible { outline: 3px solid #a44f00; outline-offset: 3px; }
.yyr .yyr-cancel-confirm { margin-top: 12px; padding: 10px; border: 1px solid #e8cac6; border-radius: 6px; background: #fff8f6; font-size: 14px; }
.yyr .yyr-cancel-confirm p { margin: 0 0 10px; }
.yyr .yyr-reservation-list td form { min-width: 0; margin: 0; }
.yyr .yyr-cancel-confirm label { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 10px; min-height: 0; }
.yyr .yyr-cancel-confirm input[type="checkbox"] { flex: 0 0 22px; margin: 2px 0 0; }
.yyr .yyr-cancel-confirm button { min-width: 0; width: 100%; padding: 8px; margin: 0; font-size: 14px; background: #963d33; border-color: #963d33; }
.yyr .yyr-cancel-confirm button:hover { background: #752b23; border-color: #752b23; }
.yyr .yyr-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 680px) {
    .yyr .yyr-reservation-filter { grid-template-columns: 1fr; gap: 12px; }
    .yyr .yyr-reservation-filter button { width: 100%; }
    .yyr .yyr-reservation-list, .yyr .yyr-reservation-list tbody, .yyr .yyr-reservation-list tr, .yyr .yyr-reservation-list td { display: block; width: 100%; }
    .yyr .yyr-reservation-list thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .yyr .yyr-reservation-list tr { margin-bottom: 16px; border: 1px solid #dce4df; border-radius: 10px; overflow: hidden; }
    .yyr .yyr-reservation-list td { border: 0; padding: 14px 18px; }
    .yyr .yyr-reservation-list td + td { border-top: 1px solid #edf1ee; }
    .yyr .yyr-reservation-list .yyr-edit-button { margin-right: 8px; }
}
@media (max-width: 600px) {
    .yyr form button, .yyr form input[type="submit"] { width: 100%; min-height: 52px; }
    .yyr nav a { flex: 1 1 140px; font-size: 14px; padding: 10px; }
    .yyr label { margin: 18px 0; }
}
