@import 'variables.css';

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #000;
    color: var(--main-color);
    font-family: var(--font-family);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1 {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 32px;
    text-align: center;
    color: #fff;
    margin-top: 15vh;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
  
    width: 90%;         /* займёт 90% ширины экрана */
    max-width: 700px;   /* ограничим на широких экранах */
    line-height: 1.2;   /* красивый межстрочный интервал */
    word-break: normal; /* предотвращает тупой перенос */
}
  
  
.wrap {
    flex: 1;
    display: flex;
    justify-content: center; /* по горизонтали */
    align-items: center;     /* по вертикали */
    z-index: 1;
}

form#payment-form {
    display: flex;
    flex-direction: column;
    align-items: center; /* <-- Центрует кнопки по горизонтали */
    gap: 20px; /* Расстояние между кнопками */
    width: 90%;
}  

.pay-button {
    width: 100%;
    height: 99px;
    border: 1.5px solid rgba(201, 189, 189, 0.21);
    border-radius: 15px;
    background: #141414;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
  
    cursor: pointer;
    transition: all 0.3s ease;
  
    display: flex;
    align-items: center;
    justify-content: space-between;
  
    padding: 10px 4%;  /* отступы слева и справа */
    position: relative;
    overflow: hidden;
}

.pay-button:hover,
.pay-button:active,
.pay-button:focus-visible {
    border: 2px solid var(--main-color);
    background: #141414; /* чтобы не менялся */
    box-shadow: none;    /* убираем свечение */
    outline: none;       /* убираем контур при фокусе */
}  

.button-text {
    flex-grow: 1;
    text-align: left;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 20px;
    color: #fff;
}

.glow-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--main-color);
    box-shadow: 0 0 10px rgba(33, 212, 198, 0.8);
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    display: flex;
}
  

.spinner {
    display: none;
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
  
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--main-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner.show {
    display: block;
}

@keyframes spin {
    to { transform: translateX(-50%) rotate(360deg); }
}
