/* ==========================================================
   AMMON Connector - Public styles
   Catalogue + fiche formation
   ========================================================== */

.ammon-empty,
.ammon-error {
  padding: 18px 20px;
  border-radius: 14px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-weight: 700;
}

.ammon-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

/* ==========================================================
   Catalogue - Recherche
   ========================================================== */

.ammon-formations-search {
  margin: 0 0 28px;
  padding: 22px;
  border: 1px solid #e3e8f1;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 18px 45px rgba(14, 34, 75, 0.07);
}

.ammon-search-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
}

.ammon-search-header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  margin-top: 1px;
  border-radius: 13px;
  background: #eef5ff;
  color: #0e224b;
  font-size: 17px;
}

.ammon-search-header > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ammon-search-title {
  display: block;
  color: #0e224b;
  font-size: 22px;
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.035em;
}

.ammon-search-subtitle {
  display: block;
  color: #64748b;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
}

.ammon-search-spacer {
  display: block;
  height: 22px;
}

.ammon-formations-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
  gap: 16px;
  align-items: end;
}

.ammon-formations-search-field {
  min-width: 0;
}

.ammon-formations-search-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: #0e224b;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ammon-formations-search-field:first-child .ammon-formations-search-label::before {
  content: "Aa";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 9px;
  background: #eef5ff;
  color: #0e224b;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: none;
}

.ammon-formations-search-field:nth-child(2) .ammon-formations-search-label::before {
  content: "📍";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 9px;
  background: #eef5ff;
  font-size: 13px;
  letter-spacing: 0;
}

.ammon-formations-search-control {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 16px;
  border-radius: 17px;
  border: 1px solid #d8e0eb;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(14, 34, 75, 0.045);
  box-sizing: border-box;
}

.ammon-formations-search-control > .ammon-search-icon {
  display: none;
}

.ammon-formations-search-input {
  width: 100%;
  height: 52px;
  min-height: 52px;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
  color: #0e224b;
  font-size: 15px;
  font-weight: 750;
  line-height: 52px;
}

.ammon-formations-search-input::placeholder {
  color: #94a3b8;
}

/* Multi-lieux catalogue */

.ammon-catalog-location-multiselect {
  position: relative;
  width: 100%;
}

.ammon-catalog-location-button {
  cursor: pointer;
  width: 100%;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
  padding: 0 16px;
  border-radius: 17px;
  border: 1px solid #d8e0eb;
  background: #ffffff;
  color: #0e224b;
  font-size: 15px;
  font-weight: 850;
  text-align: left;
  box-shadow: 0 10px 24px rgba(14, 34, 75, 0.045);
}

.ammon-catalog-location-button:focus {
  outline: none;
  border-color: #2dd88a;
  box-shadow: 0 0 0 3px rgba(45, 216, 138, 0.14);
}

.ammon-catalog-location-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ammon-catalog-location-arrow {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 16px;
  line-height: 1;
}

.ammon-catalog-location-panel {
  display: none;
  position: absolute;
  z-index: 80;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  max-height: 270px;
  overflow: auto;
  box-sizing: border-box;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e3e8f1;
  box-shadow: 0 26px 60px rgba(14, 34, 75, 0.18);
}

.ammon-catalog-location-multiselect.is-open .ammon-catalog-location-panel {
  display: grid;
  gap: 6px;
}

.ammon-catalog-location-option {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 13px;
  color: #0e224b;
  font-size: 14px;
  font-weight: 800;
  transition: background 150ms ease, color 150ms ease;
}

.ammon-catalog-location-option:hover {
  background: #f4f7fb;
}

.ammon-catalog-location-option input {
  width: 16px;
  height: 16px;
  accent-color: #2dd88a;
}

.ammon-catalog-location-empty {
  padding: 12px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}
/* ==========================================================
   Catalogue - Cartes
   ========================================================== */

.ammon-formations {
  display: grid;
  gap: 22px;
  margin: 28px 0;
}

.ammon-formations--grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: stretch;
}

.ammon-formations--list {
  grid-template-columns: 1fr;
}

.ammon-formation-card {
  position: relative;
  gap: 12px;
  padding: 24px;
  border: 1px solid #e3e8f1;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 16px 38px rgba(14, 34, 75, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.ammon-formation-card:hover {
  transform: translateY(-3px);
  border-color: rgba(45, 216, 138, 0.65);
  box-shadow: 0 22px 46px rgba(14, 34, 75, 0.14);
}

.ammon-formations--grid .ammon-formation-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  min-height: 390px;
  overflow: visible;
}

.ammon-formations--list .ammon-formation-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 260px);
  align-items: stretch;
  gap: 28px;
  min-height: 172px;
}

.ammon-formation-card-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
}

.ammon-formations--grid .ammon-formation-card-main {
  flex: 1 1 auto;
  justify-content: flex-start;
}

.ammon-formation-card-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 100%;
}

.ammon-formations--grid .ammon-formation-card-side {
  align-items: stretch;
  justify-content: flex-end;
  width: 100%;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #e3e8f1;
  text-align: left;
}

.ammon-formations--list .ammon-formation-card-side {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ammon-formation-card-eyebrow {
  margin-bottom: 2px;
}

.ammon-formation-code,
.ammon-detail-code {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(14, 34, 75, 0.08);
  color: #0e224b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.ammon-formation-title {
  margin: 0;
  color: #0e224b;
  font-size: 21px;
  line-height: 1.18;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.ammon-formations--grid .ammon-formation-title {
  width: 100%;
  max-width: 100%;
  font-size: 18px;
  line-height: 1.18;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.ammon-formation-description {
  color: #526173;
  font-size: 15px;
  line-height: 1.6;
}

.ammon-formations--grid .ammon-formation-description,
.ammon-formations--grid .ammon-formation-locations {
  width: 100%;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.ammon-formation-price {
  color: #0e224b;
  font-size: 18px;
  font-weight: 850;
}

.ammon-formations--list .ammon-formation-price {
  min-width: 100%;
  text-align: center;
  margin-bottom: 2px;
}

.ammon-formation-actions {
  margin-top: auto;
  display: flex;
}

.ammon-formations--grid .ammon-formation-actions {
  width: 100%;
  margin: 0;
}

.ammon-formations--list .ammon-formation-actions {
  width: 100%;
  justify-content: center;
}

.ammon-formation-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 12px;
  background: #0e224b;
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(14, 34, 75, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.ammon-formations--grid .ammon-formation-link {
  width: 100%;
  max-width: none;
}

.ammon-formations--list .ammon-formation-link {
  width: 100%;
  max-width: 210px;
}

.ammon-formation-link:hover {
  background: #14336f;
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(14, 34, 75, 0.24);
}

.ammon-formation-sessions-count {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: #dcfce7;
  color: #12813c;
  border: 1px solid #9ae6b4;
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
}

.ammon-formation-sessions-count::before {
  content: "●";
  margin-right: 7px;
  font-size: 9px;
  color: #22c55e;
}

.ammon-formation-locations {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: #eef5ff;
  color: #0e224b;
  border: 1px solid #dbe7fb;
  font-size: 12px;
  font-weight: 900;
}

.ammon-formation-card.is-hidden-by-search,
.ammon-session-card.is-hidden-by-location {
  display: none !important;
}

/* ==========================================================
   Pagination
   ========================================================== */

.ammon-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 30px 0 0;
  flex-wrap: wrap;
}

.ammon-pagination-link,
.ammon-pagination-current,
.ammon-pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #d8e0eb;
  background: #ffffff;
  color: #0e224b;
  text-decoration: none;
  font-weight: 900;
}

.ammon-pagination-current {
  background: #0e224b;
  border-color: #0e224b;
  color: #ffffff;
}

.ammon-pagination-ellipsis {
  border-color: transparent;
  background: transparent;
  min-width: 24px;
  padding: 0 4px;
}
/* ==========================================================
   Fiche formation
   ========================================================== */

.ammon-detail-premium {
  margin: 30px 0;
  color: #0e224b;
}

.ammon-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #0e224b;
  text-decoration: none !important;
  font-weight: 800;
}

.ammon-detail-back:hover {
  color: #27c77f;
}

.ammon-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: stretch;
  padding: 32px;
  border-radius: 24px;
  background: radial-gradient(circle at top right, rgba(45, 216, 138, 0.16), transparent 35%), linear-gradient(135deg, #0e224b 0%, #132f66 100%);
  box-shadow: 0 24px 60px rgba(14, 34, 75, 0.22);
  color: #ffffff;
}

.ammon-detail-hero-container {
  display: contents;
}

.ammon-detail-hero .ammon-detail-code {
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  margin-bottom: 18px;
}

.ammon-formation-detail-title {
  margin: 0;
  color: inherit;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.ammon-detail-intro {
  max-width: 760px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.65;
}

.ammon-detail-price-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.ammon-detail-price-card span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ammon-detail-price-card .ammon-price-prefix {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 850;
  text-transform: none;
  letter-spacing: 0;
}

.ammon-detail-price-card strong {
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
}

.ammon-detail-price-card small {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.45;
}

.ammon-detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.ammon-meta-item {
  padding: 18px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e3e8f1;
  box-shadow: 0 12px 30px rgba(14, 34, 75, 0.06);
}

.ammon-meta-item span {
  display: block;
  margin-bottom: 6px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.ammon-meta-item strong {
  color: #0e224b;
  font-size: 16px;
  font-weight: 850;
}

.ammon-detail-section {
  margin-top: 22px;
  padding: 28px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #e3e8f1;
  box-shadow: 0 14px 36px rgba(14, 34, 75, 0.07);
}

.ammon-detail-section h2 {
  margin: 0 0 20px;
  color: #0e224b;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.025em;
}

/* Onglets fiche */

.ammon-tabs {
  position: relative;
}

.ammon-tab-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ammon-tab-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.ammon-tab-label {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: #f4f7fb;
  border: 1px solid #e3e8f1;
  color: #0e224b;
  font-size: 14px;
  font-weight: 850;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.ammon-tab-label:hover {
  border-color: #2dd88a;
}

.ammon-tab-panel {
  display: none;
  color: #344256;
  font-size: 16px;
  line-height: 1.75;
}

.ammon-tab-input:nth-of-type(1):checked ~ .ammon-tab-labels label:nth-of-type(1),
.ammon-tab-input:nth-of-type(2):checked ~ .ammon-tab-labels label:nth-of-type(2),
.ammon-tab-input:nth-of-type(3):checked ~ .ammon-tab-labels label:nth-of-type(3),
.ammon-tab-input:nth-of-type(4):checked ~ .ammon-tab-labels label:nth-of-type(4),
.ammon-tab-input:nth-of-type(5):checked ~ .ammon-tab-labels label:nth-of-type(5),
.ammon-tab-input:nth-of-type(6):checked ~ .ammon-tab-labels label:nth-of-type(6),
.ammon-tab-input:nth-of-type(7):checked ~ .ammon-tab-labels label:nth-of-type(7),
.ammon-tab-input:nth-of-type(8):checked ~ .ammon-tab-labels label:nth-of-type(8) {
  background: #0e224b;
  color: #ffffff;
  border-color: #0e224b;
}

.ammon-tab-input:nth-of-type(1):checked ~ .ammon-tab-panels .ammon-tab-panel-0,
.ammon-tab-input:nth-of-type(2):checked ~ .ammon-tab-panels .ammon-tab-panel-1,
.ammon-tab-input:nth-of-type(3):checked ~ .ammon-tab-panels .ammon-tab-panel-2,
.ammon-tab-input:nth-of-type(4):checked ~ .ammon-tab-panels .ammon-tab-panel-3,
.ammon-tab-input:nth-of-type(5):checked ~ .ammon-tab-panels .ammon-tab-panel-4,
.ammon-tab-input:nth-of-type(6):checked ~ .ammon-tab-panels .ammon-tab-panel-5,
.ammon-tab-input:nth-of-type(7):checked ~ .ammon-tab-panels .ammon-tab-panel-6,
.ammon-tab-input:nth-of-type(8):checked ~ .ammon-tab-panels .ammon-tab-panel-7 {
  display: block;
}

/* ==========================================================
   Sessions fiche formation
   ========================================================== */

.ammon-sessions-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 26px;
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid #e3e8f1;
  box-shadow: 0 18px 45px rgba(14, 34, 75, 0.07);
}

.ammon-sessions-filters {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1.1fr);
  align-items: start;
  gap: 18px;
}

.ammon-sessions-filter {
  display: grid;
  grid-template-rows: 16px 50px 15px;
  gap: 7px;
  min-width: 0;
  color: #0e224b;
  font-size: 13px;
  font-weight: 900;
}

.ammon-sessions-filter > span {
  color: #0e224b;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ammon-sessions-filter small {
  min-height: 14px;
  color: #7a8798;
  font-size: 11px;
  font-weight: 700;
}

.ammon-location-multiselect {
  position: relative;
  width: 100%;
  height: 48px;
}

.ammon-location-multiselect-button {
  cursor: pointer;
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
  padding: 0 15px;
  border-radius: 16px;
  border: 1px solid #d8e0eb;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  color: #0e224b;
  font-size: 14px;
  font-weight: 850;
  text-align: left;
  box-shadow: 0 10px 22px rgba(14, 34, 75, 0.05);
}

.ammon-location-multiselect-panel {
  display: none;
  position: absolute;
  z-index: 40;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  max-height: 260px;
  overflow: auto;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e3e8f1;
  box-shadow: 0 26px 60px rgba(14, 34, 75, 0.18);
}

.ammon-location-multiselect.is-open .ammon-location-multiselect-panel {
  display: grid;
  gap: 6px;
}

.ammon-location-option {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 13px;
  color: #0e224b;
  font-size: 14px;
  font-weight: 800;
}

.ammon-location-option:hover {
  background: #f4f7fb;
}

.ammon-location-option input {
  width: 16px;
  height: 16px;
  accent-color: #2dd88a;
}

.ammon-sessions-view-toggle {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  align-self: center;
  gap: 5px;
  height: 50px;
  padding: 5px;
  border-radius: 999px;
  background: #eef3fa;
  border: 1px solid #e3e8f1;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.ammon-sessions-view-toggle button {
  cursor: pointer;
  height: 40px;
  min-width: 96px;
  padding: 0 17px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  font-size: 14px;
  font-weight: 900;
}

.ammon-sessions-view-toggle button.is-active {
  background: #0e224b;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(14, 34, 75, 0.22);
}

.ammon-sessions-list {
  display: grid;
  gap: 20px;
}

.ammon-sessions-list.is-tiles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ammon-sessions-list.is-list {
  grid-template-columns: 1fr;
}

.ammon-session-card {
  position: relative;
  display: flex;
  gap: 18px;
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid #e3e8f1;
  box-shadow: 0 18px 42px rgba(14, 34, 75, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  overflow: hidden;
}

.ammon-session-card:hover {
  transform: translateY(-3px);
  border-color: rgba(45, 216, 138, 0.42);
  box-shadow: 0 24px 58px rgba(14, 34, 75, 0.13);
}

.ammon-sessions-list.is-tiles .ammon-session-card {
  flex-direction: column;
  min-height: 0;
  justify-content: space-between;
}

.ammon-session-left {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  flex: 1;
  min-width: 0;
  align-items: start;
}

.ammon-session-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(14, 34, 75, 0.08), rgba(45, 216, 138, 0.12));
  color: #0e224b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.ammon-session-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.ammon-session-title {
  display: block;
  min-height: 46px;
  color: #0e224b;
  font-size: 19px;
  line-height: 1.22;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.ammon-session-meta {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: start;
  gap: 8px;
  min-height: 66px;
}

.ammon-session-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f4f7fb;
  color: #526173;
  font-size: 12px;
  font-weight: 850;
}

.ammon-session-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  min-width: 180px;
  padding-left: 20px;
  border-left: 1px solid #e3e8f1;
}

.ammon-sessions-list.is-tiles .ammon-session-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding-left: 0;
  padding-top: 14px;
  border-left: 0;
  border-top: 1px solid #e3e8f1;
}

.ammon-session-price-block span,
.ammon-session-places-block span {
  display: block;
  margin-bottom: 5px;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ammon-session-price-block strong {
  color: #0e224b;
  font-size: 23px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.ammon-session-places-block {
  text-align: center;
}

.ammon-session-places-block strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #dcfce7;
  color: #12813c;
  border: 1px solid #9ae6b4;
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
}

.ammon-session-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2dd88a 0%, #27c77f 100%);
  color: #0e224b !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 950;
  box-shadow: 0 14px 28px rgba(45, 216, 138, 0.24);
}

.ammon-sessions-list.is-tiles .ammon-session-register {
  grid-column: 1 / -1;
  width: 100%;
}

.ammon-sessions-list.is-list .ammon-session-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px 150px 150px;
  align-items: center;
  gap: 22px;
  padding: 18px 20px;
  border-radius: 16px;
}

.ammon-sessions-list.is-list .ammon-session-right {
  display: contents;
}

.ammon-sessions-list.is-list .ammon-session-register {
  justify-self: end;
  width: 140px;
}

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

@media (max-width: 900px) {
  .ammon-detail-hero,
  .ammon-detail-hero-container {
    display: grid;
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .ammon-detail-price-card {
    align-items: flex-start;
  }

  .ammon-formation-detail-title {
    font-size: clamp(28px, 8vw, 38px);
  }

  .ammon-detail-section {
    padding: 22px;
  }
}

@media (max-width: 820px) {
  .ammon-sessions-toolbar,
  .ammon-sessions-filters {
    grid-template-columns: 1fr;
  }

  .ammon-sessions-view-toggle {
    justify-self: stretch;
  }

  .ammon-sessions-list.is-tiles,
  .ammon-sessions-list.is-list {
    grid-template-columns: 1fr;
  }

  .ammon-session-card,
  .ammon-sessions-list.is-list .ammon-session-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .ammon-session-right,
  .ammon-sessions-list.is-list .ammon-session-right,
  .ammon-sessions-list.is-tiles .ammon-session-right {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    border-left: 0;
    border-top: 1px solid #e3e8f1;
    padding-left: 0;
    padding-top: 16px;
  }
}

@media (max-width: 760px) {
  .ammon-formations-search-row,
  .ammon-formations--list .ammon-formation-card {
    grid-template-columns: 1fr;
  }

  .ammon-catalog-location-panel,
  .ammon-location-multiselect-panel {
    position: static;
    width: 100%;
    margin-top: 10px;
    box-shadow: 0 14px 34px rgba(14, 34, 75, 0.12);
  }

  .ammon-formations--grid .ammon-formation-card {
    min-height: 0;
  }

  .ammon-formation-card-side,
  .ammon-formations--list .ammon-formation-card-side {
    align-items: stretch;
    text-align: left;
    width: 100%;
  }

  .ammon-formations--list .ammon-formation-price {
    min-width: 0;
    text-align: left;
  }

  .ammon-formations--list .ammon-formation-actions,
  .ammon-formations--list .ammon-formation-link {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 520px) {
  .ammon-detail-premium {
    margin: 18px 0;
  }

  .ammon-detail-hero {
    padding: 20px;
    border-radius: 20px;
  }

  .ammon-detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .ammon-detail-section {
    padding: 18px;
    border-radius: 18px;
  }
}