/* Cookie Banner */
.ugiot-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: #fff;
    padding: 12px 16px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    text-align: right; /* align text to the right (RTL) */
    direction: rtl;
}

/* Layout: place text on the right and the button on the left */
.ugiot-cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
}

.ugiot-cookie-banner p {
    margin: 0;
    font-size: 14px; /* smaller font on the popup */
    line-height: 1.4;
}

.ugiot-cookie-banner a {
    color: #4CAF50;
}

.ugiot-cookie-buttons {
    flex: 0 0 auto; /* keep buttons sized to content at the left side */
}

.ugiot-cookie-buttons button {
    margin: 0;
    padding: 8px 16px; /* smaller button size */
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 14px; /* smaller font on the button */
}

/* On very small screens, allow wrapping so content doesn't overflow */
@media (max-width: 480px) {
    .ugiot-cookie-content {
        flex-wrap: wrap;
        row-gap: 8px;
    }
    .ugiot-cookie-buttons {
        order: -1; /* keep the button above when wrapping in RTL, still left side when single row */
    }
}

.ugiot-cookie-buttons .ugiot-btn-primary {
    background-color: #4CAF50;
    color: #fff;
}

.ugiot-cookie-buttons .ugiot-btn-secondary {
    background-color: #555;
    color: #fff;
}

.ugiot-cookie-buttons .ugiot-btn-tertiary {
    background-color: #f44336;
    color: #fff;
}

/* Cookie Settings Modal */
.ugiot-cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    direction: rtl;
}

.ugiot-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    text-align: right;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    color: #333;
}

.ugiot-modal-content h3 {
    margin-top: 0;
    text-align: center;
}

.ugiot-cookie-options label {
    display: block;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.ugiot-modal-buttons {
    margin-top: 20px;
    text-align: center;
}

.ugiot-modal-buttons button {
    margin: 5px;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

.ugiot-manage-cookies-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    padding: 10px;
    background-color: #4CAF50;
    color: #fff;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    z-index: 999;
}
