/* Cookie Consent Screen - versandtaschen.shop v2.1.0 - Two-Stage Design */

/* Font Family für Cookie Consent */
.versandtaschen-cookie-banner,
.versandtaschen-cookie-settings-btn,
.versandtaschen-cookie-consent-overlay,
.versandtaschen-cookie-consent-modal,
.versandtaschen-cookie-consent-modal * {
    font-family: Helvetica, Arial, sans-serif;
}

/* ========================================
   SCHLANKER COOKIE BANNER (Erste Stufe)
   ======================================== */

.versandtaschen-cookie-banner {
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
    background: white !important;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1) !important;
    z-index: 999999 !important;
    display: none;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    animation: slideUp 0.4s ease;
}

.versandtaschen-cookie-banner.active {
    display: block !important;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.versandtaschen-cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 30px !important;
    flex-wrap: wrap;
}

.versandtaschen-cookie-banner-text {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    flex: 1;
    min-width: 300px;
}

.versandtaschen-cookie-banner-icon {
    font-size: 32px !important;
    line-height: 1 !important;
    flex-shrink: 0;
}

.versandtaschen-cookie-banner-text p {
    margin: 0 !important;
    padding: 0 !important;
    color: #333 !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
}

.versandtaschen-cookie-banner-buttons {
    display: flex !important;
    gap: 12px !important;
    flex-wrap: wrap;
    align-items: center !important;
}

.versandtaschen-cookie-banner-btn {
    padding: 12px 24px !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    font-family: Helvetica, Arial, sans-serif !important;
    
    /* Reset WordPress defaults */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    gap: 0 !important;
    min-height: auto !important;
    height: auto !important;
    outline: none !important;
    text-decoration: none !important;
    text-shadow: none !important;
    text-transform: none !important;
    text-align: center !important;
    line-height: 1.4 !important;
    vertical-align: middle !important;
    font-style: normal !important;
    box-shadow: none !important;
}

.versandtaschen-cookie-banner-btn-accept {
    background: #83b735 !important;
    color: white !important;
}

.versandtaschen-cookie-banner-btn-accept:hover {
    background: #6fa02a !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(131, 183, 53, 0.3) !important;
}

.versandtaschen-cookie-banner-btn-settings {
    background: #16396c !important;
    color: white !important;
}

.versandtaschen-cookie-banner-btn-settings:hover {
    background: #0f2a52 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 57, 108, 0.3) !important;
}

.versandtaschen-cookie-banner-btn-reject {
    background: transparent !important;
    color: #666 !important;
    border: 2px solid #ddd !important;
}

.versandtaschen-cookie-banner-btn-reject:hover {
    background: #f5f5f5 !important;
    border-color: #bbb !important;
    color: #333 !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .versandtaschen-cookie-banner-content {
        flex-direction: column;
        align-items: flex-start !important;
        padding: 20px !important;
    }
    
    .versandtaschen-cookie-banner-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .versandtaschen-cookie-banner-btn {
        width: 100%;
    }
}

/* ========================================
   COOKIE ICON (nach Auswahl)
   ======================================== */

/* Cookie Button unten links */
.versandtaschen-cookie-settings-btn {
    /* Position */
    position: fixed !important;
    bottom: 20px;
    left: 20px;
    z-index: 999998 !important;
    
    /* Size */
    width: 56px;
    height: 56px;
    min-height: 56px !important;
    
    /* Display */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    /* Appearance */
    background: #83b735 !important;
    background-color: #83b735 !important;
    border: none !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    
    /* Reset WordPress defaults */
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
    outline: none !important;
    vertical-align: middle !important;
    text-align: center !important;
    text-decoration: none !important;
    text-shadow: none !important;
    text-transform: none !important;
    line-height: 1 !important;
    font-weight: normal !important;
    font-family: Helvetica, Arial, sans-serif !important;
    font-style: normal !important;
    font-size: 0 !important;
    color: transparent !important;
    
    /* Interaction */
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.versandtaschen-cookie-settings-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    background: #83b735;
}

.versandtaschen-cookie-settings-btn svg {
    width: 28px;
    height: 28px;
    fill: white;
}

/* ========================================
   DETAILLIERTES MODAL (Zweite Stufe)
   ======================================== */

/* Cookie Consent Overlay */
.versandtaschen-cookie-consent-overlay {
    display: none;
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 999999 !important;
    animation: fadeIn 0.3s ease;
}

.versandtaschen-cookie-consent-overlay.active {
    display: flex !important;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 30px;
}

/* Cookie Consent Modal */
.versandtaschen-cookie-consent-modal {
    background: #ffffff;
    border-radius: 16px;
    max-width: 900px;
    width: 92%;
    max-height: fit-content;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

.versandtaschen-cookie-consent-header {
    padding: 24px 32px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.versandtaschen-cookie-consent-header h2 {
    margin: 0 0 8px 0;
    color: #16396c;
    font-size: 22px;
    font-weight: 600;
}

.versandtaschen-cookie-consent-header p {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
}

.versandtaschen-cookie-consent-body {
    padding: 20px 32px;
}

/* Cookie Category */
.versandtaschen-cookie-category {
    margin-bottom: 14px;
    padding: 14px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.versandtaschen-cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.versandtaschen-cookie-category-title {
    font-size: 15px;
    font-weight: 600;
    color: #16396c;
    margin: 0;
}

.versandtaschen-cookie-category-desc {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
    margin: 0;
}

/* Toggle Switch */
.versandtaschen-cookie-toggle-switch {
    position: relative;
    width: 48px;
    height: 24px;
}

.versandtaschen-cookie-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.versandtaschen-cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    transition: 0.3s;
    border-radius: 24px;
}

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

input:checked + .versandtaschen-cookie-toggle-slider {
    background-color: #83b735;
}

input:checked + .versandtaschen-cookie-toggle-slider:before {
    transform: translateX(24px);
}

input:disabled + .versandtaschen-cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.versandtaschen-cookie-always-active {
    font-size: 12px;
    color: #83b735;
    font-weight: 600;
}

/* Footer Buttons */
.versandtaschen-cookie-consent-footer {
    padding: 16px 32px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.versandtaschen-cookie-consent-btn {
    /* Display */
    display: block !important;
    align-items: unset !important;
    justify-content: unset !important;
    
    /* Size */
    width: 100% !important;
    padding: 12px 24px !important;
    min-height: auto !important;
    
    /* Appearance */
    border: none !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    
    /* Text */
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: Helvetica, Arial, sans-serif !important;
    font-style: normal !important;
    text-align: center !important;
    text-transform: none !important;
    text-decoration: none !important;
    text-shadow: none !important;
    line-height: 1.2 !important;
    vertical-align: middle !important;
    
    /* Reset */
    gap: 0 !important;
    outline: none !important;
    box-sizing: border-box !important;
    
    /* Interaction */
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.versandtaschen-cookie-consent-btn-primary {
    background: #83b735 !important;
    background-color: #83b735 !important;
    color: white !important;
    border: 2px solid #83b735 !important;
}

.versandtaschen-cookie-consent-btn-primary:hover {
    background: #739f2e !important;
    background-color: #739f2e !important;
    border-color: #739f2e !important;
    color: white !important;
}

.versandtaschen-cookie-consent-btn-secondary {
    background: #16396c !important;
    background-color: #16396c !important;
    color: white !important;
    border: 2px solid #16396c !important;
}

.versandtaschen-cookie-consent-btn-secondary:hover {
    background: #0f2850 !important;
    background-color: #0f2850 !important;
    border-color: #0f2850 !important;
    color: white !important;
}

.versandtaschen-cookie-consent-btn-outline {
    background: white;
    background-color: white;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.versandtaschen-cookie-consent-btn-outline:hover {
    background: #f9fafb;
    background-color: #f9fafb;
    border-color: #9ca3af;
    color: #6b7280;
}

.versandtaschen-cookie-links {
    text-align: center;
    margin-top: 8px;
    font-size: 12px;
}

.versandtaschen-cookie-links a {
    color: #16396c;
    text-decoration: none;
    margin: 0 8px;
}

.versandtaschen-cookie-links a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .versandtaschen-cookie-consent-modal {
        width: 95%;
        max-height: 85vh;
    }

    .versandtaschen-cookie-consent-header {
        padding: 20px 20px 16px;
    }

    .versandtaschen-cookie-consent-header h2 {
        font-size: 20px;
    }

    .versandtaschen-cookie-consent-body {
        padding: 16px 20px;
    }

    .versandtaschen-cookie-consent-footer {
        padding: 16px 20px 20px;
    }

    .versandtaschen-cookie-settings-btn {
        width: 48px;
        height: 48px;
        bottom: 16px;
        left: 16px;
    }

    .versandtaschen-cookie-settings-btn svg {
        width: 24px;
        height: 24px;
    }
}

/* Hide button when modal is active */
.versandtaschen-cookie-consent-overlay.active ~ .versandtaschen-cookie-settings-btn {
    display: none;
}
