/**
 * 2007-2026 PrestaShop and Contributors
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License version 3.0.
 *
 * © MORPHOTEC
 * Licensed to and distributed by armorpho
 *
 * @author    MORPHOTEC
 * @copyright 2026 MORPHOTEC
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
 */
.wbp-public-link {
  margin: 10px 0 0;
  text-align: center;
  line-height: 1;
}

.wbp-public-link--floating {
  position: fixed !important;
  z-index: 9999;
  bottom: calc(var(--wbp-bottom, 68px) + var(--wbp-cookie-offset, 0px) + env(safe-area-inset-bottom, 0px)) !important;
  margin: 0;
  line-height: 0;
}

.wbp-public-link--floating.wbp-public-link--left {
  left: var(--wbp-side, 0px) !important;
  right: auto !important;
  transform: none !important;
}

.wbp-public-link--floating.wbp-public-link--center {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
}

.wbp-public-link--floating.wbp-public-link--right {
  left: auto !important;
  right: var(--wbp-side, 72px) !important;
  transform: none !important;
}

.wbp-public-link:not(.wbp-public-link--floating).wbp-public-link--left {
  text-align: left;
}

.wbp-public-link:not(.wbp-public-link--floating).wbp-public-link--center {
  text-align: center;
}

.wbp-public-link:not(.wbp-public-link--floating).wbp-public-link--right {
  text-align: right;
}

.wbp-link {
  align-items: center;
  background: var(--wbp-color, #ff4013);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  box-sizing: border-box;
  color: var(--wbp-text-color, #ffffff);
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin: 0;
  max-width: min(var(--wbp-width, auto), calc(100vw - 16px));
  min-height: 38px;
  min-width: 0;
  opacity: 0.96;
  padding: 9px 14px;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
  width: var(--wbp-width, auto);
}

.wbp-public-link--floating .wbp-link {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  vertical-align: bottom;
}

.wbp-link:hover {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.24);
  opacity: 1;
  text-decoration: none;
  transform: translateY(-1px);
}

.wbp-public-link--floating .wbp-link:hover {
  transform: none;
}

.wbp-link--small {
  font-size: 12px;
  min-height: 36px;
  padding: 8px 12px;
}

.wbp-link--normal {
  font-size: 13px;
  min-height: 38px;
  padding: 9px 14px;
}

.wbp-link--large {
  font-size: 14px;
  min-height: 42px;
  padding: 10px 16px;
}

.wbp-public-link--text .wbp-link {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--wbp-color, #ff4013) !important;
  min-height: auto;
  padding: 0 !important;
  text-decoration: underline;
  width: auto;
}

.wbp-withdrawal-page {
  margin-bottom: 2rem;
}

.wbp-form .form-group {
  margin-bottom: 1rem;
}

.wbp-legal p:last-child {
  margin-bottom: 0;
}

.wbp-intro,
.wbp-notice {
  margin-bottom: 1rem;
}

#wbp-account-link .material-icons {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 575px) {
  .wbp-public-link--floating.wbp-public-link--left {
    left: min(var(--wbp-side, 0px), 12px) !important;
    right: auto !important;
    transform: none !important;
  }

  .wbp-public-link--floating.wbp-public-link--right {
    left: auto !important;
    right: min(var(--wbp-side, 0px), 12px) !important;
    transform: none !important;
  }

  .wbp-public-link--floating.wbp-public-link--center {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
  }

  .wbp-public-link--floating .wbp-link {
    font-size: 13px;
    line-height: 1.15;
    max-width: calc(100vw - 16px) !important;
    min-height: 38px;
    overflow: hidden;
    padding-left: 12px !important;
    padding-right: 12px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: auto;
  }
}

.wbp-legal {
  background-color: var(--wbp-notice-bg, #d9edf7) !important;
  color: var(--wbp-notice-text, #31708f) !important;
}

.wbp-legal a {
  color: var(--wbp-notice-link, #00aff0) !important;
}


/* Strong fixed-position guard for PrestaShop 9 / Hummingbird theme containers. */
.wbp-public-link--floating {
  display: block !important;
  float: none !important;
  clear: none !important;
  width: auto !important;
  max-width: calc(100vw - 16px) !important;
}

.wbp-public-link--floating.wbp-public-link--left {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.wbp-public-link--floating.wbp-public-link--right {
  margin-left: 0 !important;
  margin-right: 0 !important;
}


/* Keep the floating button relative to the viewport after it is moved to body by front.js. */
body > .wbp-public-link--floating.wbp-public-link--left {
  left: var(--wbp-side, 0px) !important;
  right: auto !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
  transform: none !important;
}

body > .wbp-public-link--floating.wbp-public-link--right {
  left: auto !important;
  right: var(--wbp-side, 0px) !important;
  margin-right: 0 !important;
  padding-right: 0 !important;
  transform: none !important;
}

body > .wbp-public-link--floating.wbp-public-link--center {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
}
