#akr-reservation-wrap {
    max-width: var(--width-inner, 1200px);
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.akr-step {
    margin-bottom: 30px;
}

.akr-step-label {
    font-weight: bold;
    margin-bottom: 8px;
}

#akr-service {
    width: 100%;
    max-width: 320px;
    padding: 8px;
    box-sizing: border-box;
}

/* ボタン */
.akr-btn {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.akr-btn-primary {
    background: var(--color-primary, #0056b3);
    border-color: var(--color-primary, #0056b3);
    color: #fff;
}

/* カレンダー */
.akr-calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 12px 0;
}

#akr-month-label {
    font-weight: bold;
    font-size: 16px;
}

table.akr-calendar {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

table.akr-calendar th,
table.akr-calendar td {
    border: 1px solid #e0e0e0;
    text-align: center;
    padding: 10px 4px;
    font-size: 14px;
    height: 80px;
    box-sizing: border-box;
}

table.akr-calendar td.akr-day {
    display: table-cell;
    vertical-align: middle;
}

.akr-day-num {
    display: block;
}

.akr-day-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

@media (max-width: 600px) {
    table.akr-calendar td {
        height: 60px;
    }

    table.akr-calendar th {
        height: 40px;
    }
}

table.akr-calendar th {
    background: #f8f9fa;
}

table.akr-calendar th:first-child {
    color: #c0392b;
}

table.akr-calendar th:last-child {
    color: #1f5fa8;
}

.akr-day {
    cursor: pointer;
}

.akr-day-available {
    background: #c8ecd0;
    color: #145a24;
    font-weight: bold;
}

.akr-day-available:hover {
    background: #a8e0b6;
}

.akr-day-low {
    background: #c9ffcc;
}

.akr-day-low:hover {
    background: #aef0b3;
}

.akr-day-full {
    background: #d9d9d9;
    color: #555;
    font-weight: bold;
}

.akr-day-closed {
    background: #f7c9c9;
    color: #7a1f1f;
    font-weight: bold;
}

.akr-day-out-of-range {
    background: #a5a5a5;
    color: #fff;
    font-weight: bold;
}

.akr-day-disabled {
    cursor: default;
}

.akr-day-selected {
    outline: 2px solid var(--color-primary, #0056b3);
}

.akr-empty {
    background: transparent;
    border: none;
}

.akr-calendar-legend {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin: 10px 0 0;
    padding: 0;
    font-size: 18px;
}

.akr-calendar-legend li {
    display: flex;
    align-items: center;
    gap: 4px;
}

.akr-calendar-legend li span {
    line-height: 18px;
    position: relative;
    top: -1px;
}

@media (max-width: 600px) {
    .akr-calendar-legend {
        font-size: 14px;
    }

    .akr-calendar-legend li span {
        top: 0;
    }
}

.akr-calendar-legend .akr-icon {
    flex-shrink: 0;
    vertical-align: middle;
}


/* 時間選択 */
#akr-time-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.akr-time-btn {
    background: #fff;
    width: 100%;
    box-sizing: border-box;
    min-height: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.akr-time-btn.akr-time-btn-available {
    background: #c8ecd0;
}

.akr-time-btn.akr-time-btn-available:hover {
    background: #a8e0b6;
}

.akr-time-btn.akr-time-btn-low {
    background: #fef8c1;
}

.akr-time-btn.akr-time-btn-low:hover {
    background: #f5ec9c;
}

.akr-time-btn-line1 {
    font-size: 14px;
}

.akr-time-btn-line2 {
    display: flex;
    align-items: center;
    justify-content: center;
}

.akr-icon {
    width: 18px;
    height: 18px;
    display: block;
}

/* 緑に戻す場合は #1e7e34 に変更 */
.akr-icon-circle { color: #1565c0; }
.akr-icon-triangle { color: #c97a00; }
.akr-icon-cross { color: #c0392b; }
.akr-icon-dash { color: #888; }

.akr-time-btn:hover {
    background: var(--color-bg-light, #f0f4f8);
}

.akr-time-btn-full,
.akr-time-btn-full:hover {
    background: #e0e0e0;
    color: #999;
    border-color: #d0d0d0;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    #akr-time-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* モーダル */
#akr-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#akr-modal {
    background: #fff;
    border-radius: 6px;
    padding: 24px;
    max-width: 420px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

#akr-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

#akr-modal h3 {
    margin: 0 0 16px;
}

#akr-modal-summary {
    font-weight: bold;
    color: var(--color-primary, #0056b3);
    margin: 0 0 8px;
}

.akr-required-note {
    font-size: 13px;
    color: #888;
    margin: 0 0 24px;
    text-align: right;
}

#akr-reservation-form label {
    font-weight: bold;
}

#akr-reservation-form input,
#akr-reservation-form select,
#akr-reservation-form textarea {
    width: 100%;
    padding: 6px;
    box-sizing: border-box;
    font-family: inherit;
}

#akr-reservation-form textarea {
    resize: vertical;
}

#akr-reservation-form p {
    margin: 0 0 20px;
}

.akr-modal-submit-row {
    text-align: right;
}

.akr-plate-row {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.akr-plate-row + .akr-plate-row {
    margin-top: 10px;
}

#akr-reservation-form select.akr-plate-narrow {
    width: 6em;
    flex: 0 0 auto;
}

#akr-reservation-form input.akr-plate-wide {
    width: 0;
    flex: 1;
    min-width: 0;
}

#akr-form-message {
    margin: 70px 0;
    font-weight: bold;
}

#akr-modal-message {
    margin-top: 10px;
    font-weight: bold;
}

/* トースト通知（送信エラー等） */
.akr-form-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1e8e3e;
    color: #fff;
    padding: 14px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    width: max-content;
    max-width: min(90vw, 600px);
    z-index: 999999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    line-height: 1.5;
}
.akr-form-toast.akr-form-toast-error {
    background: #c62828;
}
