.rc-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.rc-modal.active {
    display: block;
}

.rc-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    cursor: pointer;
}

.rc-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.rc-modal__content {
    position: absolute;
    padding: 32px;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    background: #fff;
    border-radius: 24px;
    width: fit-content;
    max-width: 100vw;
    min-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rc-modal__close {
    cursor: pointer;
}

.rc-modal__title {
    font-size: 24px;
    font-weight: 700;
    color: black;
}

.rc-modal__description {
    padding: 0;
    padding-inline-end: 12px;
    overflow-y: auto;
    max-height: calc(100dvh - 210px);
    font-size: 15px;
    line-height: 1.4;
    opacity: 0.8;
    color: black;
}

.rc-modal__description .lists-container {
    display: flex;
    gap: 2rem;
}

.rc-modal__description .custom-list {
    flex: 1;
}

.rc-modal__description .custom-list p{
    color: black;
}

.rc-modal__description .custom-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rc-modal__description .custom-list li {
    padding-block: 5px;
    color: black;
    display: flex;
    align-items: flex-start;
    gap: 0.5em;
}

.rc-modal__description .custom-list-left li::before {
    content: "✔";
    color: #2d7758;
}

.rc-modal__description .custom-list-right li::before {
    content: "✖";
    color: red;
}

/* Медиазапрос для мобильных устройств */
@media (max-width: 980px) {
    .rc-modal {
        width: 100%;
        max-height: calc(100dvh - 58px);
    }

    .rc-modal__description .lists-container {
        flex-direction: column;
    }

    .rc-modal__content {
        width: 100%;
    }

    .rc-modal__title {
        font-size: 20px !important;
    }
}

/* ОТСТУПЫ ССЫЛОК от шапки*/
[data-tab="del_and_pay"] {
  scroll-margin-top: 130px;
}

@media (max-width: 900px) {
  [data-tab="del_and_pay"] {
    scroll-margin-top: 10px;
  }
}

[data-tab="description"] {
  scroll-margin-top: 130px;
}

/* ==========================================
   МОДАЛКА ЗАГРУЗКИ (лого-спиннер + текст)
   ========================================== */
.rc-modal__content--loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 24px;
    min-width: 320px;
    max-width: 420px;
    text-align: center;
}

.rc-spinner-logo {
    width: 56px;
    height: 67px;
    flex-shrink: 0;
}

.rc-spinner-logo__part {
    opacity: 0;
    animation: rc-logo-blink 1s ease-in-out infinite;
}
.rc-spinner-logo__part:nth-child(1) { animation-delay: 0s; }
.rc-spinner-logo__part:nth-child(4) { animation-delay: 0.25s; }
.rc-spinner-logo__part:nth-child(3) { animation-delay: 0.5s; }
.rc-spinner-logo__part:nth-child(2) { animation-delay: 0.75s; }

@keyframes rc-logo-blink {
    0%, 100% { opacity: 0; }
    50%      { opacity: 1; }
}

.rc-spinner__text {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: bold;
}

@media (max-width: 500px) {
    .rc-modal__content--loading {
        min-width: auto;
        width: calc(100vw - 40px);
    }
}
