.wf-integration-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.wf-search-form,
.wf-tariff-list,
.wf-signup-form,
.wf-review-form,
.wf-confirmation {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 30px;
}

.wf-integration-wrapper h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.wf-form-group {
    margin-bottom: 20px;
}

.wf-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.wf-form-group input[type="text"],
.wf-form-group input[type="email"],
.wf-form-group input[type="tel"],
.wf-form-group input[type="number"],
.wf-form-group input[type="date"],
.wf-form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.wf-form-group input:focus,
.wf-form-group select:focus {
    outline: none;
    border-color: #0073aa;
}

.wf-form-group .required {
    color: #d63638;
}

fieldset {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

fieldset legend {
    font-weight: 600;
    padding: 0 10px;
    color: #333;
}

.wf-form-actions {
    margin-top: 20px;
    text-align: center;
}

.wf-button {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.wf-button-primary {
    background-color: #0073aa;
    color: #fff;
}

.wf-button-primary:hover {
    background-color: #005a87;
}

.wf-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.wf-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
}

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

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

.wf-tariffs {
    margin-top: 20px;
}

.wf-tariff-card {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
}

.wf-tariff-card.eco {
    border-color: #28a745;
}

.wf-tariff-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.wf-tariff-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.wf-tariff-provider {
    font-size: 14px;
    color: #666;
}

.wf-tariff-price {
    text-align: right;
}

.wf-tariff-cost {
    font-size: 24px;
    font-weight: 700;
    color: #0073aa;
    margin: 0;
}

.wf-tariff-saving {
    font-size: 14px;
    color: #28a745;
    margin: 5px 0 0 0;
}

.wf-tariff-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.wf-tariff-detail {
    font-size: 13px;
    color: #666;
}

.wf-tariff-detail strong {
    color: #333;
}

.wf-tariff-toggle {
    margin: 15px 0;
    text-align: center;
}

.wf-toggle-details {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.wf-toggle-details:hover {
    background: #e9ecef;
    border-color: #0073aa;
    color: #0073aa;
}

.wf-toggle-icon {
    font-size: 12px;
    margin-left: 8px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.wf-tariff-details-extended {
    margin: 15px 0;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.wf-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.wf-detail-row:last-child {
    border-bottom: none;
}

.wf-detail-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    flex: 1;
}

.wf-detail-value {
    font-size: 14px;
    color: #333;
    font-weight: 600;
    text-align: right;
}

.wf-detail-highlight {
    background: #d4edda;
    padding: 15px 20px !important;
    margin: 10px -20px -20px -20px;
    border-bottom: none !important;
    border-radius: 0 0 4px 4px;
}

.wf-detail-highlight .wf-detail-label {
    color: #155724;
    font-weight: 600;
}

.wf-detail-highlight .wf-detail-value {
    color: #155724;
    font-size: 18px;
    font-weight: 700;
}

.wf-detail-highlight small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    margin-top: 2px;
}

.wf-tariff-badges {
    margin-bottom: 15px;
}

.wf-badge {
    display: inline-block;
    padding: 4px 10px;
    background-color: #28a745;
    color: #fff;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 5px;
}

.wf-tariff-actions {
    text-align: right;
}

.wf-button-secondary {
    background-color: #6c757d;
    color: #fff;
    padding: 8px 20px;
    font-size: 14px;
}

.wf-button-secondary:hover {
    background-color: #5a6268;
}

.wf-filter-options {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.wf-filter-options label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.wf-filter-options input[type="checkbox"] {
    margin-right: 8px;
}

.wf-review-form .wf-integration-wrapper {
    max-width: 1200px;
}

.wf-review-summary h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 15px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

.wf-review-summary h4 {
    color: #0073aa;
    font-size: 16px;
    margin-bottom: 10px;
}

.wf-review-summary p {
    margin: 8px 0;
    line-height: 1.6;
}

.wf-confirmation {
    text-align: center;
}

.wf-confirmation h2 {
    color: #28a745;
}

.wf-confirmation p {
    font-size: 16px;
    line-height: 1.6;
}

.wf-current-tariff-box {
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.wf-current-tariff-box h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.wf-current-tariff-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.wf-current-tariff-box .wf-tariff-detail {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.wf-current-tariff-box .wf-tariff-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.wf-current-tariff-box .wf-tariff-value {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.wf-current-tariff-box .wf-total-cost {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 1) !important;
    border: 2px solid #ffd700;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.wf-current-tariff-box .wf-total-cost .wf-tariff-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.wf-current-tariff-box .wf-total-cost .wf-tariff-value {
    font-size: 24px;
    color: #0073aa;
}

.wf-loading {
    text-align: center;
    padding: 40px;
}

.wf-loading:before {
    content: "";
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: wf-spin 1s linear infinite;
}

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

@media (max-width: 768px) {
    .wf-integration-wrapper {
        padding: 0;
        max-width: 100%;
    }

    .wf-search-form,
    .wf-tariff-list,
    .wf-signup-form,
    .wf-review-form,
    .wf-confirmation {
        padding: 20px 15px;
        border-left: none;
        border-right: none;
        border-radius: 0;
    }

    .wf-integration-wrapper h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .wf-tariff-card {
        padding: 15px;
        margin-bottom: 10px;
    }

    .wf-tariff-header {
        flex-direction: column;
    }

    .wf-tariff-title {
        font-size: 16px;
    }

    .wf-tariff-price {
        text-align: left;
        margin-top: 10px;
    }

    .wf-tariff-cost {
        font-size: 20px;
    }

    .wf-tariff-summary {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .wf-tariff-details-extended {
        padding: 15px;
        margin: 10px 0;
    }

    .wf-detail-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 8px 0;
    }

    .wf-detail-label {
        margin-bottom: 4px;
        font-size: 13px;
    }

    .wf-detail-value {
        text-align: left;
        font-size: 15px;
    }

    .wf-detail-highlight {
        margin: 10px -15px -15px -15px;
        padding: 12px 15px !important;
    }

    fieldset {
        padding: 15px;
        margin-bottom: 15px;
    }

    .wf-form-group {
        margin-bottom: 15px;
    }

    .wf-button {
        width: 100%;
        padding: 10px 20px;
        font-size: 15px;
    }

    .wf-toggle-details {
        padding: 8px 15px;
        font-size: 13px;
    }

    .wf-tariff-actions {
        text-align: center;
    }

    .wf-current-tariff-box {
        padding: 15px;
    }

    .wf-current-tariff-box h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .wf-current-tariff-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .wf-current-tariff-box .wf-tariff-detail {
        padding: 12px;
    }

    .wf-current-tariff-box .wf-tariff-label {
        font-size: 12px;
    }

    .wf-current-tariff-box .wf-tariff-value {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .wf-integration-wrapper {
        padding: 0;
    }

    .wf-search-form,
    .wf-tariff-list,
    .wf-signup-form,
    .wf-review-form,
    .wf-confirmation {
        padding: 12px;
    }

    .wf-integration-wrapper h2 {
        font-size: 18px;
    }

    .wf-tariff-card {
        padding: 12px;
    }

    .wf-tariff-title {
        font-size: 15px;
    }

    .wf-tariff-cost {
        font-size: 18px;
    }

    .wf-tariff-provider,
    .wf-tariff-detail {
        font-size: 12px;
    }

    .wf-form-group input[type="text"],
    .wf-form-group input[type="email"],
    .wf-form-group input[type="tel"],
    .wf-form-group input[type="number"],
    .wf-form-group input[type="date"],
    .wf-form-group select {
        padding: 8px;
        font-size: 14px;
    }

    fieldset {
        padding: 12px;
    }

    fieldset legend {
        font-size: 14px;
        padding: 0 8px;
    }

    .wf-detail-label {
        font-size: 12px;
    }

    .wf-detail-value {
        font-size: 14px;
    }

    .wf-detail-highlight .wf-detail-value {
        font-size: 16px;
    }

    .wf-current-tariff-box {
        padding: 12px;
    }

    .wf-current-tariff-box h3 {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .wf-current-tariff-box .wf-tariff-detail {
        padding: 10px;
    }

    .wf-current-tariff-box .wf-tariff-label {
        font-size: 11px;
    }

    .wf-current-tariff-box .wf-tariff-value {
        font-size: 16px;
    }
}
