/**
 * pcgeoredirect - Styles for GeoIP banner and checkout notification modal
 * @author perpetualCode
 */

/* ============================================
   BANNER
   ============================================ */
.pcgeoredirect-banner {
    width: 100%;
    z-index: 9999;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
    animation: pcgeo-slideDown 0.4s ease-out;
}

@keyframes pcgeo-slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pcgeoredirect-banner__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    /*max-width: 1200px;*/
    margin: 0 auto;
    /*padding: 12px 20px;*/
    padding: .5em 1em;
    position: relative;
}

.pcgeoredirect-banner__icon {
    font-size: 22px;
    flex-shrink: 0;
}

.pcgeoredirect-banner__message {
    margin: 0;
    flex: 1;
    font-size: 14px;
    color:#000;
}

.pcgeoredirect-banner__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pcgeoredirect-banner__btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}

.pcgeoredirect-banner__btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.pcgeoredirect-banner__btn--primary {
    background-color: #ffffff;
    color: #1a5276;
}

.pcgeoredirect-banner__btn--dismiss {
    background-color: transparent;
    color: inherit;
    text-decoration: underline;
    padding: 8px 10px;
    font-weight: 400;
    margin-right: 8px;
}

.pcgeoredirect-banner__close {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    font-size: 22px;
    cursor: pointer;
    opacity: 0.7;
    padding: 4px 8px;
    line-height: 1;
}

.pcgeoredirect-banner__close:hover {
    opacity: 1;
}

/* ============================================
   CHECKOUT MODAL
   ============================================ */
.pcgeoredirect-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pcgeo-fadeIn 0.25s ease-out;
}

@keyframes pcgeo-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.pcgeoredirect-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
}

.pcgeoredirect-modal__content {
    position: relative;
    background: #ffffff;
    border-radius: 8px;
    padding: 32px 28px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    animation: pcgeo-scaleIn 0.3s ease-out;
}

@keyframes pcgeo-scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.pcgeoredirect-modal__close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}

.pcgeoredirect-modal__close:hover {
    color: #333;
}

.pcgeoredirect-modal__icon {
    display: block;
    font-size: 40px;
    margin-bottom: 16px;
}

.pcgeoredirect-modal__message {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    margin: 0 0 24px;
}

.pcgeoredirect-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.pcgeoredirect-modal__actions .pcgeoredirect-banner__btn--primary {
    background-color: #1a5276;
    color: #ffffff;
    width: 100%;
    text-align: center;
    padding: 12px 24px;
    font-size: 14px;
}

.pcgeoredirect-modal__actions .pcgeoredirect-banner__btn--dismiss {
    color: #666;
    font-size: 13px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .pcgeoredirect-banner__inner {
        flex-wrap: wrap;
        padding: 10px 30px 0 15px;
        gap: 8px;
    }

    .pcgeoredirect-banner__message {
        font-size: 13px;
        width: 100%;
        order: 1;
    }

    .pcgeoredirect-banner__icon {
        order: 0;
    }

    .pcgeoredirect-banner__actions {
        order: 2;
        width: 100%;
        justify-content: center;
    }

    .pcgeoredirect-modal__content {
        padding: 24px 20px;
        margin: 0 16px;
    }
    .pcgeoredirect-banner__btn,.pcgeoredirect-banner__close,#_desktop_language_selector .btn-unstyle {
        min-width: unset!important;
        min-height: unset!important;
        margin: unset!important;
    }
    .pcgeoredirect-banner__close {
        right: 0;
        top: 0;
        background: white;
        transform: unset;
        line-height: 22px;
    }
}

#pcgeoredirect-checkout-modal .titlemodal{
    margin-bottom: 16px;
}
#pcgeoredirect-checkout-modal .titlemodal span{
    color: #000;
    font-weight: 600;
}
#pcgeoredirect-checkout-modal .titlemodal span.pcgeoredirect-modal__icon{
    display: inline;
    font-size: 20px;
}