/*
 * Rent & Event - Custom Popup Styles (Semantic v1.1)
 * --------------------------------------------------
 */

/* Overlay for the background */

#re-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 99998;
    display: none;
}
/* Main popup container */

.re-popup {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    z-index: 99999;
    width: 90%;
    max-width: 28.75rem;
    /* 480px */
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0.3s;
}
.re-popup.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    transition-delay: 0s;
}
/* Header section */

.re-popup__header {
    background: #ff6961;
    border-radius: 0.5rem 0.5rem 0 0;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    position: relative;
    overflow: hidden;
}
.re-popup__header-title {
    color: #ffffff;
    text-align: center;
    font-family: "Manrope", sans-serif;
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 700;
    position: relative;
    z-index: 1;
    margin: 0;
}
.re-popup__close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 24px;
    height: 24px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 2;
}
/* Content section */

.re-popup__content {
    background: #f8f6f2;
    border-radius: 0 0 0.5rem 0.5rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-self: stretch;
}
.re-popup__content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-self: stretch;
}
.re-popup__title {
    color: #000000;
    text-align: left;
    font-family: "Manrope", sans-serif;
    font-size: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
    align-self: stretch;
    margin: 0;
}
.re-popup__body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-self: stretch;
}
.re-popup__subtitle {
    color: #000000;
    text-align: left;
    font-family: "Manrope", sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 400;
    align-self: stretch;
    margin: 0;
}
.re-popup__cta-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-self: stretch;
}
.re-popup__code-wrapper {
    background: #ffffff;
    border-radius: 3.75rem;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    align-self: stretch;
}
.re-popup__code-text {
    color: #ff6961;
    text-align: center;
    font-family: "Manrope", sans-serif;
    font-size: 1.375rem;
    line-height: 1.5;
    font-weight: 600;
}
.re-popup__copy-btn {
    width: 20px;
    height: 23px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}
.re-popup__copy-btn svg {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.copy-feedback {
    display: none;
    color: #00A72F;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    width: 100%;
}
.re-popup__fine-print {
    color: #000000;
    text-align: left;
    font-family: "Manrope", sans-serif;
    font-size: 0.75rem;
    line-height: 1.5;
    font-weight: 400;
    align-self: stretch;
    margin: 0;
}
/* Responsive Adjustments */

@media (max-width: 480px) {
    .re-popup {
        width: calc(100% - 2rem);
    }
    .re-popup__header-title {
        font-size: 2rem;
    }
    .re-popup__title {
        font-size: 1.25rem;
    }
    .re-popup__content {
        padding: 1rem;
    }
    .re-popup__header {
        padding: 1.5rem;
    }
}