/**
 * Fraudswatch Privacy Guard - Banner Styles
 */

/* General Banner & Modal Styles */
.fpg-hidden {
    display: none !important;
}

#fpg-banner, #fpg-customize-modal {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    color: #333;
    line-height: 1.6;
}

#fpg-banner {
    background-color: #fff;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    padding: 20px;
    position: fixed;
    z-index: 99999;
    transition: transform 0.3s ease-in-out;
}

.fpg-banner-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
}

.fpg-banner-content p {
    margin: 0;
    font-size: 14px;
}

.fpg-button-group {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.fpg-button {
    background-color: #0073e6;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.fpg-button:hover {
    background-color: #005bb5;
}

#fpg-decline {
    background-color: #e9e9e9;
    color: #333;
}
#fpg-decline:hover {
    background-color: #d1d1d1;
}

/* Display Style: Bottom Banners */
.fpg-bottom-left, .fpg-bottom-right {
    bottom: 20px;
    width: calc(100% - 40px);
    max-width: 480px;
    border-radius: 8px;
    transform: translateY(200%);
}
.fpg-bottom-left.fpg-visible, .fpg-bottom-right.fpg-visible {
    transform: translateY(0);
}

.fpg-bottom-left {
    left: 20px;
}
.fpg-bottom-right {
    right: 20px;
}

@media (min-width: 600px) {
    .fpg-bottom-left .fpg-button-group, .fpg-bottom-right .fpg-button-group {
        justify-content: flex-end;
    }
}

/* Display Style: Modal */
.fpg-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: calc(100% - 40px);
    max-width: 500px;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}
.fpg-modal.fpg-visible {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Customize Modal */
#fpg-customize-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100000;
}

.fpg-modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    width: calc(100% - 40px);
    max-width: 550px;
    position: relative;
}

.fpg-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #888;
}

.fpg-modal-content h4 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
}

.fpg-category {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}
.fpg-category:last-of-type {
    border-bottom: none;
}

.fpg-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}
.fpg-category p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* Toggle Switch Styles */
.fpg-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.fpg-switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.fpg-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.fpg-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .fpg-slider {
  background-color: #0073e6;
}

input:checked + .fpg-slider:before {
  transform: translateX(20px);
}

#fpg-save-preferences {
    margin-top: 20px;
    width: 100%;
}

/* Floating "Manage Consent" Button */
#fpg-manage-consent-button {
    position: fixed;
    bottom: 15px;
    left: 15px;
    background-color: #0073e6;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

