/**
 * CLE Helper Components Styles
 */

/* Location Radio Buttons */
.dsba-location-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  padding: 0.5rem 0;
}

.dsba-location-radio {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  white-space: nowrap;
}

.dsba-location-radio input[type="radio"] {
  cursor: pointer;
  margin: 0;
  vertical-align: middle;
}

.dsba-location-radio span {
  user-select: none;
  line-height: 1;
}

@media (max-width: 600px) {
  .dsba-location-radios {
    gap: 0.75rem;
  }
}

/* Credit Field Components */
.dsba-credit-heading {
  font-weight: bold;
}

.dsba-credit-row {
  display: flex;
  align-items: center;
}

.dsba-credit-checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  padding: 0.5rem 0;
}

.dsba-credit-checkbox-row label {
  margin: 0;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.2;
}

/* The Wrapper */
.dsba-credit-id-wrapper {
  display: none;
  flex-direction: row;
  margin-left: 1.5rem;
}

/* The "Show" State */
.dsba-credit-id-wrapper.show {
  display: flex;
}

/* Input Row Styling */
.dsba-credit-id-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-height: 2.2rem;
}

.dsba-credit-id-label {
  font-weight: bold;
  font-size: 0.85em;
  width: 3.7em;
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Smaller Input Field */
.dsba-credit-id-wrapper .dsba-credit-id-input {
  width: 100px;
  padding: 0.25rem 0.5rem;
  border: 1px solid #ccc;
  border-radius: 3px;
  flex-shrink: 0;
}

/* Error Message Styling */
.dsba-credit-error-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1;
  line-height: 1.2;
}

.dsba-credit-error-message {
  display: none;
  color: #d32f2f;
  font-size: 0.8em;
  font-weight: bold;
}

.dsba-credit-error-wrapper.visible .dsba-credit-error-message {
  display: block;
}

.dsba-credit-disclaimer {
  font-size: 0.8em;
}

/* Accordion Section Components */
.dsba-accordion-button {
  cursor: pointer;
  margin-bottom: 1.25rem;
}

.dsba-accordion-heading {
  line-height: 2.5;
}

.dsba-accordion-content label {
  margin-left: 1.25rem;
}

.dsba-accordion-content input[type="checkbox"],
.dsba-accordion-content input[type="text"] {
  color: #000;
}

.dsba-accordion-content input[type="checkbox"] {
  margin-bottom: 0.4rem;
}

.dsba-accordion-barid-wrapper {
  display: inline;
}

.dsba-accordion-barid-input {
  width: 9.5rem;
  margin-left: 0.3rem;
}

/* Modal Content Sections */
.cle-modal-section {
  margin-bottom: 1.25rem;
}

.cle-modal-section-header {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.cle-modal-section-divider {
  padding-bottom: 0.94rem;
  border-bottom: 1px solid #eee;
}

.cle-cost-option {
  margin-bottom: 0.3rem;
}

.cle-cost-option label {
  font-weight: normal;
  cursor: pointer;
}

.cle-modal-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .dsba-credit-row {
    padding: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .dsba-credit-id-wrapper {
    margin-left: 0;
  }

  .dsba-credit-id-input-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    height: auto;
  }

  .dsba-credit-id-label {
    text-align: left;
    width: auto;
  }

  .dsba-credit-id-wrapper .dsba-credit-id-input {
    width: 100%;
    max-width: 200px;
  }

  .dsba-credit-error-wrapper {
    text-align: left;
    justify-content: flex-start;
  }

  .dsba-credit-error-message {
    text-align: left;
  }

  .dsba-credit-disclaimer {
    text-align: left;
  }
}
