.xPopup > content.right {
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background: #FFF;
    text-align: left;
    box-sizing: border-box;
}

@media (min-width: 800px) {
    .xPopup > content.right {
        width: 420px;
    }
}

.reserve {
    margin: 0;
    --line: #E6E6E6;
    --control-h: 42px;
    --blue-ui: #2F6FED;
    box-sizing: border-box;
    padding: 20px 30px;
    color: var(--text);
}

.reserve *,
.reserve *::before,
.reserve *::after {
    box-sizing: border-box;
}

.reserve h2 {
    margin: 8px 0 10px;
    font-size: 18px;
    line-height: 1.15;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--blue-ui);
}

.reserve .stay .kind {
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    color: var(--muted);
}

.reserve .stay h2 {
    margin: 6px 0 8px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
}

.reserve .stay h2 sup {
    font-size: 0.68em;
    letter-spacing: 0.06em;
    color: #F5A623;
    margin-left: 0.3em;
}

.reserve .stay .place,
.reserve .stay .facts,
.reserve .stay .brief {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.35;
    color: var(--muted);
}

.reserve .stay .place a {
    color: var(--blue);
    text-decoration: none;
}

.reserve .stay .place a:hover {
    text-decoration: underline;
}

.reserve .stay .place img,
.reserve .stay .facts img,
.reserve .stay .brief img {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 1px;
}

.reserve .stay .brief div {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 6px;
}

.reserve .stay .brief strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.reserve .room {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 14px 0 0;
    padding: 0 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}

.reserve .room picture {
    display: block;
    width: 100%;
    border-radius: 0;
    overflow: hidden;
    background: #eee;
    aspect-ratio: 3 / 2;
}

.reserve .room > div {
    padding: 0 12px;
}

.reserve .room picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reserve .room .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin: 0;
    font-size: 13px;
    color: var(--text);
}

.reserve .room .meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.reserve .room .meta img {
    width: 16px;
    height: 16px;
}

.reserve .room p {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.35;
    color: var(--muted);
}

.reserve .sub {
    margin: 0 0 18px;
    font-size: 14px;
    color: #999EA3;
    line-height: 1.4;
}

.reserve .label {
    display: block;
    font-size: 14px;
    color: #999EA3;
    margin: 0 0 6px;
    font-weight: 400;
}

.reserve .grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.reserve .input,
.reserve .select,
.reserve .code-input {
    width: 100%;
    height: var(--control-h);
    border: 1px solid var(--input-border);
    border-radius: 7px;
    background: var(--input-bg);
    padding: 0 14px;
    font-size: 14px;
    color: #1A2D4D;
    outline: none;
}

.reserve .input:focus,
.reserve .select:focus,
.reserve .code-input:focus {
    border-color: var(--blue-ui);
    box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.15);
}

.reserve .row {
    margin-bottom: 12px;
}

.reserve .phone-row {
    display: grid;
    grid-template-columns: 116px 1fr;
    gap: 0;
}

.reserve .phone-row .select {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.reserve .phone-row .input {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.reserve hr {
    border: none;
    border-top: 1px solid var(--line);
    margin: 16px 0;
}

.reserve .section-title {
    margin: 0 0 12px;
}

.reserve .code-wrap {
    display: grid;
    grid-template-columns: 1fr 86px;
    gap: 8px;
}

.reserve .btn-ghost {
    height: var(--control-h);
    border: 0;
    background: var(--blue);
    color: var(--white);
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.reserve .btn-ghost:hover {
    background: var(--red);
}

.reserve .agree {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--text);
    cursor: pointer;
}

.reserve .agree input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    flex-shrink: 0;
}

.reserve .agree a {
    color: #2B5FCF;
    text-decoration: none;
}

.reserve .total {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    column-gap: 10px;
    margin: 4px 0 12px;
    text-align: right;
}

.reserve .total .label {
    font-size: 13px;
    font-weight: 400;
    color: var(--muted);
}

.reserve .total .sum {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
    line-height: 1.1;
    white-space: nowrap;
}

.reserve .btn-pay {
    margin-top: 0;
    width: 100%;
    border: none;
    border-radius: 7px;
    height: 48px;
    background: var(--blue);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.reserve .btn-pay:hover {
    background: var(--red);
}

.xPopup > content.right:has(.reserve.result) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.reserve.result {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.reserve.result svg {
    display: block;
    width: 60px;
    height: 60px;
}

.reserve.result h2 {
    margin: 16px 0 0;
    text-align: center;
}

.reserve.result svg.success path:first-child {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: ok-dash 5s linear forwards;
}

.reserve.result svg.success path:last-child {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: ok-dash 5s linear forwards;
    animation-delay: .5s;
}

@keyframes ok-dash {
    from {
        stroke-dashoffset: 1000;
    }
    to {
        stroke-dashoffset: 0;
    }
}

.reserve.result svg.failed path:first-child {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: failed-dash 5s linear forwards;
}

.reserve.result svg.failed path:nth-child(2) {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: failed-dash 5s linear forwards;
    animation-delay: .4s;
}

.reserve.result svg.failed path:last-child {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: failed-dash 5s linear forwards;
    animation-delay: .6s;
}

@keyframes failed-dash {
    from {
        stroke-dashoffset: 1000;
    }
    to {
        stroke-dashoffset: 0;
    }
}
