/* Amrod Commerce Frontend Modal Styles */

.pg-amrod-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

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

.pg-amrod-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 30px;
    border: none;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pg-amrod-modal-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 24px;
    color: #333;
    text-align: center;
}

.pg-amrod-modal-content p {
    margin-bottom: 25px;
    font-size: 16px;
    color: #666;
    text-align: center;
    line-height: 1.5;
}

.pg-amrod-modal-content button {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

#pg-amrod-branded-btn {
    background-color: #0073aa;
    color: #fff;
}

#pg-amrod-branded-btn:hover {
    background-color: #005177;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.3);
}

#pg-amrod-unbranded-btn {
    background-color: #46b450;
    color: #fff;
}

#pg-amrod-unbranded-btn:hover {
    background-color: #3a9342;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(70, 180, 80, 0.3);
}

#pg-amrod-branded-btn:disabled,
#pg-amrod-unbranded-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.pg-amrod-modal-content .close {
    color: #aaa;
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.pg-amrod-modal-content .close:hover,
.pg-amrod-modal-content .close:focus {
    color: #000;
}

/* Custom trigger button styling */
.pg-amrod-trigger-modal {
    width: 100%;
    margin-top: 10px;
}

/* Responsive design */
@media screen and (max-width: 600px) {
    .pg-amrod-modal-content {
        margin: 20% auto;
        width: 95%;
        padding: 20px;
    }
    
    .pg-amrod-modal-content h3 {
        font-size: 20px;
    }
    
    .pg-amrod-modal-content p {
        font-size: 14px;
    }
    
    .pg-amrod-modal-content button {
        padding: 12px 16px;
        font-size: 14px;
    }
}
