/* Essaouira Cooking — Event Booking responsive registration 1.2.0 */

/* Shared registration controls: keep compound inputs connected at every size. */
body.com_eventbooking .ec-checkout-form .field-calendar,
body.com_eventbooking .ec-checkout-form .input-group,
body.com_eventbooking .ec-checkout-form .input-append,
body.com_eventbooking #eb-amount-container .input-group,
body.com_eventbooking #eb-amount-container .input-append {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  max-width: 100% !important;
}

body.com_eventbooking .ec-checkout-form .field-calendar input,
body.com_eventbooking .ec-checkout-form .input-group > input,
body.com_eventbooking .ec-checkout-form .input-append > input {
  flex: 1 1 auto;
  min-width: 0 !important;
}

body.com_eventbooking .ec-checkout-form .field-calendar button,
body.com_eventbooking .ec-checkout-form .input-group > button,
body.com_eventbooking .ec-checkout-form .input-group-text,
body.com_eventbooking .ec-checkout-form .add-on {
  position: static !important;
  flex: 0 0 auto;
  min-width: 48px;
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 14px 14px 0 !important;
}

body.com_eventbooking .ec-checkout-form .field-calendar input,
body.com_eventbooking .ec-checkout-form .input-group > input:first-child,
body.com_eventbooking .ec-checkout-form .input-append > input:first-child {
  border-radius: 14px 0 0 14px !important;
}

@media (min-width: 768px) {
  body.com_eventbooking .ec-checkout-page {
    width: min(100%, 1060px);
  }

  /* Event Booking's form grid nests a label/input grid inside Bootstrap
     half-columns. Flatten those half-columns into predictable full-width rows. */
  body.com_eventbooking .ec-checkout-form > .control-group:not(.eb-terms-and-conditions-container),
  body.com_eventbooking .ec-checkout-form > .form-group:not(.eb-terms-and-conditions-container),
  body.com_eventbooking .ec-checkout-form > .mb-3:not(.eb-terms-and-conditions-container),
  body.com_eventbooking .ec-checkout-form .eb-grid-fields-container > .control-group:not(.eb-terms-and-conditions-container) {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  body.com_eventbooking .ec-checkout-details .ec-checkout-form > .control-group:not(.eb-terms-and-conditions-container):not([style*="display"]),
  body.com_eventbooking .ec-checkout-details .ec-checkout-form > .form-group:not(.eb-terms-and-conditions-container):not([style*="display"]),
  body.com_eventbooking .ec-checkout-details .ec-checkout-form > .mb-3:not(.eb-terms-and-conditions-container):not([style*="display"]),
  body.com_eventbooking .ec-checkout-form .eb-grid-fields-container > .control-group:not(.eb-terms-and-conditions-container):not([style*="display"]),
  body.com_eventbooking .ec-checkout-form.row > .control-group:not(.eb-terms-and-conditions-container):not([style*="display"]) {
    display: grid !important;
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: center;
    column-gap: 22px;
    min-height: 0 !important;
    margin-bottom: 14px !important;
    padding: 16px 24px !important;
    box-sizing: border-box;
  }

  body.com_eventbooking .ec-checkout-form .control-label {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    flex: none !important;
    grid-column: 1 !important;
    white-space: nowrap;
    line-height: 1.3;
  }

  body.com_eventbooking .ec-checkout-form .controls {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    flex: none !important;
    grid-column: 2 !important;
  }

  /* Structural fallback for Bootstrap mappings which rename control-label/controls. */
  body.com_eventbooking .ec-checkout-form .control-group:not(.eb-terms-and-conditions-container):not([style*="display"]) > :first-child,
  body.com_eventbooking .ec-checkout-form .form-group:not(.eb-terms-and-conditions-container):not([style*="display"]) > :first-child {
    grid-column: 1 !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    flex: none !important;
    white-space: nowrap;
  }

  body.com_eventbooking .ec-checkout-form .control-group:not(.eb-terms-and-conditions-container):not([style*="display"]) > :last-child,
  body.com_eventbooking .ec-checkout-form .form-group:not(.eb-terms-and-conditions-container):not([style*="display"]) > :last-child {
    grid-column: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    flex: none !important;
  }

  body.com_eventbooking .ec-checkout-form .controls > input[type="text"],
  body.com_eventbooking .ec-checkout-form .controls > input[type="email"],
  body.com_eventbooking .ec-checkout-form .controls > input[type="tel"],
  body.com_eventbooking .ec-checkout-form .controls > input[type="password"],
  body.com_eventbooking .ec-checkout-form .controls > select,
  body.com_eventbooking .ec-checkout-form .controls > textarea,
  body.com_eventbooking .ec-checkout-form .field-calendar {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  body.com_eventbooking .ec-checkout-form .controls input[type="text"],
  body.com_eventbooking .ec-checkout-form .controls input[type="email"],
  body.com_eventbooking .ec-checkout-form .controls input[type="tel"],
  body.com_eventbooking .ec-checkout-form .controls input[type="password"],
  body.com_eventbooking .ec-checkout-form .controls input[type="number"],
  body.com_eventbooking .ec-checkout-form .controls select,
  body.com_eventbooking .ec-checkout-form .controls textarea {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  body.com_eventbooking .ec-checkout-form textarea {
    min-height: 120px !important;
    resize: vertical;
  }

  body.com_eventbooking .ec-checkout-form select {
    min-height: 48px;
  }

  body.com_eventbooking #eb-amount-container .input-group,
  body.com_eventbooking #eb-amount-container .input-append {
    width: min(100%, 260px) !important;
  }

  body.com_eventbooking #payment_method_container .controls {
    display: block !important;
  }

  body.com_eventbooking #payment_method_container label {
    display: flex !important;
    align-items: center;
    gap: 7px;
    width: max-content !important;
    margin: 0 0 9px !important;
    white-space: nowrap;
  }

  body.com_eventbooking #payment_method_container label:last-child {
    margin-bottom: 0 !important;
  }

  body.com_eventbooking #payment_method_container input[type="radio"] {
    flex: 0 0 auto;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
  }

  body.com_eventbooking .eb-terms-and-conditions-container {
    display: block !important;
    width: 100% !important;
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }

  body.com_eventbooking .eb-terms-and-conditions-container label.checkbox {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
  }

  body.com_eventbooking .eb-terms-and-conditions-container input[type="checkbox"] {
    flex: 0 0 auto;
    margin: 0 !important;
  }
}
@media (max-width: 767.98px) {
  body.com_eventbooking .ec-checkout-page {
    width: 100%;
    max-width: 100%;
    padding: 18px 10px 42px;
    overflow: hidden;
  }

  body.com_eventbooking .ec-checkout-section {
    margin: 18px 0;
    padding: 20px 16px;
    border-radius: 20px;
  }

  body.com_eventbooking .ec-checkout-section__head {
    margin-bottom: 20px;
    padding-bottom: 14px;
  }

  body.com_eventbooking .ec-checkout-details .eb-heading,
  body.com_eventbooking #eb-individual-registration-page .eb-heading,
  body.com_eventbooking #eb-cart-registration-page .eb-heading {
    max-width: 100%;
    margin: 30px 0 18px !important;
    font-size: clamp(1.45rem, 7vw, 1.8rem) !important;
    line-height: 1.18 !important;
    overflow-wrap: anywhere;
  }

  body.com_eventbooking .ec-checkout-details h4.eb-heading,
  body.com_eventbooking #eb-cart-registration-page h4.eb-heading {
    margin: 18px 0 14px !important;
    font-size: 1.08rem !important;
    line-height: 1.35 !important;
  }

  body.com_eventbooking .ec-checkout-form,
  body.com_eventbooking .ec-checkout-form .control-group,
  body.com_eventbooking .ec-checkout-form .controls,
  body.com_eventbooking .ec-checkout-form .control-label {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body.com_eventbooking .ec-checkout-form .control-group,
  body.com_eventbooking .ec-checkout-form .form-group,
  body.com_eventbooking .ec-checkout-form .mb-3 {
    margin-bottom: 20px;
  }

  body.com_eventbooking .ec-checkout-form input[type="text"],
  body.com_eventbooking .ec-checkout-form input[type="email"],
  body.com_eventbooking .ec-checkout-form input[type="tel"],
  body.com_eventbooking .ec-checkout-form input[type="password"],
  body.com_eventbooking .ec-checkout-form input[type="number"],
  body.com_eventbooking .ec-checkout-form select,
  body.com_eventbooking .ec-checkout-form textarea {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  body.com_eventbooking .ec-checkout-form .field-calendar,
  body.com_eventbooking .ec-checkout-form .input-group,
  body.com_eventbooking .ec-checkout-form .input-append,
  body.com_eventbooking #eb-amount-container .input-group,
  body.com_eventbooking #eb-amount-container .input-append {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 100% !important;
    align-items: stretch;
  }

  body.com_eventbooking .ec-checkout-form .field-calendar input,
  body.com_eventbooking .ec-checkout-form .input-group input,
  body.com_eventbooking .ec-checkout-form .input-append input {
    flex: 1 1 auto;
    width: 1% !important;
    min-width: 0 !important;
  }

  body.com_eventbooking .ec-checkout-form .field-calendar button,
  body.com_eventbooking .ec-checkout-form .input-group > button,
  body.com_eventbooking .ec-checkout-form .input-group-text,
  body.com_eventbooking .ec-checkout-form .add-on {
    position: static !important;
    flex: 0 0 auto;
    width: auto !important;
    min-width: 52px;
    margin: 0 !important;
    border-radius: 0 14px 14px 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.com_eventbooking .ec-checkout-form .field-calendar input,
  body.com_eventbooking .ec-checkout-form .input-group > input:first-child,
  body.com_eventbooking .ec-checkout-form .input-append > input:first-child {
    border-radius: 14px 0 0 14px !important;
  }

  body.com_eventbooking .eb-terms-and-conditions-container label.checkbox {
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    width: 100%;
    margin: 8px 0 4px;
    line-height: 1.45;
  }

  body.com_eventbooking .eb-terms-and-conditions-container input[type="checkbox"] {
    width: 22px !important;
    height: 22px !important;
    margin: 2px 0 0 !important;
  }

  body.com_eventbooking .ec-checkout-actions {
    gap: 12px;
    margin-top: 24px;
    padding-top: 22px;
  }

  /* Confirmation page */
  .ec-registration-confirmation main,
  .ec-registration-confirmation .t4-main-body,
  .ec-registration-confirmation .eb-container {
    width: 100% !important;
    max-width: 100%;
    overflow-x: hidden;
  }

  .ec-registration-confirmation .t4-main-body > .container,
  .ec-registration-confirmation main > .container,
  .ec-registration-confirmation .component > .container,
  .ec-registration-confirmation .component-inner,
  .ec-registration-confirmation .item-page {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 12px !important;
    padding-left: 12px !important;
    box-sizing: border-box;
  }

  .ec-registration-confirmation .eb-container {
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  .ec-registration-confirmation .eb-page-heading,
  .ec-registration-confirmation .page-header h1,
  .ec-registration-confirmation main > h1 {
    margin: 24px 0 18px !important;
    font-size: clamp(2rem, 10vw, 2.75rem) !important;
    line-height: 1.05 !important;
    overflow-wrap: anywhere;
  }

  .ec-registration-confirmation .eb-message,
  .ec-registration-confirmation .eb-message p {
    font-size: 1rem !important;
    line-height: 1.55 !important;
  }

  .ec-registration-confirmation .eb-heading {
    margin: 28px 0 16px !important;
    font-size: 1.5rem !important;
    line-height: 1.2 !important;
    overflow-wrap: anywhere;
  }

  .ec-responsive-confirmation-table,
  .ec-responsive-confirmation-table tbody,
  .ec-responsive-confirmation-table tr,
  .ec-responsive-confirmation-table td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .ec-responsive-confirmation-table {
    border: 0 !important;
    background: transparent !important;
  }

  .ec-responsive-confirmation-table thead {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
  }

  .ec-responsive-confirmation-table tbody tr {
    margin: 0 0 16px !important;
    padding: 8px 14px !important;
    border: 1px solid rgba(76, 12, 71, .12) !important;
    border-radius: 18px;
    background: #fffaf5 !important;
    box-shadow: 0 10px 28px rgba(44, 33, 24, .06);
  }

  .ec-responsive-confirmation-table tbody td {
    display: flex !important;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 5px;
    padding: 11px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(76, 12, 71, .09) !important;
    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  .ec-responsive-confirmation-table tbody td:last-child {
    border-bottom: 0 !important;
  }

  .ec-responsive-confirmation-table tbody td::before {
    content: attr(data-label) " :";
    color: #4c0c47;
    font-weight: 800;
    flex: 0 0 auto;
  }

  .ec-registration-confirmation .ec-confirmation-pair {
    display: flex !important;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 5px;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 12px !important;
  }

  .ec-registration-confirmation .ec-confirmation-pair > * {
    width: auto !important;
    max-width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
  }

  .ec-registration-confirmation .ec-confirmation-pair > :first-child {
    flex: 0 0 auto;
    color: #4c0c47;
    font-weight: 800;
  }

  .ec-registration-confirmation .ec-confirmation-pair > :last-child {
    flex: 0 1 auto;
    overflow-wrap: anywhere;
  }
}
