/* Frontend styles for payment fields */
.woo-yape-plin-transfer-methods {
    margin: 15px 0;
}

/* Compact header view for payment methods */
.ypt-method-header {
    background: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    padding: 12px 15px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    gap: 15px;
}

.ypt-method-header:hover {
    border-color: var(--wp--preset--color--primary, var(--wp--style--color--link, #7e4a7a));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ypt-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 1 auto;
    min-width: 0;
}

.ypt-method-icon {
    height: 40px;
    width: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.ypt-method-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ypt-voucher-indicator {
    display: none !important;
}

.ypt-view-details-btn {
    background: var(--wp--preset--color--primary, var(--wp--style--color--link, #7e4a7a));
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: auto;
}

.ypt-view-details-btn:hover {
    background: var(--wp--preset--color--secondary, #5e3a5a);
    filter: brightness(0.85);
}

/* Modal styles */
.ypt-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s;
}

.ypt-modal.ypt-modal-show {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ypt-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ypt-modal-header {
    background: var(--wp--preset--color--primary, var(--wp--style--color--link, #7e4a7a));
    color: #fff;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ypt-modal-header h3 {
    margin: 0;
    font-size: 20px;
    display: flex;
    align-items: center;
}

.ypt-modal-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    transition: transform 0.2s;
}

.ypt-modal-close:hover {
    transform: scale(1.2);
}

.ypt-modal-body {
    padding: 25px;
}

.ypt-payment-details {
    margin-bottom: 20px;
}

.ypt-payment-details p {
    margin: 12px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid var(--wp--preset--color--primary, var(--wp--style--color--link, #7e4a7a));
}

.ypt-payment-details strong {
    color: #555;
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
}

.ypt-detail-value {
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.ypt-qr-container {
    text-align: center;
    margin-top: 15px;
}

.ypt-qr-code {
    max-width: 250px;
    max-height: 250px;
    border: 2px solid #ddd;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    margin: 10px auto;
    display: block;
}

.ypt-upload-section {
    background: #fff;
    border-radius: 8px;
}

.ypt-upload-section .form-row {
    margin-bottom: 20px;
}

.ypt-upload-section label {
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.ypt-upload-section .required {
    color: #ff0000;
}

.ypt-upload-section input[type="file"],
.ypt-upload-section input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.ypt-upload-section input[type="file"]:focus,
.ypt-upload-section input[type="text"]:focus {
    border-color: var(--wp--preset--color--primary, var(--wp--style--color--link, #7e4a7a));
    outline: none;
}

.ypt-upload-actions {
    margin-top: 20px;
    text-align: center;
}

.ypt-open-upload-modal {
    background: var(--wp--preset--color--primary, var(--wp--style--color--link, #28a745));
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
    max-width: 300px;
}

.ypt-open-upload-modal:hover {
    background: var(--wp--preset--color--secondary, #218838);
    filter: brightness(0.9);
}

.ypt-open-upload-modal.has-file {
    background: var(--wp--preset--color--primary, var(--wp--style--color--link, #0073aa));
    opacity: 0.9;
}

.ypt-open-upload-modal.has-file:hover {
    opacity: 1;
    filter: brightness(0.9);
}

.ypt-upload-file-name {
    display: block;
    font-size: 12px;
    margin-top: 4px;
    opacity: 0.9;
}

.ypt-modal-confirm-btn {
    background: var(--wp--preset--color--primary, var(--wp--style--color--link, #28a745));
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.ypt-modal-confirm-btn:hover {
    background: var(--wp--preset--color--secondary, #218838);
    filter: brightness(0.9);
}

/* Mobilpadding: 10px 12px;
        gap: 10px;
    }
    
    .ypt-header-content {
        gap: 10px;
    }
    
    .ypt-view-details-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .ypt-modal-content {
        margin: 2% auto;
        width: 95%;
        max-height: 95vh;
    }
    
    .ypt-modal-header {
        padding: 15px;
    }
    
    .ypt-modal-header h3 {
        font-size: 18px;
    }
    
    .ypt-modal-body {
        padding: 15px;
    }
    
    .ypt-method-icon {
        height: 32px;
        width: 32px;
    }
    
    .ypt-method-name {
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .ypt-method-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .ypt-view-details-btn {
        width: 100%;
        text-align: center;
        margin-left: 0;
    }
    
    .ypt-header-content {
        justify-content: flex-start
    
    .ypt-method-name {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .ypt-modal-content {
        margin: 0;
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    
    .ypt-modal-header {
        border-radius: 0;
    }
}

.woocommerce-info {
    background: #f0f8ff;
    border-left: 4px solid #2196F3;
    padding: 12px;
    margin: 15px 0;
}

/* File selected indicator */
.file-selected {
    display: block;
    margin-top: 8px;
    color: #28a745;
    font-weight: 600;
    font-size: 14px;
}
