#divi-cookie-banner-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #111111 !important;
  color: #ffffff !important;
  padding: 20px 40px;
  z-index: 99999998 !important;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif !important;
}

.cookie-banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  gap: 30px;
}

.cookie-banner-text h3 {
  color: #ffffff !important;
  font-size: 14px;
  font-weight: bold;
  margin: 0 0 6px 0;
  letter-spacing: 0.5px;
}

.cookie-banner-text p {
  color: #bbbbbb !important;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.cookie-banner-text a {
  color: #ffffff !important;
  text-decoration: underline;
  font-weight: 500;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.cookie-banner-actions button {
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1px;
  padding: 12px 24px;
  cursor: pointer;
  box-sizing: border-box;
  text-transform: uppercase;
  transition: background-color 0.2s, color 0.2s;
}

.btn-banner-manage {
  background: none !important;
  border: none !important;
  color: #ffffff !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.btn-banner-manage:hover {
  text-decoration: underline;
}

.btn-banner-reject {
  background: none !important;
  border: 1px solid #ffffff !important;
  color: #ffffff !important;
}

.btn-banner-reject:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

.btn-banner-accept {
  background-color: #ffffff !important;
  border: 1px solid #ffffff !important;
  color: #111111 !important;
}

.btn-banner-accept:hover {
  background-color: #e5e5e5 !important;
  border-color: #e5e5e5 !important;
}

@media (max-width: 980px) {
  .cookie-banner-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .cookie-banner-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

#divi-cookie-modal-overlay {
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  background: rgba(0, 0, 0, 0.5) !important;
  z-index: 99999999 !important;
  display: flex;
  justify-content: center; 
  align-items: center; 
  padding: 20px; 
  box-sizing: border-box;
}

#divi-cookie-modal-overlay .cookie-preferences-card {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  padding: 40px;
  background-color: #ffffff !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif !important;
  box-sizing: border-box;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 0px;
  box-shadow: 0px 10px 40px rgba(0,0,0,0.3);
}

#divi-cookie-modal-overlay h2 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #767676;
  text-transform: uppercase;
  margin: 0 0 10px 0;
}

#divi-cookie-modal-overlay h1 {
  font-size: 32px;
  font-weight: 300;
  color: #111111;
  margin: 0 0 20px 0;
  line-height: 1.2;
}

.cookie-intro {
  font-size: 14px;
  line-height: 1.5;
  color: #444444;
  margin: 0 0 30px 0;
}

.cookie-rows-wrapper {
  border: 1px solid #e0e0e0;
  margin-bottom: 30px;
}

.cookie-accordion-item {
  border-bottom: 1px solid #e0e0e0;
}
.cookie-rows-wrapper .cookie-accordion-item:last-child {
  border-bottom: none;
}

.cookie-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center !important;
  padding: 16px 20px;
  background-color: #ffffff;
  transition: background-color 0.2s ease;
  min-height: 56px;
  box-sizing: border-box;
}

.cookie-toggle-row:hover {
  background-color: #FAF9F6 !important;
}

.cookie-accordion-item.is-open .cookie-toggle-row {
  background-color: #FAF9F6 !important;
}

.cookie-click-trigger {
  display: flex;
  align-items: center !important;
  gap: 15px;
  cursor: pointer;
  flex-grow: 1;
  padding-left: 10px !important;
}

.accordion-icon {
  font-size: 18px;
  font-weight: bold;
  color: #111111;
  width: 20px;
  text-align: center;
  user-select: none;
  line-height: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 0 !important;
}

.cookie-click-trigger h3 {
  font-size: 15px;
  font-weight: 600;
  color: #111111;
  margin: 0 !important;
  padding: 0 !important;
  line-height: normal !important;
  display: inline-flex;
  align-items: center;
}

.cookie-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
  background-color: #ECEBE5 !important;
  box-sizing: border-box;
}

.cookie-accordion-item.is-open .cookie-accordion-content {
  max-height: 1000px;
  padding: 20px;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0), padding 0.3s ease;
  border-top: 1px solid #e0e0e0;
}

.cookie-accordion-content p {
  font-size: 13px;
  line-height: 1.6;
  color: #444444;
  margin: 0;
}

.cookie-switch-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end !important;
  justify-content: center !important;
  gap: 4px;
  width: 76px !important;
  flex-shrink: 0;
  padding-right: 16px !important;
  box-sizing: border-box;
  margin: 0 !important;
}

.cookie-accordion-item:first-child .cookie-switch-side {
  width: auto !important;
  padding-left: 10px;
}

.always-active-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #111111;
  white-space: nowrap; 
  text-align: right;
  margin: 0 !important;
  padding: 0 !important;
  line-height: normal !important;
}

.square-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.square-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.square-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  transition: background-color 0.2s ease;
}

.square-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  top: 3px;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.square-switch input:not(:checked) + .square-slider {
  background-color: #ffffff !important;
  border: 2px solid #111111 !important;
}
.square-switch input:not(:checked) + .square-slider:before {
  background-color: #111111 !important;
  transform: translateX(0px) !important;
}

.square-switch input:checked + .square-slider {
  background-color: #111111 !important;
  border: 2px solid #111111 !important;
}
.square-switch input:checked + .square-slider:before {
  background-color: #ffffff !important;
  transform: translateX(18px) !important;
}

.switch-status-text {
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 0.5px;
  color: #111111;
  text-transform: uppercase;
  text-align: center;
  width: 100%;
}
.switch-status-text.status-off {
  color: #999999 !important;
}

.cookie-actions-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.btn-save-pref, .btn-reject-all {
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1px;
  padding: 16px 32px;
  cursor: pointer;
  box-sizing: border-box;
  text-transform: uppercase;
  transition: background-color 0.2s, color 0.2s;
}

.btn-save-pref {
  background-color: #111111;
  color: #ffffff;
  border: none;
  flex-grow: 1;
}
.btn-save-pref:hover {
  background-color: #333333;
}

.btn-reject-all {
  background-color: #ffffff;
  color: #111111;
  border: 1px solid #111111;
  flex-grow: 1;
}
.btn-reject-all:hover {
  background-color: #f5f5f5;
}

@media only screen and (max-width: 600px) {
  #divi-cookie-modal-overlay .cookie-preferences-card { padding: 20px; }
  .cookie-actions-row { flex-direction: column; gap: 10px; }
  .btn-save-pref, .btn-reject-all { width: 100%; text-align: center; }
}