/**
 * GarantiBBVA Payment Gateway Styles
 */

/* Payment Form Styles */
.gbbva-payment-form {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    margin-bottom: 20px;
}

.gbbva-payment-description {
    margin-bottom: 15px;
}

.gbbva-payment-info {
    margin-bottom: 15px;
    font-size: 14px;
}

.gbbva-supported-cards {
    margin-top: 15px;
}

.gbbva-supported-cards .card-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.gbbva-supported-cards .card-icon {
    display: inline-block;
    height: 30px;
}

.gbbva-supported-cards .card-icon img {
    height: 100%;
    width: auto;
}

/* iFrame Container Styles */
.gbbva-iframe-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gbbva-iframe-wrapper {
    position: relative;
    width: 90%;
    max-width: 900px;
    height: 80vh;
    max-height: 700px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.gbbva-iframe-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.gbbva-header-spacer {
    flex-grow: 1;
}

.gbbva-close-iframe {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.gbbva-close-iframe:hover {
    color: #dc3545;
}

.gbbva-iframe-content {
    flex: 1;
    position: relative;
}

.gbbva-payment-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.gbbva-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white;
    z-index: 1;
}

.gbbva-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: gbbva-spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes gbbva-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success and Error Messages */
.gbbva-success-message,
.gbbva-error-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    z-index: 2;
}

.gbbva-success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.gbbva-error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .gbbva-iframe-wrapper {
        width: 95%;
        height: 90vh;
        max-height: none;
    }
} 