/* Amazon FBA Calculator - Isolated Styles */
.fba-calculator {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    padding: 2rem 1rem;
    box-sizing: border-box;
}

.fba-calculator * {
    box-sizing: border-box;
}

.fba-calculator-wrapper {
    max-width: 1024px;
    margin: 0 auto;
}

.fba-calculator-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 2rem;
}

.fba-calculator-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.fba-calculator-icon {
    background: #f97316;
    padding: 0.75rem;
    border-radius: 0.5rem;
}

.fba-calculator-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.fba-calculator-subtitle {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0.25rem 0 0 0;
}

.fba-calculator-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .fba-calculator-grid {
        grid-template-columns: 1fr 1fr;
    }
    .fba-calculator-title {
        font-size: 2.25rem;
    }
    .fba-calculator-card {
        padding: 3rem;
    }
    .fba-calculator {
        padding: 3rem 2rem;
    }
}

.fba-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem 0;
}

.fba-form-group {
    margin-bottom: 1rem;
}

.fba-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.fba-label-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fba-input, .fba-select {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
}

.fba-input:focus, .fba-select:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.fba-select-country {
    border: 2px solid #fed7aa;
    font-weight: 500;
}

.fba-input-error {
    border-color: #ef4444 !important;
}

.fba-error-message {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: none;
}

.fba-error-message.show {
    display: block;
}

.fba-helper-text {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.fba-dimensions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
}

.fba-dimensions-grid .fba-input {
    padding: 0.5rem 0.75rem;
}

.fba-result-card {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.fba-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.fba-result-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.fba-result-value {
    font-weight: 600;
    color: #1f2937;
}

.fba-result-description {
    font-size: 0.75rem;
    color: #9ca3af;
}

.fba-result-total {
    background: #fff7ed;
    border: 2px solid #fed7aa;
}

.fba-result-total .fba-result-label {
    font-weight: 500;
    color: #374151;
}

.fba-result-total .fba-result-value {
    font-weight: 700;
    color: #ea580c;
    font-size: 1.125rem;
}

.fba-result-profit {
    background: #f0fdf4;
    border: 2px solid #bbf7d0;
    margin-top: 1rem;
}

.fba-result-profit .fba-result-label {
    font-weight: 500;
    color: #374151;
}

.fba-result-profit .fba-result-value {
    font-weight: 700;
    font-size: 1.125rem;
}

.fba-result-profit .fba-result-value.positive {
    color: #16a34a;
}

.fba-result-profit .fba-result-value.negative {
    color: #dc2626;
}

.fba-result-margin {
    font-size: 0.75rem;
    color: #6b7280;
}

.fba-result-margin-value {
    font-weight: 600;
}

.fba-result-margin-value.positive {
    color: #16a34a;
}

.fba-result-margin-value.negative {
    color: #dc2626;
}

.fba-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #eff6ff;
    border-radius: 0.5rem;
}

.fba-note p {
    font-size: 0.75rem;
    color: #1e40af;
    margin: 0;
}

.fba-note strong {
    font-weight: 600;
}

/* Etsy Fee Calculator - Isolated Styles */
.etsy-calculator {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    padding: 2rem 1rem;
    box-sizing: border-box;
}

.etsy-calculator * {
    box-sizing: border-box;
}

.etsy-calculator-wrapper {
    max-width: 1024px;
    margin: 0 auto;
}

.etsy-calculator-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 2rem;
}

.etsy-calculator-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.etsy-calculator-icon {
    background: #f97316;
    padding: 0.75rem;
    border-radius: 0.5rem;
}

.etsy-calculator-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.etsy-calculator-subtitle {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0.25rem 0 0 0;
}

.etsy-calculator-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .etsy-calculator-grid {
        grid-template-columns: 1fr 1fr;
    }
    .etsy-calculator-title {
        font-size: 2.25rem;
    }
    .etsy-calculator-card {
        padding: 3rem;
    }
    .etsy-calculator {
        padding: 3rem 2rem;
    }
}

.etsy-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem 0;
}

.etsy-form-group {
    margin-bottom: 1rem;
}

.etsy-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.etsy-input, .etsy-select {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
}

.etsy-input:focus, .etsy-select:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.etsy-select-country {
    border: 2px solid #fed7aa;
    font-weight: 500;
}

.etsy-input-error {
    border-color: #ef4444 !important;
}

.etsy-error-message {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.etsy-error-message.hidden {
    display: none;
}

.etsy-helper-text {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.etsy-checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.etsy-checkbox-group:hover .etsy-label {
    color: #ea580c;
}

.etsy-checkbox {
    width: 1rem;
    height: 1rem;
    color: #f97316;
    border-radius: 0.25rem;
    cursor: pointer;
}

.etsy-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.etsy-result-card {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.etsy-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.etsy-result-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.etsy-result-value {
    font-weight: 600;
    color: #1f2937;
}

.etsy-result-description {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

.etsy-result-total-sale {
    background: #dbeafe;
    border: 2px solid #93c5fd;
}

.etsy-result-total-sale .etsy-result-label {
    font-weight: 500;
    color: #374151;
}

.etsy-result-total-sale .etsy-result-value {
    font-weight: 700;
    color: #2563eb;
    font-size: 1.125rem;
}

.etsy-result-total-fees {
    background: #fff7ed;
    border: 2px solid #fed7aa;
}

.etsy-result-total-fees .etsy-result-label {
    font-weight: 500;
    color: #374151;
}

.etsy-result-total-fees .etsy-result-value {
    font-weight: 700;
    color: #ea580c;
    font-size: 1.125rem;
}

.etsy-result-profit {
    background: #f0fdf4;
    border: 2px solid #bbf7d0;
    margin-top: 1rem;
}

.etsy-result-profit .etsy-result-label {
    font-weight: 500;
    color: #374151;
}

.etsy-result-profit .etsy-result-value {
    font-weight: 700;
    font-size: 1.125rem;
}

.etsy-result-profit .etsy-result-value.positive {
    color: #16a34a;
}

.etsy-result-profit .etsy-result-value.negative {
    color: #dc2626;
}

.etsy-result-margin {
    font-size: 0.75rem;
    color: #6b7280;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.etsy-result-margin-value {
    font-weight: 600;
}

.etsy-result-margin-value.positive {
    color: #16a34a;
}

.etsy-result-margin-value.negative {
    color: #dc2626;
}

.etsy-result-actual-profit {
    font-size: 0.75rem;
    color: #6b7280;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.etsy-result-actual-profit.hidden {
    display: none;
}

.etsy-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #eff6ff;
    border-radius: 0.5rem;
    border: 1px solid #bfdbfe;
}

.etsy-note p {
    font-size: 0.75rem;
    color: #1e40af;
    margin: 0;
    line-height: 1.5;
}

.etsy-note strong {
    font-weight: 600;
}