/* POWER PAYMENT MODAL CSS */
.pm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none; /* hidden by default, JS toggles flex */
    align-items: flex-start;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    padding: 40px 20px;
}

.pm-overlay.show {
    opacity: 1;
}

.pm-sheet {
    background: #313131; /* the color requested */
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    padding: 32px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    margin: auto;
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
}

.pm-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #a0aec0;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.pm-close:hover {
    color: #fff;
}

.pm-logo {
    height: 72px;
    margin: 0 auto 24px auto;
    display: block;
}

.pm-title {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4px;
}

.pm-subtitle {
    font-size: 14px;
    color: #a0aec0;
    text-align: center;
    margin-bottom: 24px;
}

.pm-amount-pill {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2a2a2a;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.pm-amount-label {
    font-size: 14px;
    color: #a0aec0;
}

.pm-amount-value {
    font-size: 20px;
    font-weight: 700;
    color: #72e549; /* Power Green */
}

.pm-divider {
    height: 1px;
    background: #444;
    margin-bottom: 24px;
}

.pm-section-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #fff;
}

#payment-element {
    margin-bottom: 24px;
    min-height: 200px; /* To prevent jumping before stripe loads */
}

.pm-error {
    color: #df1b41;
    font-size: 14px;
    margin-bottom: 16px;
    text-align: center;
    min-height: 16px;
}

.pm-pay-btn {
    background: #72E549;
    color: #000;
    width: 100%;
    padding: 16px;
    border-radius: 30px;
    border: 2px solid transparent;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    margin-bottom: 16px;
}

.pm-pay-btn:hover {
    background: #62d43a;
    border-color: #62d43a;
}

.pm-pay-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.pm-cancel-link {
    display: block;
    text-align: center;
    color: #a0aec0;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    margin-bottom: 24px;
}

.pm-cancel-link:hover {
    color: #fff;
}

.pm-security {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 12px;
    color: #a0aec0;
}

.pm-sec-item {
    display: flex;
    align-items: center;
    gap: 4px;
}
