/**
 * Simple Cookie Consent - Frontend Styles
 * WCAG 2.1 AA Compliant
 */

.scc-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.scc-overlay.scc-active {
    opacity: 1;
    visibility: visible;
}

.scc-banner {
    position: fixed;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.scc-banner.scc-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scc-banner.scc-box {
    max-width: 400px;
    margin: 20px;
}

.scc-banner.scc-bottom-left {
    bottom: 0;
    left: 0;
}

.scc-banner.scc-bottom-right {
    bottom: 0;
    right: 0;
}

.scc-banner.scc-top-left {
    top: 0;
    left: 0;
}

.scc-banner.scc-top-right {
    top: 0;
    right: 0;
}

.scc-banner.scc-footer {
    bottom: 0;
    left: 0;
    right: 0;
    max-width: none;
    margin: 0;
    border-radius: 0;
}

.scc-banner.scc-popup {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 500px;
    margin: 0;
}

.scc-banner.scc-popup.scc-active {
    transform: translate(-50%, -50%);
}

.scc-banner-inner {
    background: var(--scc-bg-color, #ffffff);
    border: 1px solid var(--scc-border-color, #abb8c3);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.scc-banner.scc-footer .scc-banner-inner {
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.scc-banner-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--scc-title-color, #000000);
}

.scc-banner-text {
    color: var(--scc-content-color, #000000);
    margin-bottom: 20px;
}

.scc-banner.scc-footer .scc-banner-content {
    flex: 1;
    min-width: 300px;
}

.scc-banner.scc-footer .scc-banner-text {
    margin-bottom: 0;
}

.scc-banner-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.scc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
    min-height: 44px;
}

.scc-btn:focus {
    outline: 2px solid #1863dc;
    outline-offset: 2px;
}

.scc-btn-customize {
    background: var(--scc-customize-btn-bg, #ffffff);
    color: var(--scc-customize-btn-text, #000000);
    border-color: var(--scc-border-color, #abb8c3);
}

.scc-btn-customize:hover {
    background: #f6f7f7;
}

.scc-btn-reject {
    background: var(--scc-reject-btn-bg, #ffffff);
    color: var(--scc-reject-btn-text, #000000);
    border-color: var(--scc-border-color, #abb8c3);
}

.scc-btn-reject:hover {
    background: #f6f7f7;
}

.scc-btn-accept {
    background: var(--scc-accept-btn-bg, #1863dc);
    color: var(--scc-accept-btn-text, #ffffff);
    border-color: var(--scc-accept-btn-bg, #1863dc);
}

.scc-btn-accept:hover {
    opacity: 0.9;
}

.scc-btn-save {
    background: var(--scc-save-btn-bg, #1863dc);
    color: var(--scc-save-btn-text, #ffffff);
    border-color: var(--scc-save-btn-bg, #1863dc);
}

.scc-btn-save:hover {
    opacity: 0.9;
}

.scc-powered-by {
    margin-top: 15px;
    font-size: 11px;
    color: #999;
    text-align: center;
}

.scc-powered-by a {
    color: #666;
    text-decoration: none;
}

.scc-powered-by a:hover {
    text-decoration: underline;
}

.scc-preferences {
    position: fixed;
    z-index: 1000000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.scc-preferences.scc-active {
    opacity: 1;
    visibility: visible;
}

.scc-preferences.scc-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
}

.scc-preferences.scc-side {
    top: 0;
    right: 0;
    width: 400px;
    max-width: 100%;
    height: 100vh;
}

.scc-preferences.scc-dropdown {
    top: 0;
    left: 0;
    right: 0;
    max-height: 80vh;
}

.scc-preferences-inner {
    background: var(--scc-bg-color, #ffffff);
    border: 1px solid var(--scc-border-color, #abb8c3);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.scc-preferences.scc-side .scc-preferences-inner {
    border-radius: 0;
    height: 100%;
}

.scc-preferences.scc-dropdown .scc-preferences-inner {
    border-radius: 0 0 8px 8px;
}

.scc-preferences-header {
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.scc-preferences-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: var(--scc-title-color, #000000);
}

.scc-preferences-desc {
    color: var(--scc-content-color, #000000);
    font-size: 14px;
    margin: 0;
}

.scc-preferences-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.scc-category {
    border-bottom: 1px solid #eee;
}

.scc-category:last-child {
    border-bottom: none;
}

.scc-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    cursor: pointer;
    background: #fafafa;
    transition: background 0.2s ease;
}

.scc-category-header:hover {
    background: #f0f0f0;
}

.scc-category-header:focus {
    outline: 2px solid #1863dc;
    outline-offset: -2px;
}

.scc-category-info {
    flex: 1;
}

.scc-category-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--scc-title-color, #000000);
}

.scc-category-desc {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

.scc-category-toggle {
    flex-shrink: 0;
    margin-left: 20px;
}

.scc-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.scc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.scc-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.scc-switch-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.scc-switch input:checked + .scc-switch-slider {
    background-color: #00a32a;
}

.scc-switch input:focus + .scc-switch-slider {
    box-shadow: 0 0 0 2px #1863dc;
}

.scc-switch input:checked + .scc-switch-slider:before {
    transform: translateX(24px);
}

.scc-switch input:disabled + .scc-switch-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.scc-always-active {
    font-size: 12px;
    color: #00a32a;
    font-weight: 500;
}

.scc-category-cookies {
    display: none;
    padding: 0 24px 16px;
    background: #fff;
}

.scc-category.scc-expanded .scc-category-cookies {
    display: block;
}

.scc-cookie-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.scc-cookie-item {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.scc-cookie-item:last-child {
    border-bottom: none;
}

.scc-cookie-name {
    font-weight: 600;
    font-family: monospace;
    background: #f6f7f7;
    padding: 2px 6px;
    border-radius: 3px;
}

.scc-cookie-desc {
    color: #666;
    margin-top: 4px;
}

.scc-preferences-footer {
    padding: 20px 24px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.scc-reconsent-btn {
    position: fixed;
    z-index: 999997;
    background: var(--scc-accept-btn-bg, #1863dc);
    color: var(--scc-accept-btn-text, #ffffff);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
}

.scc-reconsent-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.scc-reconsent-btn:focus {
    outline: 2px solid #1863dc;
    outline-offset: 2px;
}

.scc-reconsent-btn svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Reconsent Button Positions */
.scc-reconsent-btn.scc-pos-bottom-left {
    bottom: 20px;
    left: 20px;
}

.scc-reconsent-btn.scc-pos-bottom-right {
    bottom: 20px;
    right: 20px;
}

.scc-reconsent-btn.scc-pos-bottom-center {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.scc-reconsent-btn.scc-pos-bottom-center:hover {
    transform: translateX(-50%) scale(1.05);
}

.scc-reconsent-btn.scc-pos-top-left {
    top: 20px;
    left: 20px;
}

.scc-reconsent-btn.scc-pos-top-right {
    top: 20px;
    right: 20px;
}

/* Reconsent Button Styles */
.scc-reconsent-btn.scc-style-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    padding: 0;
}

.scc-reconsent-btn.scc-style-text {
    padding: 10px 20px;
    border-radius: 22px;
    min-height: 44px;
}

.scc-reconsent-btn.scc-style-text svg {
    display: none;
}

.scc-reconsent-btn.scc-style-pill {
    padding: 10px 20px 10px 14px;
    border-radius: 22px;
    min-height: 44px;
}

.scc-reconsent-btn.scc-style-pill svg {
    width: 20px;
    height: 20px;
}

.scc-inline-consent {
    background: var(--scc-bg-color, #ffffff);
    border: 1px solid var(--scc-border-color, #abb8c3);
    border-radius: 8px;
    padding: 24px;
    margin: 20px 0;
}

.scc-inline-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--scc-title-color, #000000);
}

.scc-inline-text {
    color: var(--scc-content-color, #000000);
    margin-bottom: 20px;
}

.scc-inline-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.scc-cookie-policy {
    max-width: 800px;
}

.scc-cookie-policy h2 {
    margin-top: 0;
}

.scc-cookie-policy h3 {
    margin-top: 30px;
}

.scc-cookie-policy ul {
    padding-left: 20px;
}

.scc-manage-link {
    color: #1863dc;
    text-decoration: underline;
}

.scc-cookie-declaration h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.scc-cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.scc-cookie-table th,
.scc-cookie-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

.scc-cookie-table th {
    background: #f6f7f7;
    font-weight: 600;
}

.scc-cookie-table code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
}

.scc-settings-link {
    color: #1863dc;
    text-decoration: underline;
    cursor: pointer;
}

@media (max-width: 600px) {
    .scc-banner.scc-box {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .scc-banner-buttons {
        flex-direction: column;
    }
    
    .scc-btn {
        width: 100%;
    }
    
    .scc-preferences.scc-center {
        width: 100%;
        height: 100%;
        max-height: 100vh;
    }
    
    .scc-preferences-inner {
        border-radius: 0;
        max-height: 100vh;
    }
    
    .scc-preferences.scc-side {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scc-banner,
    .scc-preferences,
    .scc-overlay,
    .scc-switch-slider,
    .scc-switch-slider:before,
    .scc-reconsent-btn {
        transition: none;
    }
}

[dir="rtl"] .scc-banner.scc-bottom-left {
    left: auto;
    right: 0;
}

[dir="rtl"] .scc-banner.scc-bottom-right {
    right: auto;
    left: 0;
}

[dir="rtl"] .scc-banner.scc-top-left {
    left: auto;
    right: 0;
}

[dir="rtl"] .scc-banner.scc-top-right {
    right: auto;
    left: 0;
}

[dir="rtl"] .scc-preferences.scc-side {
    right: auto;
    left: 0;
}

[dir="rtl"] .scc-reconsent-btn {
    left: auto;
    right: 20px;
}

[dir="rtl"] .scc-category-toggle {
    margin-left: 0;
    margin-right: 20px;
}

/* Cookie Policy Page Styles */
.scc-cookie-policy {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #333;
}

.scc-policy h1 {
    font-size: 2em;
    margin-bottom: 0.5em;
    color: #1d2327;
}

.scc-policy h2 {
    font-size: 1.4em;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #eee;
    color: #1d2327;
}

.scc-policy h3 {
    font-size: 1.1em;
    margin-top: 1.25em;
    margin-bottom: 0.5em;
    color: #1d2327;
}

.scc-policy p {
    margin-bottom: 1em;
}

.scc-policy ul,
.scc-policy ol {
    margin-bottom: 1em;
    padding-left: 2em;
}

.scc-policy li {
    margin-bottom: 0.5em;
}

.scc-policy-updated {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 1.5em;
}

.scc-policy-toc {
    background: #f8f9fa;
    padding: 1.5em;
    border-radius: 8px;
    margin-bottom: 2em;
}

.scc-policy-toc h2 {
    margin-top: 0;
    font-size: 1.2em;
    border-bottom: none;
    padding-bottom: 0;
}

.scc-policy-toc ol {
    margin-bottom: 0;
}

.scc-policy-toc a {
    color: #2271b1;
    text-decoration: none;
}

.scc-policy-toc a:hover {
    text-decoration: underline;
}

.scc-policy-section {
    margin-bottom: 2em;
}

.scc-policy-category {
    margin-bottom: 1.5em;
    padding: 1em;
    background: #f8f9fa;
    border-radius: 6px;
}

.scc-policy-cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1em;
    font-size: 0.9em;
}

.scc-policy-cookie-table th,
.scc-policy-cookie-table td {
    padding: 0.75em;
    text-align: left;
    border: 1px solid #ddd;
}

.scc-policy-cookie-table th {
    background: #f0f0f0;
    font-weight: 600;
}

.scc-policy-cookie-table code {
    background: #e8e8e8;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
}

.scc-no-cookies-note {
    font-style: italic;
    color: #666;
}

/* User-Friendly Template Styles */
.scc-policy-friendly .scc-policy-subtitle {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 0.5em;
}

.scc-policy-highlight-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 1.5em;
    border-radius: 10px;
    margin: 1.5em 0;
}

.scc-policy-highlight-box h2 {
    color: #fff;
    border-bottom: none;
    margin-top: 0;
    padding-bottom: 0;
}

.scc-policy-highlight-box p {
    margin-bottom: 0;
}

.scc-policy-categories-friendly {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1em;
    margin: 1.5em 0;
}

.scc-policy-category-card {
    padding: 1.5em;
    background: #f8f9fa;
    border-radius: 10px;
    position: relative;
}

.scc-category-icon {
    font-size: 2em;
    margin-bottom: 0.5em;
}

.scc-policy-category-card h3 {
    margin-top: 0;
    margin-bottom: 0.5em;
}

.scc-required-badge,
.scc-optional-badge {
    display: inline-block;
    padding: 0.25em 0.75em;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
    margin-top: 0.5em;
}

.scc-required-badge {
    background: #d1fae5;
    color: #065f46;
}

.scc-optional-badge {
    background: #dbeafe;
    color: #1e40af;
}

.scc-cookie-details {
    margin-top: 1em;
}

.scc-cookie-details summary {
    cursor: pointer;
    color: #2271b1;
    font-size: 0.9em;
}

.scc-cookie-details ul {
    margin-top: 0.5em;
    font-size: 0.85em;
}

.scc-control-list {
    background: #f8f9fa;
    padding: 1em 1em 1em 2.5em;
    border-radius: 6px;
}

.scc-consent-note {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

.scc-policy-contact-box {
    background: #f0f6fc;
    padding: 1.5em;
    border-radius: 10px;
    border-left: 4px solid #2271b1;
    margin-top: 2em;
}

.scc-policy-contact-box h2 {
    margin-top: 0;
    border-bottom: none;
    padding-bottom: 0;
}

/* Detailed Template Styles */
.scc-policy-detailed .scc-policy-meta {
    background: #f8f9fa;
    padding: 1em;
    border-radius: 6px;
    margin-bottom: 1.5em;
}

.scc-policy-detailed .scc-policy-meta p {
    margin: 0.25em 0;
}

.scc-policy-category-block {
    margin-bottom: 1.5em;
    padding-bottom: 1em;
    border-bottom: 1px solid #eee;
}

.scc-detailed-table {
    font-size: 0.85em;
}

/* Settings Button Shortcode */
.scc-settings-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.scc-btn-style-primary {
    background: #2271b1;
    color: #fff;
}

.scc-btn-style-primary:hover {
    background: #135e96;
}

.scc-btn-style-secondary {
    background: #f0f0f1;
    color: #1d2327;
}

.scc-btn-style-secondary:hover {
    background: #e0e0e1;
}

.scc-btn-style-outline {
    background: transparent;
    color: #2271b1;
    border: 2px solid #2271b1;
}

.scc-btn-style-outline:hover {
    background: #2271b1;
    color: #fff;
}

.scc-btn-style-link {
    background: transparent;
    color: #2271b1;
    padding: 0;
    text-decoration: underline;
}

.scc-btn-style-link:hover {
    color: #135e96;
}

.scc-btn-size-small {
    padding: 6px 12px;
    font-size: 12px;
}

.scc-btn-size-large {
    padding: 14px 28px;
    font-size: 16px;
}

/* Cookie Table Widget */
.scc-cookie-table-widget {
    margin: 1em 0;
}

.scc-cookie-table-widget .scc-cookie-table {
    width: 100%;
    border-collapse: collapse;
}

.scc-cookie-table-widget .scc-cookie-table th,
.scc-cookie-table-widget .scc-cookie-table td {
    padding: 10px 12px;
    text-align: left;
    border: 1px solid #ddd;
}

.scc-cookie-table-widget .scc-cookie-table th {
    background: #f5f5f5;
    font-weight: 600;
}

.scc-cookie-table-widget .scc-cookie-table code {
    background: #f0f0f1;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}

.scc-category-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}

.scc-category-necessary {
    background: #e5e7eb;
    color: #374151;
}

.scc-category-functional {
    background: #dbeafe;
    color: #1e40af;
}

.scc-category-analytical {
    background: #fef3c7;
    color: #92400e;
}

.scc-category-advertisement {
    background: #fce7f3;
    color: #9d174d;
}

@media (max-width: 600px) {
    .scc-cookie-policy {
        padding: 15px;
    }
    
    .scc-policy h1 {
        font-size: 1.5em;
    }
    
    .scc-policy h2 {
        font-size: 1.2em;
    }
    
    .scc-policy-cookie-table {
        font-size: 0.8em;
    }
    
    .scc-policy-cookie-table th,
    .scc-policy-cookie-table td {
        padding: 0.5em;
    }
    
    .scc-policy-categories-friendly {
        grid-template-columns: 1fr;
    }
}

/* Mobile Bottom Sheet Experience */
@media (max-width: 768px) {
    .scc-banner.scc-mobile-sheet {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        max-width: none;
        margin: 0;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    }
    
    .scc-banner.scc-mobile-sheet.scc-active {
        transform: translateY(0);
    }
    
    .scc-banner.scc-mobile-sheet .scc-banner-inner {
        border-radius: 16px 16px 0 0;
        padding: 20px;
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        max-height: 70vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .scc-banner.scc-mobile-sheet .scc-sheet-handle {
        display: block;
        width: 40px;
        height: 4px;
        background: #d1d5db;
        border-radius: 2px;
        margin: 0 auto 16px;
    }
    
    .scc-sheet-handle {
        display: none;
    }
    
    .scc-banner.scc-mobile-sheet .scc-banner-title {
        font-size: 20px;
        text-align: center;
    }
    
    .scc-banner.scc-mobile-sheet .scc-banner-text {
        text-align: center;
        font-size: 14px;
    }
    
    .scc-banner.scc-mobile-sheet .scc-banner-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .scc-banner.scc-mobile-sheet .scc-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
        min-height: 48px;
    }
    
    .scc-preferences.scc-mobile-sheet {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        max-width: none;
        margin: 0;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    }
    
    .scc-preferences.scc-mobile-sheet.scc-active {
        transform: translateY(0);
    }
    
    .scc-preferences.scc-mobile-sheet .scc-preferences-inner {
        border-radius: 16px 16px 0 0;
        max-height: 85vh;
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    }
    
    .scc-preferences.scc-mobile-sheet .scc-sheet-handle {
        display: block;
        width: 40px;
        height: 4px;
        background: #d1d5db;
        border-radius: 2px;
        margin: 12px auto 0;
    }
    
    .scc-preferences.scc-mobile-sheet .scc-preferences-header {
        text-align: center;
        padding-top: 8px;
    }
    
    .scc-preferences.scc-mobile-sheet .scc-close-btn {
        position: absolute;
        right: 16px;
        top: 16px;
    }
    
    .scc-preferences.scc-mobile-sheet .scc-category {
        border-radius: 12px;
        margin-bottom: 12px;
    }
    
    .scc-preferences.scc-mobile-sheet .scc-category-header {
        padding: 16px;
        min-height: 56px;
    }
    
    .scc-preferences.scc-mobile-sheet .scc-category-toggle {
        transform: scale(1.1);
    }
    
    .scc-preferences.scc-mobile-sheet .scc-preferences-footer {
        padding: 16px 20px;
        gap: 10px;
    }
    
    .scc-preferences.scc-mobile-sheet .scc-preferences-footer .scc-btn {
        flex: 1;
        min-height: 48px;
        font-size: 15px;
    }
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
    .scc-btn {
        min-height: 44px;
    }
    
    .scc-category-header {
        min-height: 56px;
    }
    
    .scc-category-toggle input[type="checkbox"] {
        width: 52px;
        height: 32px;
    }
    
    .scc-category-toggle input[type="checkbox"]::before {
        width: 26px;
        height: 26px;
    }
    
    .scc-close-btn {
        min-width: 44px;
        min-height: 44px;
    }
}
