.checkout-wrap{
  display:flex;
  justify-content:center;
  padding:16px;
}

.checkout-layout{
  width:100%;
  max-width:1100px;
  display:grid;
  grid-template-columns:minmax(0, 1fr) 360px;
  gap:24px;
  align-items:start;
}

.checkout-main{
  min-width:0;
}

.checkout-card,
.checkout-price-card{
  background:#fff;
  border:1px solid #e6e6e6;
  border-radius:16px;
  padding:20px;
  box-sizing:border-box;
}

.checkout-card__header{
  margin-bottom:18px;
}

.checkout-card__title,
.checkout-price-card__title{
  margin:0;
  font-size:1.2rem;
  font-weight:700;
}

.checkout-card__subtitle{
  margin:6px 0 0;
  color:#666;
  font-size:14px;
}

.checkout-form__grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.checkout-form__field--full{
  grid-column:1 / -1;
}

.checkout-form label:not(.checkout-terms-label) {
  display: flex;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
  color: #222;
}

.checkout-input,
.checkout-form textarea{
  width:100%;
  min-height:48px;
  border:1px solid #d9d9d9;
  border-radius:12px;
  padding:12px 14px;
  box-sizing:border-box;
  font-size:15px;
  background:#fff;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.checkout-form select.checkout-input{
  width: 100%;
  box-sizing: border-box;
  padding: 10px 44px 10px 12px;

  border: 1px solid #e6e6e6;
  border-radius: 8px;
  background-color: #fff;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><path d='M4 6L8 10L12 6' stroke='%231f1f1f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}
.checkout-form textarea{
  min-height:110px;
  resize:vertical;
}

.checkout-input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus{
  outline:none;
  border-color:#0A6365;
  box-shadow:0 0 0 3px rgba(10,99,101,.12);
}

.checkout-form .form-error-message,
.checkout-form .invalid-feedback,
.checkout-form .form-error-icon{
  font-size:13px;
}

.checkout-form__terms{
  margin-top:4px;
}

.checkout-form__terms input[type="checkbox"]{
  width:auto;
  min-height:auto;
  margin-right:8px;
  vertical-align:middle;
}

.checkout-form__actions{
  margin-top:20px;
}

.checkout-side{
  position:sticky;
  top:16px;
}

.checkout-summary-block{
  padding-bottom:14px;
  margin-bottom:14px;
  border-bottom:1px solid #f0f0f0;
}

.checkout-summary-name{
  font-weight:700;
  margin-bottom:6px;
}

.checkout-summary-meta{
  font-size:14px;
  color:#666;
  margin-bottom:4px;
}

.checkout-price-line{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
  white-space: nowrap;
}

.checkout-price-line--muted{
  color:#666;
  font-size:14px;
}

.checkout-price-line--total{
  font-weight:800;
  font-size:18px;
}

.checkout-price-divider{
  height:1px;
  background:#f0f0f0;
  margin:12px 0;
}

.checkout-price-note{
  margin-top:14px;
 font-size: 14px;
  color: #444;
}
.checkout-price-note strong {
  font-weight: 700;
}

.checkout-price-note.is-warning .js-checkout-countdown {
  color: var(--checkout-countdown-color);
}

.checkout-price-note.is-expired .js-checkout-countdown {
  color: #b42318;
}

.btn--green.is-disabled,
.btn--green:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.checkout-expired-message {
  margin-top: 12px;
  font-size: 14px;
  color: #b42318;
  font-weight: 600;
}
.checkout-required-note {
  font-size: 0.9em;
  color: #555;
  margin-top: -10px;
  margin-bottom: 15px;
}

.checkout-required-note span {
  color: #d93025;
}
.checkout-payment-choice {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkout-payment-choice__title {
  font-weight: 600;
  margin-bottom: 4px;
}
.checkout-payment-option__title{
  font-weight:700;
}
.checkout-payment-option{
  display:flex;
  gap:12px;
  border:1px solid #ddd;
  border-radius:12px;
  padding:14px;
  cursor:pointer;
  transition:border-color .15s ease, box-shadow .15s ease;
}

.checkout-payment-option:hover{
  border-color:#0A6365;
}

.checkout-payment-option input[type="radio"]:checked + .checkout-payment-option__content{
  font-weight:600;
}

.checkout-payment-option:has(input:checked){
  border-color:#0A6365;
  background:#f5fbfb;
}
.checkout-form a {
  color: var(--vert-color);
}
.checkout-form input[type="checkbox"],
.checkout-form input[type="radio"] {
  accent-color: #0A6365;
}
/* Pour les erreurs du formulaire */
/* message erreur */
.checkout-form__field .form-error-message {
  color: #d93025;
  font-size: 13px;
  margin-top: 6px;
}
label.required::after {
  content: " *";
  color: #d93025;
  font-weight: normal;
}
.spinner{
  width:40px;
  height:40px;
  border:4px solid #eee;
  border-top:4px solid #0A6365;
  border-radius:50%;
  animation:spin 1s linear infinite;
}

@keyframes spin{
  to{ transform:rotate(360deg); }
}
/* champ en erreur */
.checkout-input.is-invalid,
.checkout-input[aria-invalid="true"] {
  border: 1px solid #d93025;
  background-color: #fff6f6;
}
.checkout-input[aria-invalid="true"]:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(217,48,37,0.15);
}
.checkout-form__field ul {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
}

.checkout-form__field li {
  color: #d93025;
  font-size: 13px;
  font-weight: 500;
}
.checkout-input.is-invalid {
  border: 1px solid #d93025;
  background-color: #fff6f6;
}
.checkout-form__terms ul {
  list-style: none;
  padding: 0;
  margin: 6px 0 0 26px; /* aligne avec le texte */
}

.checkout-form__terms li {
  color: #d93025;
  font-size: 13px;
}
.checkout-form__terms {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
}

.checkout-form__terms input[type="checkbox"] {
  margin-top: 3px;
}

.checkout-form__terms label {
  flex: 1;
}
.checkout-form__terms ul {
  flex-basis: 100%;
  margin-left: 26px;
}

.checkout-form__terms li {
  color: #d93025;
  font-size: 13px;
}
/*--------- Bloc country ----------*/
.country-dropdown{
  position: relative;
  width: 100%;
}

.country-native{
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.country-dropdown__trigger{
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  background: #fff;
  font: inherit;
  color: #222;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.country-dropdown__trigger:focus,
.country-dropdown__trigger:focus-visible{
  outline: none;
  border-color: #0A6365;
  box-shadow: 0 0 0 3px rgba(10,99,101,.12);
}

.country-dropdown__label{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-dropdown__icon{
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1;
  transition: transform .2s ease;
}

.country-dropdown__trigger.show .country-dropdown__icon,
.country-dropdown__trigger[aria-expanded="true"] .country-dropdown__icon{
  transform: rotate(180deg);
}

.country-dropdown__menu{
  width: 100%;
  margin-top: 8px;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  overflow: hidden;
}

.country-dropdown__search-wrap{
  padding: 10px;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
}

.country-dropdown__search{
  width: 100%;
  min-height: 42px;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  padding: 10px 12px;
  box-sizing: border-box;
  font: inherit;
}

.country-dropdown__search:focus{
  outline: none;
  border-color: #0A6365;
  box-shadow: 0 0 0 3px rgba(10,99,101,.12);
}

.country-dropdown__list{
  max-height: 260px;
  overflow-y: auto;
  padding: 6px;
  background: #fff;
}

.country-dropdown__item{
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
}

.country-dropdown__item:hover,
.country-dropdown__item:focus{
  background: #f7f7f7;
}

.country-dropdown__item.is-selected{
  background: #f5fbfb;
  font-weight: 600;
}

.country-dropdown__empty{
  padding: 14px 12px;
  font-size: 14px;
  color: #666;
  background: #fff;
}

.country-dropdown.is-invalid .country-dropdown__trigger{
  border: 1px solid #d93025;
  background-color: #fff6f6;
}

.country-dropdown.is-invalid .country-dropdown__trigger:focus,
.country-dropdown.is-invalid .country-dropdown__trigger:focus-visible{
  box-shadow: 0 0 0 3px rgba(217,48,37,.12);
}
/*--------- Bloc adresse collapse ----------*/
.checkout-form{
  width: 100%;
}

.checkout-form__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.checkout-form__stack{
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.checkout-form__field{
  width: 100%;
  min-width: 0;
}

.checkout-form__field--full{
  width: 100%;
}

.checkout-address-box .checkout-input,
.checkout-address-box .checkout-form input,
.checkout-address-box .checkout-form select,
.checkout-address-box .checkout-form textarea{
  width: 100%;
  box-sizing: border-box;
}

.checkout-address-toggle{
  width: 100%;
  margin-top: 16px;
}

.checkout-address-trigger{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  background: #fff;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.checkout-address-trigger__icon{
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.checkout-address-trigger[aria-expanded="true"] .checkout-address-trigger__icon{
  transform: rotate(180deg);
}

.checkout-address-collapse{
  margin-top: 10px;
}

.checkout-address-box{
  padding: 16px;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  background: #fafafa;
}

.checkout-form__grid--address{
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  margin-top: 12px;
}

.checkout-form__actions{
  margin-top: 24px;
}
.checkout-side-actions {
  margin-top: 1.5rem;
}

@media (max-width: 768px){
  .checkout-form__grid{
    grid-template-columns: 1fr;
  }

  .checkout-form__grid--address{
    grid-template-columns: 1fr;
  }
}
/*--------- --------------------- ----------*/
@media (max-width: 980px){
  .checkout-layout{
    grid-template-columns:1fr;
  }

  .checkout-side{
    position:static;
  }
}

@media (max-width: 640px){
  .checkout-wrap{
    padding:8px;
  }

  .checkout-card,
  .checkout-price-card{
    padding:16px;
    border-radius:12px;
  }

  .checkout-form__grid{
    grid-template-columns:1fr;
  }
}
.is-invalid-live{
  border-color:#d93025 !important;
  box-shadow:0 0 0 3px rgba(217,48,37,.10) !important;
}
.checkout-form__terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
}

.checkout-form__terms input {
  margin-top: 3px;
}



.checkout-summary-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.checkout-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1;
}

.checkout-badge--promo {
  background: #e9f7ef;
  color: #198754;
  border: 1px solid #cdebd8;
}

.checkout-badge--muted {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

.checkout-price-line__main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.checkout-price-line__sub {
  font-size: 0.84rem;
  color: #6b7280;
}

.checkout-rate-details {
  border: 1px solid #ededed;
  background: #fafafa;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 0.35rem;
}

.checkout-rate-details__toggle {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f2937;
  text-align: left;
  transition: background-color 0.2s ease;
}

.checkout-rate-details__toggle:hover {
  background: #f3f4f6;
}

.checkout-rate-details__toggle:focus-visible {
  outline: 2px solid #94a3b8;
  outline-offset: -2px;
}

.checkout-rate-details__toggle-icon {
  width: 10px;
  height: 10px;
  border-right: 2px solid #6b7280;
  border-bottom: 2px solid #6b7280;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-top: -2px;
}

.checkout-rate-details.is-open .checkout-rate-details__toggle-icon {
  transform: rotate(225deg);
  margin-top: 4px;
}

.checkout-rate-details__panel {
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: height 0.32s ease, opacity 0.2s ease;
}

.checkout-rate-details.is-open .checkout-rate-details__panel {
  opacity: 1;
}

.checkout-rate-breakdown {
  border-top: 1px solid #ededed;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.checkout-rate-breakdown__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 12px;
  padding: 0.1rem 0;
}

.checkout-rate-breakdown__row--promo {
  background: linear-gradient(90deg, rgba(25, 135, 84, 0.05) 0%, rgba(25, 135, 84, 0) 100%);
}

.checkout-rate-breakdown__left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.checkout-rate-breakdown__date {
  font-size: 0.88rem;
  font-weight: 500;
  color: #111827;
}

.checkout-rate-breakdown__prices {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.checkout-rate-breakdown__price-old {
  font-size: 0.8rem;
  color: #9ca3af;
  text-decoration: line-through;
  white-space: nowrap;
}

.checkout-rate-breakdown__price {
  font-size: 0.9rem;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
}

.checkout-rate-breakdown__price--promo {
  color: #198754;
}

.checkout-rate-breakdown__tag {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
}

.checkout-rate-breakdown__tag--promo {
  background: #eefbf3;
  color: #157347;
  border: 1px solid #cfe9d8;
}

.checkout-rate-breakdown__tag--override {
  background: #fff4e5;
  color: #b45309;
  border: 1px solid #f5d7a8;
}

.checkout-rate-breakdown__tag--base {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}
/*-------------------------------------*/
.checkout-rate-breakdown__unit-group {
    padding-top: 12px;
}

.checkout-rate-breakdown__unit-group + .checkout-rate-breakdown__unit-group {
    margin-top: 14px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.checkout-rate-breakdown__unit-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 600;
    color: #0f172a;
}

.checkout-rate-breakdown__unit-total {
    color: #225e46;
    font-weight: 700;
}
/*-------------------------------------*/
.checkout-units-breakdown {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 14px 0 18px;
}

.checkout-unit-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: #fff;
  padding: 14px 16px;
}

.checkout-unit-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.checkout-unit-card__title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--vert-color);
}

.checkout-unit-card__price {
  font-size: 0.98rem;
  font-weight: 700;
  color: #1f1f1f;
  white-space: nowrap;
}

.checkout-unit-card__meta {
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.62);
  margin-bottom: 10px;
}

.checkout-unit-card__options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
  margin-top: 8px;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.checkout-unit-card__option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
  color: #2a2a2a;
}

.checkout-unit-card__option small {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.55);
}

.checkout-unit-card__subtotal {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.93rem;
  font-weight: 600;
  color: #1f1f1f;
}
.checkout-payment-option__note {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: rgba(0, 0, 0, 0.62);
}
@media (max-width: 640px) {
  .checkout-unit-card {
    padding: 12px 13px;
  }

  .checkout-unit-card__header,
  .checkout-unit-card__option,
  .checkout-unit-card__subtotal {
    flex-direction: column;
    align-items: flex-start;
  }

  .checkout-unit-card__price,
  .checkout-unit-card__subtotal span:last-child {
    white-space: normal;
  }
}

.checkout-autofill-notice {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-top: 1rem;
  padding: .9rem 1rem;
  border-radius: 14px;
  background: #f4fbf6;
  border: 1px solid #cfe8d5;
  color: #2f5e3b;
  font-size: .95rem;
  line-height: 1.4;
}

.checkout-autofill-notice[hidden] {
  display: none;
}

.checkout-autofill-notice i {
  color: #4ca66a;
  flex-shrink: 0;
}
.checkout-form__terms {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  row-gap: 6px;
  align-items: start;
}

.checkout-form__terms input[type="checkbox"] {
  margin: 3px 0 0;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.checkout-terms-label {
    display: inline !important;
  margin: 0 !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  line-height: 1.45;
  color: #333;
}

.checkout-terms-label a {
  display: inline;
  white-space: normal;
  font-weight: 700;
}

.checkout-terms-label.required::after {
  content: " *";
  display: inline;
  color: #d93025;
}

.checkout-form__terms ul {
  grid-column: 2;
  margin: 4px 0 0;
}
.checkout-form__terms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
