/* Frontend styles for Gift Cards v2 */

.wspf-gift-card-form {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.wspf-gift-card-form h3 {
    margin-top: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.wspf-gift-card-form .form-row {
    margin-bottom: 15px;
}

.wspf-gift-card-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.wspf-gift-card-form input[type="text"],
.wspf-gift-card-form input[type="email"],
.wspf-gift-card-form input[type="number"],
.wspf-gift-card-form textarea,
.wspf-gift-card-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.wspf-gift-card-form textarea {
    resize: vertical;
    min-height: 80px;
}

.wspf-gift-card-form .amount-slider {
    margin: 10px 0;
}

.wspf-gift-card-form .amount-display {
    font-size: 18px;
    font-weight: 600;
    color: #28a745;
    text-align: center;
    margin: 10px 0;
}

.wspf-gift-card-form .design-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.wspf-gift-card-form .design-option {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 100px;
}

.wspf-gift-card-form .design-option:hover {
    border-color: #007cba;
}

.wspf-gift-card-form .design-option.selected {
    border-color: #007cba;
    background-color: #f0f8ff;
}

.wspf-gift-card-form .design-option img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.wspf-gift-card-form .design-option .design-name {
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

/* Gift Card Display */
.wspf-gift-card-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 30px;
    color: white;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.wspf-gift-card-display .card-code {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
    margin: 15px 0;
    background: rgba(255,255,255,0.2);
    padding: 10px;
    border-radius: 6px;
}

.wspf-gift-card-display .card-amount {
    font-size: 32px;
    font-weight: bold;
    margin: 15px 0;
}

.wspf-gift-card-display .card-message {
    font-style: italic;
    margin: 15px 0;
    padding: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
}

.wspf-gift-card-display .card-status {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 10px;
}

/* Gift Card Wizard */
.wspf-gift-card-wizard {
    max-width: 600px;
    margin: 0 auto;
}

.wspf-gift-card-wizard .wizard-step {
    display: none;
}

.wspf-gift-card-wizard .wizard-step.active {
    display: block;
}

.wspf-gift-card-wizard .wizard-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.wspf-gift-card-wizard .wizard-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.wspf-gift-card-wizard .wizard-btn.prev {
    background: #6c757d;
    color: white;
}

.wspf-gift-card-wizard .wizard-btn.next {
    background: #007cba;
    color: white;
}

.wspf-gift-card-wizard .wizard-btn:hover {
    opacity: 0.8;
}

.wspf-gift-card-wizard .wizard-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Gift Card Balance Check */
.wspf-gift-card-balance {
    background: #e8f5e8;
    border: 1px solid #28a745;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
}

/* Wizard Styles - базовые стили */
.wspf-wizard-form {
    max-width: 400px;
    margin: 0 auto;
}

.wspf-wizard-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.wspf-wizard-form input,
.wspf-wizard-form select,
.wspf-wizard-form textarea {
    width: 100%;
    margin-bottom: 16px;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.wspf-wizard-form textarea {
    resize: vertical;
    min-height: 80px;
}

.wspf-wizard-result {
    margin-top: 20px;
    text-align: center;
}

.wspf-wizard-nominals {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.wspf-wizard-nominals button {
    padding: 8px 16px;
    border: 1px solid #2271b1;
    background: #fff;
    color: #2271b1;
    border-radius: 4px;
    cursor: pointer;
}

.wspf-wizard-nominals button.selected {
    background: #2271b1;
    color: #fff;
}

.wspf-wizard-designs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.design-option {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 100px;
}

.design-option:hover {
    border-color: #007cba;
}

.design-option.selected {
    border-color: #007cba;
    background-color: #f0f8ff;
}

.design-option img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.design-option .design-name {
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.wspf-wizard-design-preview {
    text-align: center;
    margin-top: 10px;
}

.wspf-wizard-summary {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
}

.wspf-wizard-summary h3 {
    margin-top: 0;
    color: #333;
}

.wspf-wizard-submit {
    width: 100%;
    padding: 12px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.wspf-wizard-submit:hover {
    background: #1e5a8a;
}

.wspfgc-wizard-footer {
    margin-top: auto;
    text-align: center;
}

.wspfgc-wizard-next-btn {
    padding: 10px 20px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.wspfgc-wizard-next-btn:hover {
    background: #1e5a8a;
}

.wspf-gift-card-balance .balance-amount {
    font-size: 20px;
    font-weight: bold;
    color: #28a745;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wspf-gift-card-form {
        padding: 15px;
    }
    
    .wspf-gift-card-display {
        padding: 20px;
    }
    
    .wspf-gift-card-display .card-code {
        font-size: 18px;
        letter-spacing: 1px;
    }
    
    .wspf-gift-card-display .card-amount {
        font-size: 24px;
    }
    
    .wspf-gift-card-form .design-options {
        justify-content: center;
    }
}

/* Loading States */
.wspf-gift-card-loading {
    text-align: center;
    padding: 20px;
}

.wspf-gift-card-loading .spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error States */
.wspf-gift-card-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
    color: #721c24;
}

.wspf-gift-card-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
    color: #155724;
}
