/**
 * @file
 * Styles for footer blocks.
 */

/* ==========================================================================
   Footer Logo Block
   ========================================================================== */

.footer-logo-block {
  display: flex;
  flex-direction: column;
}

.footer-logo-block--align-left {
  align-items: flex-start;
}

.footer-logo-block--align-center {
  align-items: center;
}

.footer-logo-block--align-right {
  align-items: flex-end;
}

/* Tablet/iPad responsive alignment (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .footer-logo-block--align-tablet-left {
    align-items: flex-start !important;
  }
  .footer-logo-block--align-tablet-center {
    align-items: center !important;
  }
  .footer-logo-block--align-tablet-right {
    align-items: flex-end !important;
  }
}

/* Mobile responsive alignment (below 768px) */
@media (max-width: 767px) {
  .footer-logo-block--align-mobile-left {
    align-items: flex-start !important;
  }
  .footer-logo-block--align-mobile-center {
    align-items: center !important;
  }
  .footer-logo-block--align-mobile-right {
    align-items: flex-end !important;
  }
}

.footer-logo-block__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.footer-logo-block__link:hover {
  opacity: 0.8;
}

.footer-logo-block__image {
  display: block;
  height: auto;
  max-width: 100%;
}

.footer-logo-block__site-name {
  font-weight: 600;
  color: #FFFFFF;
}

/* ==========================================================================
   Footer Menu Block
   ========================================================================== */

.footer-menu-block {
  color: var(--footer-menu-text-color, #FFFFFF);
}

.footer-menu-block--align-left {
  text-align: left;
}

.footer-menu-block--align-center {
  text-align: center;
}

.footer-menu-block--align-right {
  text-align: right;
}

/* Tablet/iPad responsive alignment (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .footer-menu-block--align-tablet-left {
    text-align: left !important;
  }
  .footer-menu-block--align-tablet-center {
    text-align: center !important;
  }
  .footer-menu-block--align-tablet-right {
    text-align: right !important;
  }
}

/* Mobile responsive alignment (below 768px) */
@media (max-width: 767px) {
  .footer-menu-block--align-mobile-left {
    text-align: left !important;
  }
  .footer-menu-block--align-mobile-center {
    text-align: center !important;
  }
  .footer-menu-block--align-mobile-right {
    text-align: right !important;
  }
}

.footer-menu-block__heading {
  margin: 0 0 16px 0;
  font-size: var(--footer-menu-heading-font-size, 16px);
  font-weight: 600;
  color: var(--footer-menu-heading-color, #FFFFFF);
  letter-spacing: 0.5px;
}

.footer-menu-block__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu-block__item {
  margin-bottom: 8px;
}

.footer-menu-block__item:last-child {
  margin-bottom: 0;
}

.footer-menu-block__link {
  color: var(--footer-menu-text-color, #FFFFFF);
  text-decoration: none;
  font-size: var(--footer-menu-font-size, 14px);
  line-height: 1.5;
  transition: color 0.2s ease;
}

.footer-menu-block__link:hover {
  color: var(--footer-menu-hover-color, #E5E7EB);
}

/* Link styles */
.footer-menu-block--style-underline .footer-menu-block__link {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-menu-block--style-bold-hover .footer-menu-block__link:hover {
  font-weight: 600;
}

/* Submenu */
.footer-menu-block__submenu {
  list-style: none;
  margin: 8px 0 0 16px;
  padding: 0;
}

.footer-menu-block__subitem {
  margin-bottom: 4px;
}

.footer-menu-block__sublink {
  color: var(--footer-menu-text-color, #FFFFFF);
  text-decoration: none;
  font-size: 13px;
  opacity: 0.8;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-menu-block__sublink:hover {
  opacity: 1;
  color: var(--footer-menu-hover-color, #E5E7EB);
}

/* ==========================================================================
   Footer Social Block
   ========================================================================== */

.footer-social-block {
  --footer-social-icon-size: 24px;
  --footer-social-spacing: 16px;
}

.footer-social-block--align-left {
  text-align: left;
}

.footer-social-block--align-center {
  text-align: center;
}

.footer-social-block--align-right {
  text-align: right;
}

/* Tablet/iPad responsive alignment (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .footer-social-block--align-tablet-left {
    text-align: left !important;
  }
  .footer-social-block--align-tablet-center {
    text-align: center !important;
  }
  .footer-social-block--align-tablet-right {
    text-align: right !important;
  }
}

/* Mobile responsive alignment (below 768px) */
@media (max-width: 767px) {
  .footer-social-block--align-mobile-left {
    text-align: left !important;
  }
  .footer-social-block--align-mobile-center {
    text-align: center !important;
  }
  .footer-social-block--align-mobile-right {
    text-align: right !important;
  }
}

.footer-social-block__heading {
  margin: 0 0 16px 0;
  font-size: var(--footer-social-heading-font-size, 16px);
  font-weight: 600;
  color: var(--footer-social-text-color, #FFFFFF);
  letter-spacing: 0.5px;
}

.footer-social-block__list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--footer-social-spacing, 16px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-social-block__item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social-block__link {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--footer-social-icon-size, 24px);
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-social-block__link i {
  color: var(--footer-social-icon-color, #FFFFFF);
  transition: color 0.2s ease;
}

.footer-social-block__link:hover {
  transform: scale(1.1);
}

.footer-social-block__link:hover i {
  color: var(--footer-social-hover-color, #E5E7EB);
}

/* Icon styles */
.footer-social-block--style-circle .footer-social-block__link,
.footer-social-block--style-square .footer-social-block__link,
.footer-social-block--style-rounded .footer-social-block__link {
  width: calc(var(--footer-social-icon-size, 24px) + 16px);
  height: calc(var(--footer-social-icon-size, 24px) + 16px);
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-social-block--style-circle .footer-social-block__link {
  border-radius: 50%;
}

.footer-social-block--style-square .footer-social-block__link {
  border-radius: 0;
}

.footer-social-block--style-rounded .footer-social-block__link {
  border-radius: 8px;
}

.footer-social-block--style-circle .footer-social-block__link:hover,
.footer-social-block--style-square .footer-social-block__link:hover,
.footer-social-block--style-rounded .footer-social-block__link:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Footer Newsletter Block
   ========================================================================== */

.footer-newsletter-block {
  color: var(--footer-newsletter-text-color, #FFFFFF);
}

.footer-newsletter-block--align-left {
  text-align: left;
}

.footer-newsletter-block--align-center {
  text-align: center;
}

.footer-newsletter-block--align-right {
  text-align: right;
}

/* Tablet/iPad responsive alignment (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .footer-newsletter-block--align-tablet-left {
    text-align: left !important;
  }
  .footer-newsletter-block--align-tablet-left .footer-newsletter-block__form {
    margin: 0 !important;
  }
  .footer-newsletter-block--align-tablet-center {
    text-align: center !important;
  }
  .footer-newsletter-block--align-tablet-center .footer-newsletter-block__form {
    margin: 0 auto !important;
  }
  .footer-newsletter-block--align-tablet-right {
    text-align: right !important;
  }
  .footer-newsletter-block--align-tablet-right .footer-newsletter-block__form {
    margin-left: auto !important;
  }
}

/* Mobile responsive alignment (below 768px) */
@media (max-width: 767px) {
  .footer-newsletter-block--align-mobile-left {
    text-align: left !important;
  }
  .footer-newsletter-block--align-mobile-left .footer-newsletter-block__form {
    margin: 0 !important;
  }
  .footer-newsletter-block--align-mobile-center {
    text-align: center !important;
  }
  .footer-newsletter-block--align-mobile-center .footer-newsletter-block__form {
    margin: 0 auto !important;
  }
  .footer-newsletter-block--align-mobile-right {
    text-align: right !important;
  }
  .footer-newsletter-block--align-mobile-right .footer-newsletter-block__form {
    margin-left: auto !important;
  }
}

.footer-newsletter-block__heading {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.5px;
}

.footer-newsletter-block__description {
  margin: 0 0 16px 0;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.9;
}

.footer-newsletter-block__form {
  max-width: 400px;
}

.footer-newsletter-block--align-center .footer-newsletter-block__form {
  margin: 0 auto;
}

.footer-newsletter-block--align-right .footer-newsletter-block__form {
  margin-left: auto;
}

.footer-newsletter-block__input-wrapper {
  position: relative;
}

/* .footer-newsletter-block--input-rounded .footer-newsletter-block__input-wrapper {
  border-radius: 8px;
  overflow: hidden;
}

.footer-newsletter-block--input-pill .footer-newsletter-block__input-wrapper {
  border-radius: 50px;
  overflow: hidden;
} */

.footer-newsletter-block__input {
  padding: 12px 16px;
  font-size: 14px;
  border: 0;
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  width: 100%;
  border-radius: 50px !important;
}

.footer-newsletter-block__input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.footer-newsletter-block__input:focus {
  border-color: rgba(255, 255, 255, 0.6);
  background-color: rgba(255, 255, 255, 0.15);
}

.footer-newsletter-block--input-default .footer-newsletter-block__input {
  border-radius: 4px;
}

.footer-newsletter-block--input-rounded .footer-newsletter-block__input,
.footer-newsletter-block--input-pill .footer-newsletter-block__input {
  border-radius: 0;
  border-right: none;
}

.footer-newsletter-block__button {
  position: absolute;
  right: 0px;
  top: 50%;
  background-color: var(--footer-newsletter-button-color, #FFFFFF);
  border-radius: 50% !important;
  border: 0 !important;
  transform: translate(0%, -50%);
}


.footer-newsletter-block__button:hover {
  opacity: 0.9;
}

.footer-newsletter-block__button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.footer-newsletter-block--input-default .footer-newsletter-block__button {
  border-radius: 4px;
}

.footer-newsletter-block--input-rounded .footer-newsletter-block__button,
.footer-newsletter-block--input-pill .footer-newsletter-block__button {
  border-radius: 0;
}

/* Button styles */
.footer-newsletter-block--btn-icon .footer-newsletter-block__button {
  padding: 12px 14px;
}

.footer-newsletter-block--btn-separate .footer-newsletter-block__input-wrapper {
  flex-direction: column;
  gap: 12px;
}

.footer-newsletter-block--btn-separate .footer-newsletter-block__input {
  border-radius: 4px;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-newsletter-block--btn-separate .footer-newsletter-block__button {
  border-radius: 4px;
  width: 100%;
}

.footer-newsletter-block__button--loading {
  position: relative;
}

.footer-newsletter-block__button--loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: footer-newsletter-spin 0.8s linear infinite;
}

@keyframes footer-newsletter-spin {
  to {
    transform: rotate(360deg);
  }
}

.footer-newsletter-block__message {
  margin-top: 12px;
  font-size: 14px;
  min-height: 20px;
}

.footer-newsletter-block__message--success {
  color: #10B981;
}

.footer-newsletter-block__message--error {
  color: #EF4444;
}

/* ==========================================================================
   Footer Copyright Block
   ========================================================================== */

.footer-copyright-block {
  padding: 16px 0;
  font-size: 14px;
  line-height: 1.5;
}

.footer-copyright-block--align-left {
  text-align: left;
}

.footer-copyright-block--align-center {
  text-align: center;
}

.footer-copyright-block--align-right {
  text-align: right;
}

.footer-copyright-block__content {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: inherit;
  align-items: center;
}

.footer-copyright-block--align-center .footer-copyright-block__content {
  justify-content: center;
}

.footer-copyright-block--align-right .footer-copyright-block__content {
  justify-content: flex-end;
}

.footer-copyright-block__text {
  display: inline;
}

.footer-copyright-block__links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.footer-copyright-block__separator {
  opacity: 0.5;
}

.footer-copyright-block__link {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-copyright-block__link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.footer-copyright-block__additional {
  margin-top: 8px;
  opacity: 0.8;
}

/* ==========================================================================
   Footer Contact Block
   ========================================================================== */

.footer-contact-block {
  display: flex;
  flex-direction: column;
}

.footer-contact-block--align-left {
  align-items: flex-start;
}

.footer-contact-block--align-center {
  align-items: center;
  text-align: center;
}

.footer-contact-block--align-right {
  align-items: flex-end;
  text-align: right;
}

/* Tablet/iPad responsive alignment (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .footer-contact-block--align-tablet-left {
    align-items: flex-start !important;
    text-align: left !important;
  }
  .footer-contact-block--align-tablet-center {
    align-items: center !important;
    text-align: center !important;
  }
  .footer-contact-block--align-tablet-right {
    align-items: flex-end !important;
    text-align: right !important;
  }
}

/* Mobile responsive alignment (below 768px) */
@media (max-width: 767px) {
  .footer-contact-block--align-mobile-left {
    align-items: flex-start !important;
    text-align: left !important;
  }
  .footer-contact-block--align-mobile-center {
    align-items: center !important;
    text-align: center !important;
  }
  .footer-contact-block--align-mobile-right {
    align-items: flex-end !important;
    text-align: right !important;
  }
}

.footer-contact-block__heading {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.5px;
}

.footer-contact-block__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-contact-block__button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 768px) {

  .footer-menu-block__heading,
  .footer-social-block__heading,
  .footer-newsletter-block__heading,
  .footer-contact-block__heading {
    font-size: 14px;
  }

  .footer-menu-block__link {
    font-size: 13px;
  }

  .footer-newsletter-block__input-wrapper {
    flex-direction: column;
    gap: 12px;
  }

  .footer-copyright-block__content {
    flex-direction: column;
    gap: 4px;
  }

  .footer-copyright-block__links {
    justify-content: center;
  }
}

/* ==========================================================================
   Trustpilot Widget Block
   ========================================================================== */

.trustpilot-widget-block {
  display: flex;
  flex-direction: column;
}

.trustpilot-widget-block--align-left {
  align-items: flex-start;
}

.trustpilot-widget-block--align-center {
  align-items: center;
}

.trustpilot-widget-block--align-right {
  align-items: flex-end;
}

/* Tablet/iPad responsive alignment (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .trustpilot-widget-block--align-tablet-left {
    align-items: flex-start !important;
  }
  .trustpilot-widget-block--align-tablet-center {
    align-items: center !important;
  }
  .trustpilot-widget-block--align-tablet-right {
    align-items: flex-end !important;
  }
}

/* Mobile responsive alignment (below 768px) */
@media (max-width: 767px) {
  .trustpilot-widget-block--align-mobile-left {
    align-items: flex-start !important;
  }
  .trustpilot-widget-block--align-mobile-center {
    align-items: center !important;
  }
  .trustpilot-widget-block--align-mobile-right {
    align-items: flex-end !important;
  }
}

.trustpilot-widget-block__inner {
  width: 100%;
}

.trustpilot-widget-block__title {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: inherit;
}

.trustpilot-widget-block__title--inside {
  margin-bottom: 12px;
}

.trustpilot-widget-container {
  width: 100%;
}

.trustpilot-fallback {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trustpilot-stars {
  display: flex;
  gap: 2px;
}

.trustpilot-text {
  margin: 4px 0 0 0;
  font-size: 14px;
  color: #6B7280;
}