
.trx_popup {
	-webkit-animation-name: fadeInRight_popup;
	animation-name: fadeInRight_popup;
}
.trx_popup.close {
	-webkit-animation-name: fadeOutLeft_popup;
	animation-name: fadeOutLeft_popup;
}
/* Custom styles
*******************************/
/* ========== OPEN BUTTON ========== */
.open-popup-btn {
    display: inline-block;
    padding: 10px 22px;
    background: #111;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: 0.2s ease;
}

.open-popup-btn:hover {
    background: #009246; /* Italy green */
}

/* ========== POPUP OVERLAY (hidden by default) ========== */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

/* Show when targeted by URL (#italy-popup) */
.popup-overlay:target {
    opacity: 1;
    visibility: visible;
}

/* ========== POPUP BOX ========== */
.popup-box {
    position: relative;
    width: 90%;
    max-width: 480px;
    background: #ffffff;
    border-radius: 10px;
    padding: 28px 28px 24px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.25);
    text-align: center;
    overflow: hidden;
}

/* Italy flag bar on top */
.popup-flag-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 6px;
    width: 100%;
    background: linear-gradient(to right, #009246, #ffffff, #ce2b37);
}

/* Close button (X) */
.popup-close {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 26px;
    text-decoration: none;
    color: #999;
    line-height: 1;
    transition: 0.2s ease;
}

.popup-close:hover {
    color: #333;
}

/* Title & text */
.popup-title {
    margin-top: 18px;
    font-size: 22px;
    font-weight: 800;
    color: #222;
}

.popup-text {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* ========== FORM ========== */
.popup-form {
    margin-top: 20px;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
}

.popup-form input[type="email"] {
    flex: 1;
    padding: 10px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 14px;
    outline: none;
}

.popup-form input[type="email"]:focus {
    border-color: #009246;
}

.popup-form button {
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    background: #009246;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.2s ease;
}

.popup-form button:hover {
    background: #ce2b37; /* Italy red hover */
}

/* Note text */
.popup-note {
    margin-top: 10px;
    font-size: 12px;
    color: #777;
}

/* Mobile */
@media (max-width: 480px) {
    .popup-form {
        flex-direction: column;
    }
}
