/* Meest Pay Gateway Styles */

.meest-pay-methods {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #0073aa;
}

.meest-pay-methods p {
    margin: 0 0 10px 0;
    font-weight: 600;
    color: #333;
}

.meest-pay-methods ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.meest-pay-methods li {
    padding: 5px 0;
    color: #666;
    position: relative;
    padding-left: 20px;
}

.meest-pay-methods li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

#meest-pay-embedded-form {
    margin: 15px 0;
}

#meest-pay-form-container {
    min-height: 300px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    background: #fff;
}

#meest-pay-form-container .error {
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

/* Payment method icons */
.meest-pay-method-icon {
    display: inline-block;
    width: 40px;
    height: 25px;
    margin-right: 10px;
    vertical-align: middle;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.meest-pay-method-icon.cards {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 25"><rect width="40" height="25" fill="%23f8f9fa" stroke="%23ddd" stroke-width="1"/><text x="20" y="15" text-anchor="middle" font-size="10" fill="%23666">💳</text></svg>');
}

.meest-pay-method-icon.blik {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 25"><rect width="40" height="25" fill="%23f8f9fa" stroke="%23ddd" stroke-width="1"/><text x="20" y="15" text-anchor="middle" font-size="10" fill="%23666">📱</text></svg>');
}

.meest-pay-method-icon.pbl {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 25"><rect width="40" height="25" fill="%23f8f9fa" stroke="%23ddd" stroke-width="1"/><text x="20" y="15" text-anchor="middle" font-size="10" fill="%23666">🏦</text></svg>');
}

/* Loading state */
.meest-pay-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.meest-pay-loading:before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: meest-pay-spin 1s linear infinite;
    margin-right: 10px;
}

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

/* Responsive design */
@media (max-width: 768px) {
    .meest-pay-methods {
        margin: 10px 0;
        padding: 10px;
    }
    
    #meest-pay-form-container {
        padding: 15px;
        min-height: 250px;
    }
    
    .meest-pay-method-icon {
        width: 30px;
        height: 20px;
        margin-right: 8px;
    }
}

/* WooCommerce integration */
.woocommerce-checkout .meest-pay-methods {
    margin: 0 0 20px 0;
}

.woocommerce-checkout #meest-pay-embedded-form {
    margin: 0 0 20px 0;
}

/* Admin styles */
.wp-admin .meest-pay-methods {
    background: #fff;
    border: 1px solid #ccd0d4;
}

.wp-admin .meest-pay-methods p {
    color: #1d2327;
}

.wp-admin .meest-pay-methods li {
    color: #50575e;
} 