/* Design tokens (--uni-*) live in the theme's style.css */

.course-details-popup {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  z-index: 99;
}

.course-details-overlay {
  position: absolute;
  inset: 0;
  background: var(--uni-backdrop);
  cursor: pointer;
}

.woocommerce div.product form.cart {
  margin: 0 !important;
  grid-auto-flow: row;
}

#course_details_btn {
  margin-bottom: 1rem;
  text-wrap: auto;
  font-size: 1rem;
  border: 2px solid var(--uni-teal);
  border-radius: var(--uni-radius);
  color: var(--uni-teal);
  background: transparent;
  transition: var(--uni-transition);
}

#course_details_btn:hover {
  background: var(--uni-teal);
  color: white;
}

/* Card + close button: .uni-popup-card / .uni-popup-close in style.css */

/* Fields: same look as the product forms (product-forms.css), on white */

#popup_form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.popup-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.popup-form-field label {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--uni-blue);
  cursor: pointer;
}

.popup-form-required {
  color: var(--uni-teal);
  margin-left: 2px;
}

.popup-form-field input,
.popup-form-field textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  margin: 0;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--uni-border);
  border-radius: var(--uni-radius);
  background: #fff;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.popup-form-field textarea {
  min-height: 6rem;
  resize: vertical;
}

.popup-form-field input:focus,
.popup-form-field textarea:focus {
  outline: none;
  border-color: var(--uni-teal);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--uni-teal) 20%, transparent);
}

.success-or-error-message-popup:empty {
  display: none;
}

.success-or-error-message-popup .wc-block-components-notice-banner {
  margin: 0;
}

/* GDPR consent */

.gdpr-consent-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.gdpr-consent-wrapper input {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin: 0.15rem 0 0;
  accent-color: var(--uni-teal);
  cursor: pointer;
}

.gdpr-consent-wrapper label {
  cursor: pointer;
}

.gdpr-consent-wrapper a {
  color: var(--uni-blue);
}

.gdpr-consent-wrapper a:hover {
  text-decoration: none;
}

/* Submit */

#submit_btn {
  width: 100%;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: var(--uni-radius);
  background: var(--uni-teal);
  color: #fff;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: var(--uni-transition);
}

#submit_btn:hover,
#submit_btn:focus-visible {
  background: var(--uni-blue);
}
