.cosselie-popup__inner--join-tabs,
.cosselie-popup__inner--join-tabs *,
.cosselie-popup__inner--join-tabs *::before,
.cosselie-popup__inner--join-tabs *::after {
  box-sizing: border-box;
}

.cosselie-popup__inner--join-tabs .cosselie-popup__content {
  justify-content: center;
}

.cosselie-popup__inner--join-tabs h2 {
  margin-bottom: 14px !important;
}

.cosselie-join-subtitle {
  margin: 0 0 22px !important;
  color: #222 !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
}

/* Tabs layout only. Button appearance comes from .cosselie-btn. */
.cosselie-popup__inner--join-tabs .cosselie-join-tabs {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 0 0 22px !important;
}

.cosselie-popup__inner--join-tabs .cosselie-join-tabs>.cosselie-btn {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  justify-content: center !important;
  text-align: center !important;
  background: #fff !important;
  color: #000 !important;
  border-color: #000 !important;
  border: 1px solid #000 !important;
}
.cosselie-popup__inner--join-tabs .cosselie-join-tabs>.cosselie-btn:hover {
  background: #000 !important;
  color: #fff !important;
  border-color: #000 !important;
}
/* Viber tab only */
.cosselie-popup__inner--join-tabs .cosselie-join-tab--viber.cosselie-btn {
  background: #fff !important;
  border: 1px solid #7b35f0 !important;
  color: #7b35f0 !important;
}

.cosselie-popup__inner--join-tabs .cosselie-join-tab--viber.cosselie-btn:hover {
  color: #fff !important;
  background: #7b35f0 !important;
}

.cosselie-popup__inner--join-tabs .cosselie-join-tab--viber.cosselie-btn.is-active {
  background: #7b35f0 !important;
  border-color: #7b35f0 !important;
  color: #fff !important;
}

.cosselie-join-panel[hidden] {
  display: none !important;
}

/* Hide FluentForm standalone marketing block when JS marks it */
.cosselie-popup-fluent-hidden {
  display: none !important;
}

/* Extra fallback hides for FluentForm intro/section blocks */
.cosselie-popup__inner--join-tabs .ff-el-group.ff-custom_html,
.cosselie-popup__inner--join-tabs .ff-el-group.ff-el-section-break,
.cosselie-popup__inner--join-tabs .ff-custom_html,
.cosselie-popup__inner--join-tabs .ff-el-section-break,
.cosselie-popup__inner--join-tabs .ff-el-section-title,
.cosselie-popup__inner--join-tabs .ff-el-section-details {
  display: none !important;
}

/* FluentForm compact reset */
.cosselie-popup__inner--join-tabs .cosselie-popup-fluent-compact,
.cosselie-popup__inner--join-tabs .cosselie-popup-fluent-compact * {
  box-shadow: none !important;
}

.cosselie-popup__inner--join-tabs .cosselie-popup-fluent-compact,
.cosselie-popup__inner--join-tabs .cosselie-popup-fluent-compact .ff-default,
.cosselie-popup__inner--join-tabs .cosselie-popup-fluent-compact .ff-el-group,
.cosselie-popup__inner--join-tabs .cosselie-popup-fluent-compact .ff-el-input--content {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

/* Flatten FluentForm columns */
.cosselie-popup__inner--join-tabs .cosselie-popup-fluent-compact .ff-t-container,
.cosselie-popup__inner--join-tabs .cosselie-popup-fluent-compact .ff-t-cell,
.cosselie-popup__inner--join-tabs .cosselie-popup-fluent-compact .ff-el-row,
.cosselie-popup__inner--join-tabs .cosselie-popup-fluent-compact .ff-el-col {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.cosselie-popup__inner--join-tabs .cosselie-popup-fluent-compact .ff-el-group {
  margin-bottom: 14px !important;
}

.cosselie-popup__inner--join-tabs .cosselie-popup-fluent-compact .ff-el-input--label {
  display: none !important;
}

/* Email field */
.cosselie-popup__inner--join-tabs .cosselie-popup-fluent-compact input[type="email"],
.cosselie-popup__inner--join-tabs .cosselie-popup-fluent-compact input[type="text"],
.cosselie-popup__inner--join-tabs .cosselie-popup-fluent-compact .ff-el-form-control {
  display: block !important;
  width: 100% !important;
  height: 46px !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 0 15px !important;
  border: 1px solid #ddd !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #111 !important;
  font-size: 15px !important;
  line-height: 46px !important;
}

.cosselie-popup__inner--join-tabs .cosselie-popup-fluent-compact input::placeholder {
  color: #888 !important;
}

.cosselie-popup__inner--join-tabs .cosselie-popup-fluent-compact input[type="checkbox"] {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  margin: 3px 0 0 !important;
  padding: 0 !important;
  accent-color: #000 !important;
}

.fluentform .ff-el-tc label.ff_tc_label>span {
  padding-left: 3px;
}

.cosselie-popup__inner--join-tabs .cosselie-popup-fluent-compact .ff-el-form-check-label,
.cosselie-popup__inner--join-tabs .cosselie-popup-fluent-compact .ff-el-form-check-label span,
.cosselie-popup__inner--join-tabs .cosselie-popup-fluent-compact .ff-el-form-check-label a {
  color: #333 !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  text-align: left !important;
}

.cosselie-popup__inner--join-tabs .cosselie-popup-fluent-compact .ff-el-form-check-label a {
  color: #000 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

/* Submit layout only. Appearance comes from .cosselie-btn added by JS. */
.cosselie-popup__inner--join-tabs .cosselie-popup-fluent-compact .ff-btn-submit,
.cosselie-popup__inner--join-tabs .cosselie-popup-fluent-compact button[type="submit"],
.cosselie-popup__inner--join-tabs .cosselie-popup-fluent-compact input[type="submit"] {
  width: 100% !important;
  justify-content: center !important;
  text-align: center !important;
}

/* Viber panel */
.cosselie-viber-box {
  padding: 22px !important;
  border: 1px solid #eee !important;
  border-radius: 10px !important;
  background: #fafafa !important;
}

.cosselie-viber-box__label {
  display: inline-flex !important;
  margin-bottom: 12px !important;
  padding: 5px 10px !important;
  border-radius: 999px !important;
  background: #efe6ff !important;
  color: #7b35f0 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

.cosselie-viber-box h3 {
  margin: 0 0 8px !important;
  color: #111 !important;
  font-size: 20px !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
}

.cosselie-viber-box p {
  margin: 0 0 18px !important;
  color: #333 !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}

.cosselie-viber-box .cosselie-btn {
  width: 100% !important;
  justify-content: center !important;
  text-align: center !important;
}

/* Viber CTA only */
.cosselie-popup__inner--join-tabs .cosselie-viber-box__button.cosselie-btn {
  background: #7b35f0 !important;
  border: 1px solid #7b35f0 !important;
  color: #fff !important;
}

.cosselie-popup__inner--join-tabs .cosselie-viber-box__button.cosselie-btn:hover {
  background: #6632df !important;
  border-color: #6632df !important;
  color: #fff !important;
}

/* Mobile */
@media (max-width: 640px) {
  .cosselie-popup__inner--join-tabs .cosselie-popup__image {
    display: none !important;
  }

  .cosselie-popup__inner--join-tabs .cosselie-popup__content {
    padding: 32px 26px !important;
  }

  .cosselie-popup__inner--join-tabs h2 {
    font-size: 25px !important;
    line-height: 1.05 !important;
  }

  .cosselie-join-subtitle {
    font-size: 14px !important;
  }

  .cosselie-popup__inner--join-tabs .cosselie-join-tabs {
    gap: 8px !important;
  }
}

/* Active state only for the two tab buttons */
.cosselie-popup__inner--join-tabs [data-cosselie-tab="newsletter"].cosselie-btn.is-active {
  background: #000 !important;
  color: #fff !important;
}

.cosselie-popup__inner--join-tabs [data-cosselie-tab="viber"].cosselie-btn.is-active {
  background: #7b35f0 !important;
  border-color: #7b35f0 !important;
  color: #fff !important;
}

/* CommerceKit/wpautop cleanup */
.cosselie-popup__inner--join-tabs .cosselie-join-tabs br,
.cosselie-popup__inner--join-tabs .cosselie-join-tab br,
.cosselie-popup__inner--join-tabs .cosselie-viber-box__button br {
  display: none !important;
}

.cosselie-popup__inner--join-tabs .cosselie-join-tabs>p {
  display: contents !important;
  margin: 0 !important;
  padding: 0 !important;
}

.cosselie-popup__inner--join-tabs .cosselie-viber-box>p:empty {
  display: none !important;
}

.cosselie-popup__inner--join-tabs .cosselie-viber-box>p:has(.cosselie-viber-box__button) {
  display: contents !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ff-t-cell.ff-t-column-2 {
  height: 217px;
}