.ep-acceptance {
    position: fixed;
    inset: 0;
    z-index: 100200;
    color: #f4f1ed;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", sans-serif;
}

.ep-acceptance[hidden] {
    display: none;
}

.ep-acceptance__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(10, 8, 7, 0.58);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ep-acceptance__sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: min(100%, 680px);
    max-height: min(88dvh, 880px);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-bottom: 0;
    border-radius: 28px 28px 0 0;
    background:
        radial-gradient(circle at 82% 2%, rgba(119, 154, 198, 0.13), transparent 34%),
        linear-gradient(180deg, rgba(37, 31, 28, 0.985), rgba(20, 18, 17, 0.995));
    box-shadow: 0 -18px 60px rgba(0, 0, 0, 0.38);
    transform: translateY(22px);
    opacity: 0;
    transition: transform 180ms ease, opacity 180ms ease;
}

.ep-acceptance.is-open .ep-acceptance__sheet {
    transform: translateY(0);
    opacity: 1;
}

.ep-acceptance__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 20px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ep-acceptance__eyebrow {
    margin-bottom: 4px;
    color: rgba(184, 205, 234, 0.66);
    font-size: 10px;
    letter-spacing: 0.24em;
}

.ep-acceptance__header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 650;
}

.ep-acceptance__close {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.055);
    color: rgba(255, 255, 255, 0.76);
    font-size: 25px;
    line-height: 1;
}

.ep-acceptance__body {
    min-height: 0;
    padding: 16px 16px calc(18px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
}

.ep-acceptance__context {
    margin-bottom: 12px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.55);
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 11px;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ep-acceptance__notice,
.ep-acceptance__card,
.ep-acceptance__pending,
.ep-acceptance__receipt {
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
}

.ep-acceptance__notice {
    margin-bottom: 12px;
    padding: 13px 14px;
    color: rgba(225, 233, 244, 0.77);
    font-size: 12px;
    line-height: 1.65;
}

.ep-acceptance__notice strong {
    color: #dce8f8;
}

.ep-acceptance__card {
    margin-bottom: 12px;
    padding: 15px;
}

.ep-acceptance__card-title {
    margin-bottom: 5px;
    color: #f8f5f2;
    font-size: 15px;
    font-weight: 650;
}

.ep-acceptance__card p {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    line-height: 1.65;
}

.ep-acceptance__label {
    display: block;
    margin: 11px 0 7px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.ep-acceptance__select,
.ep-acceptance__custom input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 13px;
    outline: 0;
    background: rgba(0, 0, 0, 0.22);
    color: #f4f1ed;
    font: inherit;
}

.ep-acceptance__select {
    min-height: 44px;
    padding: 0 12px;
    font-size: 13px;
}

.ep-acceptance__primary {
    width: 100%;
    min-height: 44px;
    margin-top: 10px;
    border: 1px solid rgba(157, 192, 237, 0.26);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(103, 142, 192, 0.34), rgba(102, 121, 160, 0.2));
    color: #e8f1ff;
    font-size: 13px;
    font-weight: 600;
}

.ep-acceptance__primary:disabled {
    opacity: 0.36;
}

.ep-acceptance__check {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 13px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
}

.ep-acceptance__check input {
    width: 17px;
    height: 17px;
    accent-color: #91b6e4;
}

.ep-acceptance__custom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.16);
}

.ep-acceptance__custom[hidden] {
    display: none;
}

.ep-acceptance__custom label {
    color: rgba(255, 255, 255, 0.62);
    font-size: 11px;
}

.ep-acceptance__custom input {
    height: 39px;
    margin-top: 6px;
    padding: 0 10px;
}

.ep-acceptance__custom small {
    grid-column: 1 / -1;
}

.ep-acceptance__percent {
    position: relative;
    display: block;
}

.ep-acceptance__percent input {
    padding-right: 30px;
}

.ep-acceptance__percent i {
    position: absolute;
    right: 11px;
    bottom: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-style: normal;
    font-size: 12px;
}

.ep-acceptance__hint,
.ep-acceptance__custom small {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.43);
    font-size: 10px;
    line-height: 1.55;
}

.ep-acceptance__pending {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px 13px;
    border-color: rgba(132, 180, 236, 0.24);
    background: rgba(84, 125, 177, 0.13);
}

.ep-acceptance__pending[hidden] {
    display: none;
}

.ep-acceptance__pending strong,
.ep-acceptance__pending span {
    display: block;
}

.ep-acceptance__pending strong {
    margin-bottom: 3px;
    color: #dbeaff;
    font-size: 12px;
}

.ep-acceptance__pending span {
    color: rgba(255, 255, 255, 0.58);
    font-size: 10px;
    line-height: 1.45;
}

.ep-acceptance__pending button {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: rgba(205, 222, 245, 0.72);
    font-size: 11px;
}

.ep-acceptance__status {
    min-height: 18px;
    margin: 2px 2px 10px;
    color: #b9d3f3;
    font-size: 11px;
    line-height: 1.5;
}

.ep-acceptance__status.is-error {
    color: #efb8b0;
}

.ep-acceptance__receipt {
    padding: 14px;
}

.ep-acceptance__receipt-title {
    margin-bottom: 10px;
    color: #f6f3ef;
    font-size: 14px;
    font-weight: 650;
}

.ep-acceptance__receipt-row {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 9px;
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.ep-acceptance__receipt-row > span {
    color: rgba(255, 255, 255, 0.38);
    font-size: 10px;
}

.ep-acceptance__receipt-row > strong {
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.ep-acceptance__receipt-row.is-ok > strong {
    color: #c8e4d2;
}

.ep-acceptance__receipt-empty,
.ep-acceptance__receipt-foot {
    color: rgba(255, 255, 255, 0.42);
    font-size: 10px;
    line-height: 1.6;
}

.ep-acceptance__receipt-foot {
    margin: 11px 0 0;
}

body.ep-acceptance-open {
    overflow: hidden;
}

.debug-fab-btn .ep-receipt-dot {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 8px;
    height: 8px;
    border: 2px solid rgba(26, 24, 23, 0.92);
    border-radius: 50%;
    background: #9ac3f4;
    box-shadow: 0 0 10px rgba(154, 195, 244, 0.85);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 160ms ease, transform 160ms ease;
}

.debug-fab.has-ep-receipt .ep-receipt-dot {
    opacity: 1;
    transform: scale(1);
}

@media (min-width: 700px) {
    .ep-acceptance__sheet {
        bottom: 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.11);
        border-radius: 28px;
    }
}
