/**
 * UW Cookie Consent - Cookie banner styles
 */

/* Main banner */
#uw-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #130f0d;
    color: #ebdec2;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    z-index: 999999;
    animation: uw-cookie-slide-up 0.3s ease-out;
    border-top: 2px solid #352e2b;
}

@keyframes uw-cookie-slide-up {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#uw-cookie-banner.uw-cookie-hide {
    animation: uw-cookie-slide-down 0.3s ease-in forwards;
}

@keyframes uw-cookie-slide-down {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* Main content */
.uw-cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.uw-cookie-text {
    flex: 1;
    min-width: 300px;
}

.uw-cookie-text h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #d79602;
}

.uw-cookie-text p {
    margin: 0 0 8px 0;
    line-height: 1.5;
    color: #ebdec2;
}

.uw-cookie-link {
    text-decoration: none;
    transition: color 0.2s;
}

/* Botones */
.uw-cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.uw-cookie-btn {
    padding: 12px 24px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    color: #ebdec2;
    white-space: nowrap;
}

.uw-cookie-btn-accept {
    background: linear-gradient(135deg, #839309 0%, #839309 100%);
    color: #fff;
}

.uw-cookie-btn-accept:hover {
    background: linear-gradient(135deg, #96a80a 0%, #b0c40e 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(131, 147, 9, 0.5);
    transition: .5s;
}

.uw-cookie-btn-reject {
    background: hsla(0, 0%, 100%, 0.05);
    color: #ebdec2;
    transition: .5s;
}

.uw-cookie-btn-reject:hover {
    background: hsla(0, 0%, 100%, 0.1);
    color: #fff;
}

.uw-cookie-btn-customize {
    background: hsla(0, 0%, 100%, 0.05);
    color: #ebdec2;
    transition: .5s;
}

.uw-cookie-btn-customize:hover {
    background: hsla(0, 0%, 100%, 0.1);
    color: #fff;
}

.uw-cookie-btn-save {
    background: hsla(0, 0%, 100%, 0.05);
    color: #ebdec2;
    transition: .5s;
}

.uw-cookie-btn-save:hover {
    background: hsla(0, 0%, 100%, 0.1);
    color: #ebdec2;
    transform: translateY(-2px);
}

/* Panel de detalles */
.uw-cookie-details {
    max-width: 1200px;
    margin: 20px auto 0;
    padding-top: 20px;
    border-top: 2px solid #352e2b;
}

.uw-cookie-category {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    margin-bottom: 10px;
}

.uw-cookie-category label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.uw-cookie-category input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #1a1512;
    border: 2px solid #352e2b;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.uw-cookie-category input[type="checkbox"]:checked {
    background: #839309;
    border-color: #839309;
}

.uw-cookie-category input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

.uw-cookie-category input[type="checkbox"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.uw-cookie-cat-name {
    color: #ffffff;
}

.uw-cookie-category p {
    margin: 8px 0 0 30px;
    color: #ebdec2;
    line-height: 1.4;
}

.uw-cookie-actions-detail {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    #uw-cookie-banner {
        padding: 15px;
    }

    .uw-cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .uw-cookie-text {
        min-width: auto;
    }

    .uw-cookie-actions {
        width: 100%;
        justify-content: center;
    }

    .uw-cookie-btn {
        padding: 10px 18px;
        font-size: 13px;
    }

    .uw-cookie-category {
        padding: 12px 15px;
    }

    .uw-cookie-category p {
        margin-left: 30px;
    }
}

@media (max-width: 480px) {
    .uw-cookie-actions {
        flex-direction: column;
    }

    .uw-cookie-btn {
        width: 100%;
    }
}

/* Cookie declaration page (cookies.php) */
.uw-cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0 25px 0;
}

.uw-cookie-table th,
.uw-cookie-table td {
    padding: 8px 15px;
    text-align: left;
    border-bottom: 1px solid #352e2b;
}

.uw-cookie-table th {
    background: hsla(0, 0%, 100%, 0.05);
    color: #fff;
    padding: 2px 15px;
}

.uw-cookie-table tr:hover {
    background: hsla(0, 0%, 100%, 0.05);
}

.uw-consent-buttons {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.uw-consent-buttons .btn-uw {
    padding: 12px 30px;
    min-width: 220px;
}
