:root {
  --color-red: #E21C1D;
  --color-blue: #2F5AA0;
  --color-white: #FFFFFF;
  --color-dark: #333333;
  --color-light: #F5F5F5;
  --footer-gap: 65px;
  --footer-top-pad: 20px;
}

main,
.content,
#content {
  margin-bottom: calc(var(--footer-gap) - var(--footer-top-pad)) !important;
}

footer,
.custom-footer {
  padding-top: var(--footer-top-pad) !important;
  margin-top: 0 !important;
  border-top: 0 !important;
  box-shadow: none !important;
  background-image: none !important;
}

footer hr,
footer .top-line,
footer .footer-line,
footer .footer__line {
  display: none !important;
}

body,
button,
input,
select,
textarea,
a,
p,
li {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--color-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif !important;
  color: var(--color-blue) !important;
}

.btn,
.btn span {
  background-color: var(--color-red) !important;
  color: var(--color-white) !important;
  font-family: 'Source Sans 3', sans-serif !important;
  font-weight: 400 !important;
  font-size: 12px !important;
  border-radius: 14px !important; 
  border-color: transparent !important;
}

button:hover,
.btn:hover,
input[type="submit"]:hover,
a.btn:hover {
  background-color: #b01617 !important;
}

.custom-color-buttons,
.custom-size-buttons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.variant-color-btn,
.variant-size-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #ccc;
  cursor: pointer;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 400;
  font-size: 12px;
  transition: all 0.3s ease;
  user-select: none;
}

.variant-color-btn {
  background-color: transparent;
  text-indent: -9999px;
}

.variant-size-btn {
  background-color: transparent;
  color: var(--color-dark);
}

.variant-color-btn.active,
.variant-size-btn.active {
  border: 2px solid var(--color-blue);
  box-shadow: 0 0 0 2px white;
}

input[type="submit"] span,
a.btn span,
.shp-button span {
  color: var(--color-white) !important;
  background-color: transparent !important;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 400;
  font-size: 12px;
}

a {
  color: var(--color-blue);
}
a:hover {
  text-decoration: underline;
}

.shp-tabs-row,
.flag-freeshipping {
  display: none !important;
}

.flags-default .flag {
  display: none !important;
}

.flags-default .flag.flag-action {
  display: inline-block !important;
}

ul.subcategories.with-image {
  display: none !important;
}

.social-buttons-wrapper {
  display: none !important;
}

.btn.toggle-window,
.next-step-back {
  background-color: transparent !important;
  color: var(--color-dark) !important;
  font-weight: normal;
}

.btn.toggle-window span,
.next-step-back span {
  color: var(--color-dark) !important;
  background-color: transparent !important;
  font-weight: normal !important;
  font-size: 12px;
}

.extended-banner-wrapper,
.extended-banner-texts,
.mousetrap {
  background: transparent !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

#cboxNext,
#cboxPrevious,
#cboxClose {
  background-color: transparent !important;
  color: white !important;
  border: none !important;
  font-weight: normal !important;
  box-shadow: none !important;
}

.section-light,
.bg-light,
.container.footer-newsletter {
  background-color: var(--color-light);
}

#categories li::before,
li::before {
  content: none !important;
  display: none !important;
}

.custom-footer__categories h4,
.custom-footer__contact h4 {
  color: var(--color-blue) !important;
}

.flag.flag-action {
  background-color: var(--color-red) !important;
  color: white !important;
}
.flag.flag-action::before,
.flag.flag-action::after {
  background-color: var(--color-red) !important;
  color: var(--color-red) !important;
  border-color: var(--color-red) !important;
}

.container.footer-newsletter {
  color: white;
}
.container.footer-newsletter h4,
.container.footer-newsletter p,
.container.footer-newsletter label,
.container.footer-newsletter a {
  color: white;
}
.container.footer-newsletter input[type="email"] {
  background-color: white;
  color: black;
  border: none;
  padding: 10px;
}
.container.footer-newsletter button.btn {
  background-color: #0452c4;
  color: white;
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  transition: background-color 0.3s;
}
.container.footer-newsletter button.btn:hover {
  background-color: #001a4d;
}
.container.footer-newsletter button.btn .sr-only {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
}

.homepage-group-title {
  display: block !important;
  margin: 40px 0 20px;
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  color: var(--color-blue);
}

.faq-item {
  margin-bottom: 20px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
}

.faq-question {
  all: unset;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-blue);
  transition: color 0.3s;
  background-color: transparent !important;
}

.faq-question:hover {
  color: #1e3f75;
  background-color: transparent !important;
}

.faq-question .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
  font-size: 18px;
}

.faq-question.open .arrow {
  transform: rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  font-size: 15px;
  line-height: 1.6;
  margin-top: 10px;
  color: #333;
}

.size-guide {
  padding: 20px;
  background-color: var(--color-white);
  border-radius: 8px;
  max-width: 100%;
  overflow-x: auto;
  margin-top: 30px;
}

.size-guide h2 {
  font-size: 28px;
  margin-bottom: 15px;
  color: var(--color-blue);
  font-weight: bold;
}

.size-guide p {
  margin-bottom: 20px;
  font-size: 16px;
  color: var(--color-dark);
}

.size-guide {
  font-size: 13px;
  margin-top: 15px;
  color: #777;
  font-style: italic;
}

.size-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  text-align: center;
}

.size-table thead th {
  padding: 12px 10px;
  font-weight: bold;
  color: var(--color-dark);
  font-size: 14px;
  border-bottom: 2px solid #eee;
  font-family: 'Playfair Display', serif !important;
}

.size-table tbody td {
  padding: 12px 10px;
  font-size: 14px;
  color: var(--color-dark);
}

.size-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.size-table tbody tr:nth-child(odd) {
  background-color: transparent;
}

.size-table th,
.size-table td {
  border: none;
}

.size-note {
  font-size: 10px !important;
  margin-top: 25px;
  color: #777;
  font-style: italic;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  position: relative;
  background-color: var(--color-white);
  padding: 30px;
  border-radius: 10px;
  max-width: 90%;
  max-height: 90%;
  overflow-y: auto;
}

.modal-content h2 {
  font-size: 32px;
  font-family: 'Playfair Display', serif;
  font-weight: bold;
  color: var(--color-red);
  margin-bottom: 15px;
}

.modal-content > p {
  font-size: 17px;
  color: var(--color-dark);
  margin-bottom: 20px;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  z-index: 10000;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--color-dark);
}

@media (max-width: 768px) {
  .custom-footer__categories #categories {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .custom-footer__categories ul {
    text-align: left;
  }

  .social-icons {
    justify-content: center !important;
  }

  .custom-footer__articles > div {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .custom-footer__articles > div > div:last-child > div {
    display: flex !important;
    justify-content: center !important;
  }
}
