.ev-pickable {
    position: relative;
    cursor: pointer;
}

.tp-item.ev-pickable .tp-inner {
    padding-right: 8px;
}

.ev-pick {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: #e9ecef;
    color: #868e96;
    font-size: 0;
    line-height: 0;
    cursor: pointer;
}

.ev-pick::before,
.ev-pick::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    background: currentColor;
    transform: translate(-50%, -50%);
}

.ev-pick::before {
    width: 12px;
    height: 2px;
}

.ev-pick::after {
    width: 2px;
    height: 12px;
}

.ev-pickable.is-on .ev-pick,
.ev-pickable.is-on > .ev-pick {
    background: var(--color-primary);
    color: #fff;
}

.tp-tier-row.ev-pickable {
    gap: 12px;
}

.ev-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 12000;
    background: #fff;
    border-top: 1px solid #dee2e6;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.06);
}

.ev-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 72px;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
}

.ev-bar-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #212529;
    line-height: 1.4;
    white-space: nowrap;
}

.ev-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ev-bar-sum {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ev-bar-total {
    font-size: 16px;
    color: #212529;
}

.ev-bar-total strong {
    margin-left: 8px;
    font-size: 22px;
    color: var(--color-primary);
}

.ev-bar-reset {
    width: 36px;
    height: 36px;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    background: #fff;
    color: #868e96;
    cursor: pointer;
}

.ev-bar-book {
    min-width: 160px;
    height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 8px;
    background: var(--color-primary);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

body.tp-page footer {
    padding-bottom: calc(50px + 72px);
}

.ev-modal[hidden] {
    display: none;
}

.ev-modal {
    position: fixed;
    inset: 0;
    z-index: 20050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.ev-modal-dim {
    position: absolute;
    inset: 0;
    background: rgba(20, 16, 14, 0.55);
}

.ev-modal-box {
    position: relative;
    z-index: 1;
    width: min(980px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    background: #fff;
    border-radius: 20px;
    padding: 28px 32px 32px;
    box-sizing: border-box;
}

.ev-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.ev-modal-head h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.ev-modal-close {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 0;
    line-height: 0;
    cursor: pointer;
    color: #111;
}

.ev-modal-close::before,
.ev-modal-close::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 1.5px;
    background: currentColor;
}

.ev-modal-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.ev-modal-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.ev-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.ev-modal-col {
    background: #f4f5f7;
    border-radius: 16px;
    padding: 18px 18px 0;
    display: flex;
    flex-direction: column;
    min-height: 460px;
}

.ev-modal-col h3 {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
}

.ev-selected-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    overflow: auto;
    padding-bottom: 12px;
}

.ev-selected-empty {
    color: #999;
    font-size: 14px;
    padding: 20px 0;
}

.ev-selected-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px 16px 14px;
}

.ev-selected-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.ev-selected-name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.ev-selected-del {
    position: relative;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: #e9ecef;
    color: #868e96;
    font-size: 0;
    line-height: 0;
    cursor: pointer;
}

.ev-selected-del::before,
.ev-selected-del::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 2px;
    background: currentColor;
}

.ev-selected-del::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.ev-selected-del::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.ev-selected-prices {
    text-align: left;
}

.ev-selected-old {
    display: block;
    color: #c4c4c4;
    font-size: 13px;
    text-decoration: line-through;
}

.ev-selected-price {
    display: block;
    font-size: 20px;
    font-weight: 700;
}

.ev-selected-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 -18px;
    padding: 16px 18px;
    background: #eceef1;
    border-radius: 0 0 16px 16px;
    font-weight: 700;
}

.ev-selected-total strong {
    color: var(--color-primary);
    font-size: 20px;
}

.ev-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 18px;
}

.ev-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ev-form input:not([type="checkbox"]),
.ev-form textarea {
    width: 100%;
    border: 0;
    border-radius: 10px;
    background: #fff;
    padding: 14px 14px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}

.ev-form textarea {
    min-height: 88px;
    resize: vertical;
}

.ev-agree {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #555;
    white-space: nowrap;
}

.ev-agree input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    accent-color: var(--color-primary);
}

.ev-agree span {
    display: inline;
    white-space: nowrap;
}

.ev-privacy-view {
    display: inline;
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
    color: #111;
    font: inherit;
    cursor: pointer;
    vertical-align: baseline;
}

.sgModal[hidden] {
    display: none;
}

.sgModal {
    position: fixed;
    inset: 0;
    z-index: 21000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.sgModalDim {
    position: absolute;
    inset: 0;
    background: rgba(20, 16, 14, 0.45);
}

.sgModalBox {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

.sgModalTitle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px 14px;
    border-bottom: 1px solid #eee;
}

.sgModalTitle h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.sgModal-close {
    width: 32px;
    height: 32px;
    border: 0;
    background: none;
    font-size: 22px;
    color: #888;
    cursor: pointer;
}

.sgModalContents {
    padding: 20px 22px 28px;
    font-size: 14px;
    line-height: 1.7;
    color: #333;
}

.sgModalContents h2 {
    margin: 18px 0 8px;
    font-size: 16px;
    font-weight: 700;
}

.sgModalContents h2:first-child {
    margin-top: 0;
}

.sgModalContents p,
.sgModalContents ul {
    margin: 0 0 8px;
}

.sgModalContents ul {
    padding-left: 18px;
}

.ev-form-submit {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 10px;
    background: var(--color-primary);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.ev-form-msg {
    font-size: 13px;
    color: #c0392b;
    min-height: 18px;
}

@media (max-width: 860px) {
    body.tp-page footer {
        padding-bottom: calc(50px + 120px);
    }

    .ev-bar-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
        gap: 10px;
    }

    .ev-bar-note {
        font-size: 12px;
        white-space: normal;
    }

    .ev-bar-right {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    .ev-bar-sum {
        gap: 6px;
        flex-shrink: 0;
    }

    .ev-bar-total {
        font-size: 14px;
    }

    .ev-bar-total strong {
        margin-left: 4px;
        font-size: 18px;
    }

    .ev-bar-book {
        min-width: 0;
        flex: 0 0 auto;
    }

    .ev-modal-grid,
    .ev-form-row {
        grid-template-columns: 1fr;
    }

    .ev-modal-box {
        padding: 20px 16px 20px;
    }

    .ev-modal-head h2 {
        font-size: 18px;
    }

    .ev-modal-col {
        min-height: 0;
    }
}
