/* Pool Shock Calculator Plugin Styles - Luxury Swimming Pool Theme */
.pool-shock-calculator-container {
    max-width: 42rem; /* Reduced from 60rem for less width */
    margin: 0 auto;
    padding: 1.5rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #0f172a;
    background: linear-gradient(135deg, #e6fffa 0%, #f0fdfa 50%, #ccfbf1 100%);
    border-radius: 1.5rem;
    position: relative;
    overflow: hidden;
}

.pool-shock-calculator-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="waves" patternUnits="userSpaceOnUse" width="100" height="20"><path d="M0 10c20-5 40 5 60 0s40-5 60 0v10H0z" fill="%23ffffff" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23waves)"/></svg>') repeat;
    pointer-events: none;
    z-index: 0;
}

.pool-shock-calculator-container > * {
    position: relative;
    z-index: 1;
}

.pool-shock-calculator-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 50%, #0e7490 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 4px rgba(6, 182, 212, 0.1);
}

.pool-shock-calculator-form-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 1.25rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 
        0 20px 40px rgba(6, 182, 212, 0.1),
        0 8px 16px rgba(8, 145, 178, 0.08),
        inset 0 1px 2px rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(6, 182, 212, 0.1);
    position: relative;
}

.pool-shock-calculator-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #06b6d4, #0891b2, #0e7490);
    border-radius: 1.25rem 1.25rem 0 0;
}

.pool-shock-calculator-form {
    display: grid;
    gap: 1.5rem;
}

.pool-shock-calculator-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pool-shock-calculator-label {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.95rem;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.pool-shock-calculator-unit,
.pool-shock-calculator-units-text {
    color: #0891b2;
    font-weight: 500;
    font-size: 0.85rem;
}

.pool-shock-calculator-tooltip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.125rem;
    height: 1.125rem;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    cursor: help;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(6, 182, 212, 0.2);
    transition: all 0.2s ease;
    position: relative;
}

.pool-shock-calculator-tooltip:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(6, 182, 212, 0.3);
}

/* Tooltip content */
.pool-shock-calculator-tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.4;
    white-space: normal;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    margin-bottom: 0.375rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-width: 400px;
    text-align: center;
}

/* Tooltip arrow */
.pool-shock-calculator-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #1f2937;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    margin-bottom: 0.125rem;
    z-index: 1000;
}

/* Show tooltip on hover */
.pool-shock-calculator-tooltip:hover::before,
.pool-shock-calculator-tooltip:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

.pool-shock-calculator-input,
.pool-shock-calculator-select {
    padding: 0.875rem 1rem;
    border: 2px solid #a7f3d0;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 1px 2px rgba(6, 182, 212, 0.05),
        inset 0 1px 2px rgba(255, 255, 255, 0.8);
    line-height: 1.3;
    color: #0f172a;
}

.pool-shock-calculator-input:focus,
.pool-shock-calculator-select:focus {
    outline: none;
    border-color: #06b6d4;
    box-shadow: 
        0 0 0 3px rgba(6, 182, 212, 0.1),
        0 4px 12px rgba(6, 182, 212, 0.15);
    transform: translateY(-1px);
    background: #ffffff;
}

.pool-shock-calculator-input::placeholder {
    color: #64748b;
    opacity: 0.7;
}

.pool-shock-calculator-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pool-shock-calculator-radio-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.625rem;
    background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 100%);
    border: 1px solid #a7f3d0;
    transition: all 0.2s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.pool-shock-calculator-radio-item:hover {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 100%);
    border-color: #06b6d4;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(6, 182, 212, 0.1);
}

.pool-shock-calculator-radio {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #06b6d4;
    border-radius: 50%;
    margin: 0;
    flex-shrink: 0;
    margin-top: 0.125rem;
    position: relative;
    background: #ffffff;
    cursor: pointer;
}

.pool-shock-calculator-radio:checked {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    border-color: #0e7490;
    box-shadow: 0 2px 4px rgba(6, 182, 212, 0.3);
}

.pool-shock-calculator-radio:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0.375rem;
    height: 0.375rem;
    background: #ffffff;
    border-radius: 50%;
}

.pool-shock-calculator-radio-label {
    font-size: 0.9rem;
    color: #0f172a;
    cursor: pointer;
    line-height: 1.4;
    margin: 0;
    font-weight: 500;
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
}

.pool-shock-calculator-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.pool-shock-calculator-preset-btn {
    background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 100%);
    border: 2px solid #a7f3d0;
    color: #0f172a;
    padding: 0.5rem 1rem;
    border-radius: 0.625rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.pool-shock-calculator-preset-btn:hover {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 100%);
    border-color: #06b6d4;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(6, 182, 212, 0.15);
}

.pool-shock-calculator-preset-btn.pool-shock-calculator-preset-active,
.pool-shock-calculator-preset-btn:active {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    border-color: #0e7490;
    color: white;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.pool-shock-calculator-description {
    font-size: 0.8rem;
    color: #475569;
    margin: 0;
    line-height: 1.4;
    font-style: italic;
}

.pool-shock-calculator-link {
    color: #0891b2;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.pool-shock-calculator-link:hover {
    color: #0e7490;
    text-decoration: underline;
}

.pool-shock-calculator-button {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 50%, #0e7490 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.875rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 16px rgba(6, 182, 212, 0.3),
        0 2px 4px rgba(6, 182, 212, 0.2);
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    line-height: 1.2;
    position: relative;
    overflow: hidden;
}

.pool-shock-calculator-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.pool-shock-calculator-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 24px rgba(6, 182, 212, 0.4),
        0 4px 8px rgba(6, 182, 212, 0.3);
}

.pool-shock-calculator-button:hover:not(:disabled)::before {
    left: 100%;
}

.pool-shock-calculator-button:active {
    transform: translateY(-1px);
}

.pool-shock-calculator-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.pool-shock-calculator-spinner {
    font-size: 0.875rem;
    opacity: 0.9;
}

.pool-shock-calculator-results {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 1.25rem;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 
        0 20px 40px rgba(6, 182, 212, 0.1),
        0 8px 16px rgba(8, 145, 178, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.1);
    position: relative;
}

.pool-shock-calculator-results::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #06b6d4, #0891b2);
    border-radius: 1.25rem 1.25rem 0 0;
}

.pool-shock-calculator-results-title {
    font-size: 1.75rem;
    font-weight: 600;
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 50%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.2;
}

.pool-shock-calculator-result-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 0.875rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.pool-shock-calculator-result-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.pool-shock-calculator-target-card {
    border-left-color: #06b6d4;
    background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 100%);
}

.pool-shock-calculator-amount-card {
    border-left-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.pool-shock-calculator-warning-card {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

.pool-shock-calculator-note-card {
    border-left-color: #8b5cf6;
    background: linear-gradient(135deg, #faf5ff 0%, #ffffff 100%);
}

.pool-shock-calculator-result-card .pool-shock-calculator-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.pool-shock-calculator-result-card p {
    color: #334155;
    margin: 0;
    line-height: 1.5;
    font-weight: 500;
}

.pool-shock-calculator-result-card ul {
    color: #334155;
    margin: 0;
    padding-left: 1.25rem;
    line-height: 1.5;
}

.pool-shock-calculator-result-card li {
    margin-bottom: 0.5rem;
}

.pool-shock-calculator-disclaimer {
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    font-style: italic;
}

.pool-shock-calculator-disclaimer p {
    margin: 0;
    line-height: 1.4;
}

.pool-shock-calculator-error {
    background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
    border: 2px solid #f87171;
    border-radius: 0.875rem;
    padding: 1.5rem;
    margin-top: 1rem;
    animation: pool-shock-calculator-shake 0.5s ease-in-out;
    box-shadow: 0 4px 12px rgba(248, 113, 113, 0.2);
}

.pool-shock-calculator-error-title {
    color: #dc2626;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.2;
}

.pool-shock-calculator-error p {
    color: #dc2626;
    margin: 0;
    line-height: 1.5;
    font-weight: 500;
}

@keyframes pool-shock-calculator-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-0.3125rem); }
    75% { transform: translateX(0.3125rem); }
}

/* Content Section Styles - Separate from calculator */
.pool-shock-calculator-content {
    max-width: 56rem;
    margin: 3rem auto 0;
    padding: 0 1.5rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.7;
    color: #374151;
}

.pool-shock-calculator-section {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.pool-shock-calculator-section h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    border-bottom: 3px solid #06b6d4;
    padding-bottom: 0.75rem;
}

.pool-shock-calculator-section h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: #1f2937;
    margin: 2rem 0 1rem;
    line-height: 1.3;
}

.pool-shock-calculator-section p {
    margin-bottom: 1rem;
    color: #374151;
    font-size: 1rem;
}

.pool-shock-calculator-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
    color: #374151;
}

.pool-shock-calculator-list li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.pool-shock-calculator-warning-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 5%, #fef3c7 100%);
    border: 2px solid #f59e0b;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.pool-shock-calculator-warning-box h3 {
    color: #92400e;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.pool-shock-calculator-warning-box ul {
    color: #451a03;
    margin: 0;
}

.pool-shock-calculator-table-container {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 0.75rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.pool-shock-calculator-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 0.75rem;
    overflow: hidden;
}

.pool-shock-calculator-table th {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: #ffffff;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

.pool-shock-calculator-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    font-weight: 500;
}

.pool-shock-calculator-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.pool-shock-calculator-table tbody tr:hover {
    background: #f0fdfa;
}

.pool-shock-calculator-expert-tip {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-left: 4px solid #10b981;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #065f46;
}

/* Mobile Responsiveness */
@media (max-width: 48rem) {
    .pool-shock-calculator-container {
        max-width: calc(100vw - 1rem); /* Ensure container doesn't exceed viewport */
        margin: 0.5rem auto;
        padding: 1rem;
        border-radius: 1rem;
        box-sizing: border-box;
    }
    
    .pool-shock-calculator-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        word-wrap: break-word;
    }
    
    .pool-shock-calculator-form-wrapper {
        padding: 1.5rem;
        border-radius: 1rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .pool-shock-calculator-form {
        gap: 1.25rem;
        width: 100%;
    }
    
    .pool-shock-calculator-input,
    .pool-shock-calculator-select {
        width: 100%;
        box-sizing: border-box;
        min-width: 0; /* Prevent input overflow */
    }
    
    .pool-shock-calculator-radio-group {
        gap: 0.5rem;
        width: 100%;
    }
    
    .pool-shock-calculator-radio-item {
        padding: 0.625rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .pool-shock-calculator-radio-label {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .pool-shock-calculator-presets {
        gap: 0.375rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .pool-shock-calculator-preset-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        word-wrap: break-word;
        flex: 1;
        min-width: 0;
    }
    
    .pool-shock-calculator-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .pool-shock-calculator-results {
        padding: 1.5rem;
        border-radius: 1rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .pool-shock-calculator-results-title {
        font-size: 1.5rem;
        word-wrap: break-word;
    }
    
    .pool-shock-calculator-result-card {
        padding: 1.25rem;
        border-radius: 0.75rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Content section mobile styles */
    .pool-shock-calculator-content {
        margin-top: 2rem;
        padding: 0 1rem;
        max-width: calc(100vw - 2rem);
        box-sizing: border-box;
    }
    
    .pool-shock-calculator-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .pool-shock-calculator-section h2 {
        font-size: 1.5rem;
        word-wrap: break-word;
    }
    
    .pool-shock-calculator-section h3 {
        font-size: 1.25rem;
        word-wrap: break-word;
    }
    
    .pool-shock-calculator-table-container {
        font-size: 0.875rem;
        overflow-x: auto;
        width: 100%;
    }
    
    .pool-shock-calculator-table {
        min-width: 100%;
    }
    
    .pool-shock-calculator-table th,
    .pool-shock-calculator-table td {
        padding: 0.75rem 0.5rem;
        word-wrap: break-word;
    }
    
    /* Mobile tooltip adjustments */
    .pool-shock-calculator-tooltip::before {
        max-width: calc(100vw - 2rem);
        font-size: 0.7rem;
        padding: 0.375rem 0.5rem;
        left: 50%;
        transform: translateX(-50%);
        margin-left: 0;
        right: auto;
        width: max-content;
        box-sizing: border-box;
    }
    
    .pool-shock-calculator-tooltip::after {
        left: 50%;
        transform: translateX(-50%);
        margin-left: 0;
    }
    
    .pool-shock-calculator-tooltip:hover::before,
    .pool-shock-calculator-tooltip:hover::after {
        transform: translateX(-50%) translateY(-2px);
    }
    
    /* For touch devices, show tooltip on tap/focus */
    .pool-shock-calculator-tooltip:focus::before,
    .pool-shock-calculator-tooltip:focus::after,
    .pool-shock-calculator-tooltip:active::before,
    .pool-shock-calculator-tooltip:active::after {
        opacity: 1;
        transform: translateX(-50%) translateY(-2px);
    }
    
    .pool-shock-calculator-tooltip {
        outline: none;
        -webkit-tap-highlight-color: transparent;
    }
}

@media (max-width: 30rem) {
    .pool-shock-calculator-container {
        max-width: calc(100vw - 0.5rem);
        margin: 0.25rem auto;
        padding: 0.75rem;
        box-sizing: border-box;
    }
    
    .pool-shock-calculator-title {
        font-size: 1.75rem;
        word-wrap: break-word;
    }
    
    .pool-shock-calculator-form-wrapper,
    .pool-shock-calculator-results {
        padding: 1rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .pool-shock-calculator-input,
    .pool-shock-calculator-select {
        padding: 0.75rem;
        font-size: 0.9rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .pool-shock-calculator-radio-item {
        gap: 0.5rem;
        padding: 0.5rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .pool-shock-calculator-radio-label {
        font-size: 0.85rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .pool-shock-calculator-presets {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    
    .pool-shock-calculator-preset-btn {
        text-align: center;
        padding: 0.625rem;
        width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
    }
    
    .pool-shock-calculator-result-card {
        padding: 1rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Content section small mobile styles */
    .pool-shock-calculator-content {
        padding: 0 0.75rem;
        max-width: calc(100vw - 1.5rem);
        box-sizing: border-box;
    }
    
    .pool-shock-calculator-section {
        padding: 1rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .pool-shock-calculator-section h2 {
        font-size: 1.375rem;
        word-wrap: break-word;
    }
    
    .pool-shock-calculator-section h3 {
        font-size: 1.125rem;
        word-wrap: break-word;
    }
    
    .pool-shock-calculator-table-container {
        font-size: 0.8rem;
        width: 100%;
        overflow-x: auto;
    }
    
    .pool-shock-calculator-table th,
    .pool-shock-calculator-table td {
        padding: 0.5rem 0.375rem;
        word-wrap: break-word;
    }
}

/* Large desktop screens */
@media (min-width: 64rem) {
    .pool-shock-calculator-radio-group {
        flex-direction: row;
        gap: 1.5rem;
    }
    
    .pool-shock-calculator-radio-item {
        flex: 1;
    }
    
    .pool-shock-calculator-presets {
        max-width: none;
    }
    
    .pool-shock-calculator-container {
        max-width: 44rem; /* Slightly larger on very large screens but still compact */
    }
    
    .pool-shock-calculator-content {
        max-width: 60rem;
    }
}

/* Extra small screens */
@media (max-width: 20rem) {
    .pool-shock-calculator-container {
        max-width: 100vw;
        margin: 0;
        border-radius: 0;
        padding: 0.5rem;
        box-sizing: border-box;
    }
    
    .pool-shock-calculator-form-wrapper,
    .pool-shock-calculator-results {
        border-radius: 0.5rem;
        padding: 0.75rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .pool-shock-calculator-title {
        font-size: 1.5rem;
        word-wrap: break-word;
    }
    
    .pool-shock-calculator-input,
    .pool-shock-calculator-select {
        width: 100%;
        box-sizing: border-box;
        padding: 0.5rem;
    }
    
    .pool-shock-calculator-content {
        margin-top: 1rem;
        padding: 0 0.5rem;
        max-width: calc(100vw - 1rem);
        box-sizing: border-box;
    }
    
    .pool-shock-calculator-section {
        padding: 0.75rem;
        border-radius: 0.5rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .pool-shock-calculator-section h2,
    .pool-shock-calculator-section h3 {
        word-wrap: break-word;
    }
} 