/**
 * Request Edit Dashboard Styles
 *
 * @package TaxApplicationSystem
 */

/* Back button */
.tax-tax-request-edit-back {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0071E3;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    transition: opacity 0.2s ease;
    line-height: 1;
}

.tax-tax-request-edit-back:hover {
    opacity: 0.8;
}

.tax-tax-request-edit-back svg {
    flex-shrink: 0;
}

/* Customer Info Edit Form */
.tax-tax-customer-info-form {
    padding: 20px 0;
}

.tax-tax-field-group {
    margin-bottom: 20px;
}

.tax-tax-field-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--body-color, #232323);
}

.tax-tax-select {
    width: 100%;
    padding: 11px 15px;
    border: 1px solid var(--primary-semi-light, #ccc);
    border-radius: var(--radius-xl, 8px);
    font-size: var(--text-m, 14px);
    font-family: inherit;
    background: var(--white, #fff);
    transition: all 0.3s;
    min-height: 5rem;
}

.tax-tax-select:focus {
    outline: none;
    border-color: var(--primary, #0071E3);
}

.tax-tax-custom-area-wrapper {
    margin-top: 15px;
}

/* Form Actions */
.tax-tax-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.wa-button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wa-button--primary {
    background: var(--primary, #0071E3);
    color: #fff;
}

.wa-button--primary:hover {
    background: var(--primary-hover, #0056b3);
}

.wa-button--secondary {
    background: transparent;
    color: var(--body-color, #232323);
    border: 1px solid #ddd;
}

.wa-button--secondary:hover {
    background: #f5f5f5;
}

/* Loader Overlay */
.tax-tax-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.tax-tax-loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary, #0071E3);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Select2 Overrides */
.select2-container--default .select2-selection--single {
    min-height: 5rem;
    border: 1px solid var(--primary-semi-light, #ccc);
    border-radius: var(--radius-xl, 8px);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 5rem;
    padding-left: 15px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .tax-tax-form-actions {
        flex-direction: column;
    }
    
    .wa-button {
        width: 100%;
    }
}


/* ============================================
   Product Selector Popup Styles
   ============================================ */

/* Popup overlay */
.tax-tax-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: var(--space-m);
}

.tax-tax-popup {
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0px 0px 25px 0px rgba(0, 113, 227, 0.0509803922);
}

.tax-tax-popup__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-s) var(--space-m);
    border-bottom: 1px solid var(--primary-light-trans-80);
}

.tax-tax-popup__title {
    margin: 0;
    font-size: var(--text-l);
    font-weight: 700;
    color: var(--base);
}

.tax-tax-popup__close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--base);
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tax-tax-popup__content {
    padding: var(--space-s);
}

.tax-tax-product-selector {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.tax-tax-product-option {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-s);
    border: 2px solid var(--primary-light-trans-80);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all 0.2s;
}

.tax-tax-product-option:hover {
    border-color: var(--primary);
}

.tax-tax-product-option:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-light-trans-40);
}

.tax-tax-product-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.tax-tax-product-option__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    gap: var(--space-s);
}

.tax-tax-product-option__name {
    font-weight: 700;
    font-size: var(--text-m);
    color: var(--base);
}

.tax-tax-product-option__price {
    font-weight: 700;
    font-size: var(--text-m);
    color: var(--base);
    white-space: nowrap;
    font-family: "Podkova";
}

.tax-tax-product-option__price small {
    font-size: var(--text-s);
    color: var(--base);
    font-weight: 400;
}

.tax-tax-popup__actions {
    display: flex;
    gap: var(--space-xs);
    justify-content: space-between;
}

.tax-tax-popup__actions .wa-button {
    width: 100%;
}

@media (max-width: 768px) {
    .tax-tax-popup__actions {
        flex-direction: column;
    }
}
