#s16[hidden], #remaining-banner[hidden] {
    display: none !important;
}

#s16, #remaining-banner, #remaining-request {
    --remaining-accent: #2F4A4A;
    --remaining-muted: #edf3f4;
}

#remaining-banner {
    display: block;
    width: 100%;
    border: 0;
    font: inherit;
    text-align: inherit;
    cursor: pointer;
    overflow: hidden;
    background: #e2b85c;
    color: #1f3333;
    text-decoration: none;
    padding: 14px 0;
}

.remaining-banner-track {
    display: flex;
    width: max-content;
    animation: remaining-marquee 30s linear infinite;
}

.remaining-banner-track > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    padding: 0 32px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}

.remaining-banner-track > span > p {
    font-size: 24px;
    display: inline-block;
    margin: 0;
    line-height: 1;
}

.remaining-banner-track b {
    display: inline-block;
    padding: 3px 6px;
    border-radius: 4px;
    background: var(--remaining-accent);
    color: #fff;
}

.remaining-banner-track strong {
    color: #7a2e3a;
}

#remaining-banner:hover .remaining-banner-track, #remaining-banner:focus .remaining-banner-track {
    animation-play-state: paused;
}

@keyframes remaining-marquee {
    to {
        transform: translateX(-50%);
    }
}

#app #sections #s16 {
    scroll-margin-top: 110px;
    background: var(--section-background, #f7f7f7);
}

#app #sections #s16 .content {
    max-width: 1200px;
    background: transparent;
    padding: 90px 0;
}

#s16 .section-bar {
    margin-top: 30px;
}

.remaining-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: stretch;
    margin: 48px auto 0;
    max-width: 1200px;
    background: #fff;
    padding: 36px;
}

.remaining-ribbon {
    display: none;
}

@media (min-width: 1024px) {
    .remaining-layout {
        padding-left: 96px;
    }

    .remaining-ribbon {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 96px;
    }
}

.remaining-estimate {
    display: flex;
    flex-direction: column;
    min-width: 0;
    text-align: left;
}

.remaining-hall-name {
    margin: 0 0 24px;
    color: var(--remaining-accent);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
}

.remaining-price-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.remaining-date {
    font-size: 16px;
}

.remaining-price-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--remaining-accent);
    background: var(--remaining-muted);
    border-radius: 20px;
    white-space: nowrap;
}

.remaining-price-controls button {
    border: 0;
    background: transparent;
    width: 28px;
    height: 32px;
    font-size: 21px;
    color: inherit;
    cursor: pointer;
}

.remaining-count {
    font-size: 12px;
}

.remaining-regular, .remaining-total {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: baseline;
}

.remaining-regular {
    color: #888;
    font-size: 13px;
    margin-bottom: 12px;
}

.remaining-total {
    font-size: 17px;
    font-weight: 700;
}

.remaining-total strong {
    text-align: right;
    font-size: 23px;
}

.remaining-total em {
    font-size: 15px;
    font-style: normal;
    color: #e15a56;
    margin-right: 8px;
}

.remaining-price-note {
    font-size: 10px;
    color: #888;
    margin: 8px 0 14px;
    line-height: 1.6;
}

.remaining-breakdown {
    border-top: 1px solid #e9e9e9;
    padding-top: 12px;
    margin: 0 0 24px;
}

.remaining-breakdown > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    font-size: 13px;
    color: #666;
}

.remaining-breakdown dt {
    font-weight: 400;
}

.remaining-breakdown dd {
    margin: 0;
    text-align: right;
}

.remaining-schedule-heading {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
}

.remaining-schedule-heading > span {
    font-size: 11px;
    color: #6c7575;
}

.remaining-selection-help {
    font-size: 10px;
    color: #888;
    margin: 5px 0 9px;
}

.remaining-dates {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.remaining-date-button {
    min-height: 42px;
    padding: 6px 3px;
    border: 1px solid #dae4e6;
    border-radius: 3px;
    background: #f8fafb;
    color: #42595d;
    font-size: 10px;
    line-height: 1.5;
    cursor: pointer;
}

.remaining-date-button:hover {
    background-color: var(--remaining-muted);
    border-color: var(--remaining-accent);
}

.remaining-date-button.is-preview {
    border-color: var(--remaining-accent);
}

.remaining-date-button.is-selected {
    background: var(--remaining-accent);
    border-color: var(--remaining-accent);
    color: #fff;
}

.remaining-feedback {
    color: #9b3945;
    min-height: 16px;
    font-size: 12px;
    line-height: 1.6;
    margin: 8px 0 20px;
}

.remaining-closed {
    border-top: 1px solid #e9e9e9;
    margin-bottom: 12px;
    padding-top: 16px;
}

.remaining-closed[hidden] {
    display: none;
}

.remaining-closed h4 {
    margin: 0 0 10px;
    color: #666;
    font-size: 13px;
    font-weight: 700;
}

.remaining-closed-date {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    min-height: 48px;
    padding: 6px;
    border: 1px solid #ffb6b6;
    border-radius: 3px;
    background: #fdf5f5;
    color: #888;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.5;
    text-align: left;
    cursor: not-allowed;
    opacity: 1;
    overflow: hidden;
}

.remaining-closed-label {
    text-decoration: line-through;
}

.remaining-closed-stamp {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(90, 90, 90, .22);
    font-size: 30px;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
}

.remaining-send:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.remaining-action {
    display: flex;
    flex-direction: column;
    min-width: 0;
    text-align: left;
    justify-content: center;
    gap: 18px;
}

.remaining-form {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.remaining-form > * {
    flex-shrink: 0;
}

.remaining-send {
    display: block;
    width: 100%;
    background: var(--remaining-accent);
    border: 1px solid var(--remaining-accent);
    color: #fff;
    padding: 20px 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
}

.remaining-form .remaining-send span {
    margin-left: 10px;
    color: inherit;
    font-size: inherit;
}

.remaining-send:hover {
    background: #1b434c;
}

.remaining-notes {
    background: #f8f8f8;
    padding: 16px 16px 16px 28px;
    margin: 0;
    list-style: disc;
    color: #888;
    font-size: 11px;
    line-height: 1.9;
}

#remaining-request[hidden] {
    display: none !important;
}

#remaining-request {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    place-items: center;
    padding: 24px 16px;
    text-align: left;
}

.remaining-request-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .7);
}

.remaining-request-dialog {
    position: relative;
    width: 100%;
    max-width: 520px;
    min-width: 0;
    max-height: calc(100dvh - 48px);
    box-sizing: border-box;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 32px;
    background: #fff;
}

.remaining-request-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #777;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.remaining-action-title {
    margin: 0;
    color: var(--remaining-accent);
    font-size: 20px;
    font-weight: 700;
}

.remaining-action-summary {
    margin: 0;
    color: #777;
    font-size: 13px;
    line-height: 1.7;
}

.remaining-action-selection {
    box-sizing: border-box;
    min-height: 112px;
    padding: 14px;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    background: #fafafa;
}

.remaining-selected-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.remaining-selected-dates:empty {
    display: none;
}

.remaining-selected-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    max-width: 100%;
    padding: 5px 5px 5px 10px;
    border: 1px solid rgba(47, 74, 74, .24);
    border-radius: 3px;
    /*background: rgba(47, 74, 74, .06);*/
    background-color: rgb(255 255 255 / 81%);
    color: var(--remaining-accent);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    color: #2f4a4a;
}

.remaining-selected-date > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.remaining-remove-date {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: rgba(47, 74, 74, .1);

    color: inherit;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.remaining-remove-date span {
    font-size: 14px;
}

.remaining-remove-date:hover {
    background: rgba(47, 74, 74, .18);
}

#s16 .remaining-open {
    width: 100%;
    min-height: 60px;
    padding: 12px;
    font: inherit;
    font-size: 16px;
}

.remaining-open:disabled {
    opacity: .5;
    cursor: not-allowed;
}

@media (max-width: 450px) {
    .remaining-request-dialog {
        padding: 28px 20px;
    }

    .remaining-action-title {
        font-size: 18px;
    }

    #s16 .remaining-open {
        font-size: 15px;
    }
}

#remaining-request h2 {
    font-size: 20px;
    line-height: 1.5;
    font-weight: 700;
    margin: 0 0 24px;
    color: var(--remaining-accent);
}

.remaining-request-summary {
    font-size: 13px;
    color: #777;
    border-bottom: 1px solid #eee;
    padding-bottom: 18px;
    margin-bottom: 22px;
}

.remaining-request-selection-label {
    margin: 0;
    line-height: 1.7;
}

.remaining-request-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 12px 0 0;
    list-style: none;
    flex-direction: column;
}

.remaining-request-dates:empty {
    display: none;
}

.remaining-request-date {
    display: flex;
    /*flex-direction: column;*/
    gap: 2px;
    box-sizing: border-box;
    max-width: 100%;
    padding: 9px 12px;
    border: 1px solid rgba(47, 74, 74, .24);
    border-radius: 3px;
    /*background: rgba(47, 74, 74, .12);*/
    background: rgb(240 247 247);
    color: var(--remaining-accent);
    font-size: 12px;
    line-height: 1.5;
}

.remaining-request-hall {
    font-weight: 700;
    overflow-wrap: anywhere;
}

.remaining-request-date > span {
    white-space: nowrap;
}

.remaining-form > label {
    display: block;
    margin: 16px 0 8px;
    font-size: 14px;
    font-weight: 700;
}

.remaining-form span {
    font-size: 11px;
    color: var(--remaining-accent);
}

.remaining-form > input, .remaining-visit-field input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 0;
    background: #fff;
    font-size: 16px;
}

.remaining-form fieldset {
    border: 0;
    padding: 0;
    margin: 16px 0;
}

.remaining-form legend {
    border: 0;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.remaining-form fieldset label {
    margin-right: 24px;
    font-size: 14px;
    font-weight: 400;
}

.remaining-form input[type=checkbox], .remaining-form input[type=radio] {
    accent-color: var(--remaining-accent);
    width: 17px;
    height: 17px;
    vertical-align: middle;
    margin: 0 6px 0 0;
}

.remaining-agreements {
    background: #f7f7f7;
    padding: 18px;
    margin: 24px 0 18px;
    font-size: 12px;
    line-height: 1.6;
}

.remaining-agreements label {
    display: block;
    margin-bottom: 12px;
    font-weight: 400;
}

.remaining-agree-all {
    padding-bottom: 14px;
    border-bottom: 1px solid #ddd;
}

.remaining-agreements a {
    color: #64777b;
    text-decoration: underline;
}

.remaining-form-message {
    font-size: 13px;
    line-height: 1.6;
    color: #9b3945;
}

.remaining-form-message.is-success {
    color: var(--remaining-accent);
}

.remaining-security {
    margin-top: auto;
    background: #f5f5f5;
    border-radius: 30px;
    padding: 12px;
    color: var(--remaining-accent);
    text-align: center;
    font-size: 12px;
}

.remaining-send {
    margin-top: 20px;
}

.remaining-send:disabled {
    opacity: .6;
    cursor: wait;
}

#s16 button:focus-visible, #remaining-request :focus-visible, #remaining-banner:focus-visible {
    outline: 2px solid #c9a05e;
    outline-offset: 3px;
}

@media screen and (max-width: 450px) {
    .remaining-banner-track > span {
        font-size: 13px;
        padding: 0 12px;
    }

    #remaining-banner {
        padding: 8px 0;
    }

    #app #sections #s16 .content {
        padding: 60px 16px;
    }

    .remaining-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        padding: 24px 18px;
        margin-top: 32px;
    }

    .remaining-action > .remaining-notes {
        order: -1;
        margin-bottom: 22px;
    }

    .remaining-hall-name, #remaining-request h2 {
        font-size: 18px;
    }

    .remaining-total strong {
        font-size: 22px;
    }

    .remaining-send {
        font-size: 15px;
    }

    .remaining-date-button {
        font-size: 10px;
    }

    .remaining-selected-date {
        font-size: 10px;
    }

    .remaining-remove-date {
        width: 16px;
        height: 16px;
    }

    .remaining-remove-date span {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .remaining-banner-track {
        animation: none;
    }
}

.remaining-visit-field {
    position: relative;
}

.remaining-visit-field input {
    cursor: pointer;
    padding-right: 38px;
}

.remaining-visit-field > i {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* 일정별 견적만 좌우로 전환하며 하단 일정 선택과 문의 폼은 고정합니다. */
.remaining-price-carousel {
    position: relative;
    flex-shrink: 0;
    min-width: 0;
}

.remaining-price-carousel > .remaining-price-controls {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
}

.remaining-price-swiper {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    touch-action: pan-y;
}

.remaining-price-swiper .swiper-wrapper {
    align-items: stretch;
}

.remaining-price-swiper .remaining-price-slide {
    height: auto;
}

.remaining-price-slide .remaining-price-head {
    min-height: 32px;
    padding-right: 94px;
}
