/* Убрали принудительный цвет фона, чтобы работал фон из темы */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.container {
    width: 100%;
    padding: 0;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

.payment-wrapper {
    max-width: 850px;
    width: 100%;
    padding: 40px 45px;
    background: var(--card-bg, rgba(18, 18, 26, 0.75));
    border: 1px solid var(--border-color, rgba(102, 126, 234, 0.25));
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(102, 126, 234, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-sizing: border-box;
}

.payment-header {
    text-align: center;
    margin-bottom: 35px;
}

.payment-header h1 {
    color: var(--accent-it, #667eea);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.payment-header p {
    color: var(--text-muted, #888);
    font-size: 14px;
}

.receipt {
    background: var(--nested-bg, rgba(102, 126, 234, 0.05));
    border: 1px solid var(--border-subtle, rgba(102, 126, 234, 0.15));
    border-radius: 14px;
    padding: 30px;
    margin-bottom: 35px;
}

.receipt-item {
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.receipt-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.receipt-label {
    color: var(--accent-it, #667eea);
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.9;
}

.receipt-value {
    color: var(--text-primary, #fff);
    font-size: 16px;
    line-height: 1.6;
    word-wrap: break-word;
}

.receipt-price {
    font-size: 16px;
    color: #ff6060;
    font-weight: 700;
}

.payment-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 220px;
    width: 100%;
    margin: 0 auto;
    padding: 15px 25px;
    background: linear-gradient(135deg, var(--accent-it, #667eea) 0%, var(--accent-car, #764ba2) 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.25);
    box-sizing: border-box;
    outline: none; /* Убирает дефолтную рамку фокуса в некоторых браузерах */
    -webkit-tap-highlight-color: transparent; /* Убирает синий блик при тапе на смартфонах */
    font-family: inherit; /* Гарантирует, что шрифт кнопки будет как у сайта, а не системный */
}

.payment-button:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-it, 0 10px 30px rgba(102, 126, 234, 0.4));
}

.payment-button:active {
    transform: scale(0.98);
}

.cancel-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted, #888);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.cancel-link:hover {
    color: var(--accent-it, #667eea);
}

.security-info {
    margin-top: 30px;
    padding: 12px;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 10px;
    font-size: 13px;
    color: #10b981;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}
