/* Overlay background */
.modal-overlay {
    display: none;
    /* Hidden by default */
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    /* darker overlay */
    z-index: 1000;
}

/* Center modal box */
.center-modal {
    position: fixed;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -25%);
    background: #1c1c1e;
    /* dark background */
    color: #ffffff;
    /* white text */
    padding: 38px 20px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    /* width: 538px; */
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

/* Headings */
.center-modal h2 {
    color: #00d1ff;
    /* accent color */
    margin-bottom: 12px;
}

.center-modal h3 {
    font-weight: 400;
    color: #c0c0c0;
    /* lighter gray */
    margin-bottom: 24px;
}

/* Input */
.center-modal input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 24px;
    border-radius: 8px;
    border: 1px solid #333;
    background-color: #2a2a2e;
    color: #ffffff;
    font-size: 16px;
}

/* Button */
.submit-btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(90deg, #00d1ff, #6f5eff);
    color: #ffffff;
    transition: all 0.2s ease-in-out;
}

.submit-btn:hover {
    opacity: 0.9;
    transform: none;
    /* prevents shift */
}

/* Close button */
.x-btn {
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 16px;
    right: 16px;
}

.x-btn::before,
.x-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: #fff;
    transform-origin: center;
}

.x-btn::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.x-btn::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Utility class to show overlay */
.is-visible {
    display: block;
}

.d-none {
    display: none;
}

.inactive {
    pointer-events: none;
    user-select: none;
    cursor: not-allowed;
    background-color: #ccc;
    /* light gray background */
    color: #666;
    /* gray text */
    opacity: 0.6;
    /* faded look */
    border: 1px solid #999;
    /* subtle border */
    pointer-events: none;
}

.line-item {
    display: flex;
    justify-content: flex-start;
}

.continue-container {
    justify-content: center;
}

@media (max-width: 768px) {
    .center-modal {
        width: calc(100% - 50px);
    }
}

@media (min-width: 768px) {
    .center-modal {
        width: 538px;
    }
}