/* === Alma Checkout CSS Premium === */

.alma-checkout-container {
  margin-top: 1rem;
  font-family: inherit;
}

.alma-options-wrapper {
  overflow-x: auto;
  white-space: nowrap;
  margin-bottom: 2%;
  padding-bottom: 0.25rem;
}

.alma-options {
  display: flex;
  flex-wrap: nowrap !important;
  gap: 0.5rem;
  min-width: max-content;
  width: 100%;
  box-sizing: border-box; margin-bottom:1%;
}

.alma-option {
  flex: 1 1 100px;
  max-width: 150px;
  min-width: 80px;
  text-align: center;
  padding: 0%;
  font-weight: bold;
  border-radius: 4px;
  background-color: white;
  color: #bd9d6c;
  border: 1px solid #bd9d6c;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
  white-space: nowrap;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alma-option.active,
.alma-option.active:focus,
.alma-option.active:active,
.alma-option:focus,
.alma-option:active {
  background-color: #bd9d6c;
  color: white;
  outline-offset: -2px;
}

#alma-result {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 2%;
  margin-top: 0.5rem;
  max-width: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#alma-month-label,
#alma-checkout .text-muted {
  font-weight: 400;
  color: #4A4F55 !important;
  font-size: 0.775rem;
  margin-bottom: 0.25rem;
}

#alma-total-line {
  font-size: 0.6em;
  color: #555;
}

#alma-total {
  font-weight: 400;
}

#installment-price {
  margin-left: 10px;
  font-weight: 600;
  color: #444;
  font-size: 1rem;
}

/* Responsive fallback : 2 colonnes si grid utilisée ailleurs */
@media (max-width: 768px) {
  .alma-options {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
}

#alma-checkout .mr-2 { margin-right: 0 !important; }
#alma-checkout .mb-1 { margin-bottom: 0% !important; }
#alma-checkout .mt-2 { margin-top: 0rem !important; }
#alma-checkout .p-3 { padding: 2% !important; margin-bottom: 4%; }
#alma-header-message { margin-bottom: 2% !important; }
