.drma {
  max-width: var(--drma-max-width, 980px);
  margin: 0 auto 48px;
  color: #202124;
}

.drma * {
  box-sizing: border-box;
}

.drma__card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: var(--drma-radius, 12px);
  box-shadow: var(--drma-shadow, none);
  padding: 28px;
}

.drma__header {
  text-align: center;
  margin-bottom: 28px;
}

.drma__logo {
  display: block;
  max-width: 165px;
  max-height: 70px;
  width: auto;
  height: auto;
  margin: 0 auto 18px;
  object-fit: contain;
}

.drma__intro {
  max-width: 720px;
  margin: 0 auto 8px;
  font-size: 1rem;
  line-height: 1.55;
  color: #3d3d3d;
}

.drma__deadline {
  margin: 0;
  font-size: .9rem;
  color: #6a6a6a;
}

.drma__step {
  animation: drmaFade .18s ease-out;
}

.drma-hidden {
  display: none !important;
}

.drma__field {
  margin-bottom: 18px;
}

.drma__field--spaced {
  margin-top: 28px;
}

.drma__field label,
.drma__line-controls label {
  display: block;
  margin: 0 0 7px;
  font-weight: 600;
  color: #222;
}

.drma input[type="text"],
.drma input[type="email"],
.drma input[type="date"],
.drma input[type="file"],
.drma select,
.drma textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cfcfcf;
  border-radius: 7px;
  background: #fff;
  color: #222;
  font: inherit;
  padding: 10px 12px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.drma textarea {
  min-height: 92px;
  resize: vertical;
}

.drma input:focus,
.drma select:focus,
.drma textarea:focus {
  outline: none;
  border-color: var(--drma-accent, #111);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, .1);
}

.drma input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--drma-accent, #111);
}

.drma small {
  display: block;
  margin-top: 6px;
  color: #6a6a6a;
  line-height: 1.4;
}

.drma__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  border: 1px solid var(--drma-button, #111);
  border-radius: 7px;
  background: var(--drma-button, #111);
  color: #fff;
  font: inherit;
  font-weight: 600;
  padding: 11px 20px;
  cursor: pointer;
  transition: opacity .15s ease, transform .15s ease;
}

.drma__button:hover,
.drma__button:focus {
  color: #fff;
  opacity: .9;
}

.drma__button:active {
  transform: translateY(1px);
}

.drma__button[disabled] {
  cursor: not-allowed;
  opacity: .48;
}

.drma__button--secondary {
  background: #fff;
  color: #222;
  border-color: #bdbdbd;
}

.drma__button--secondary:hover,
.drma__button--secondary:focus {
  color: #111;
  background: #f5f5f5;
}

#drma-lookup-submit {
  width: 100%;
}

.drma__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.drma__alert {
  border-radius: 8px;
  padding: 13px 15px;
  margin-bottom: 20px;
  line-height: 1.45;
}

.drma__alert--error {
  border: 1px solid #e4aaaa;
  background: #fff2f2;
  color: #8b1f1f;
}

.drma__alert--info {
  border: 1px solid #aac9e4;
  background: #f1f8ff;
  color: #244e70;
}

.drma__order-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  margin-bottom: 26px;
  border: 1px solid #e3e3e3;
  border-radius: 9px;
  background: #f8f8f8;
}

.drma__order-summary > div {
  min-width: 0;
}

.drma__eyebrow {
  display: block;
  margin-bottom: 3px;
  color: #747474;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.drma__order-summary strong {
  display: block;
  overflow-wrap: anywhere;
}

.drma__section-title {
  margin: 0 0 7px;
  color: #222;
  font-size: 1.35rem;
}

.drma__section-copy {
  margin: 0 0 20px;
  color: #606060;
}

.drma__lines {
  display: grid;
  gap: 18px;
}

.drma__line {
  display: grid;
  grid-template-columns: minmax(250px, .8fr) minmax(300px, 1.2fr);
  gap: 24px;
  padding: 20px;
  border: 1px solid #e1e1e1;
  border-radius: 10px;
  background: #fff;
}

.drma__product {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.drma__product-image {
  width: 92px;
  height: 118px;
  flex: 0 0 92px;
  border-radius: 7px;
  background: #f2f2f2;
  object-fit: cover;
}

.drma__product-image--empty {
  border: 1px solid #e6e6e6;
}

.drma__product-copy h3 {
  margin: 0 0 9px;
  color: #222;
  font-size: 1rem;
  line-height: 1.35;
}

.drma__product-copy p {
  margin: 0 0 5px;
  color: #626262;
  font-size: .88rem;
  line-height: 1.4;
}

.drma__line-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid #ececec;
}

.drma__line-details .drma__field:nth-last-child(-n+2),
.drma__line-details .drma__field:only-child {
  grid-column: 1 / -1;
}

.drma__reason-field,
.drma__line-attachments {
  grid-column: 1 / -1;
}

.drma__reason-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.drma__reason-option {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 10px;
  margin: 0 !important;
  border: 1px solid #dedede;
  border-radius: 7px;
  font-weight: 400 !important;
  cursor: pointer;
}

.drma__attachment-required {
  color: #a12727;
  font-weight: 500;
}

.drma__inline-error {
  margin: 0;
  color: #a12727;
}

.drma__review-list {
  display: grid;
  gap: 12px;
}

.drma__review-item {
  padding: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 9px;
  background: #fafafa;
}

.drma__review-item h3 {
  margin: 0 0 9px;
  font-size: 1rem;
}

.drma__review-item p {
  margin: 4px 0;
}

.drma__confirm {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
  font-weight: 600;
  cursor: pointer;
}

.drma__notice {
  margin: 17px 0 0;
  padding: 13px 15px;
  border-left: 3px solid var(--drma-accent, #111);
  background: #f6f6f6;
  color: #555;
  font-size: .9rem;
  line-height: 1.5;
}

#drma-step-success {
  text-align: center;
  padding: 24px 8px;
}

.drma__success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #1d7c43;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

#drma-step-success h2 {
  margin: 0 0 18px;
}

#drma-step-success p {
  margin: 7px auto;
  max-width: 680px;
}

.drma__legal {
  margin: 24px 0 0;
  color: #777;
  font-size: .8rem;
  text-align: center;
}

@keyframes drmaFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .drma__card {
    padding: 20px 15px;
  }

  .drma__order-summary {
    grid-template-columns: 1fr;
  }

  .drma__line {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }

  .drma__line-details,
  .drma__reason-list {
    grid-template-columns: 1fr;
  }

  .drma__line-details .drma__field {
    grid-column: 1;
  }

  .drma__actions {
    flex-direction: column-reverse;
  }

  .drma__actions .drma__button {
    width: 100%;
  }
}

/* 2.0.5 - Keep product text from overlapping the action controls.
 * Some custom themes create stacking/overflow conditions where the first
 * product column can sit invisibly above the first select. */
.drma__line > * {
  min-width: 0;
}

.drma__product {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.drma__product-copy {
  min-width: 0;
  max-width: 100%;
}

.drma__product-copy h3,
.drma__product-copy p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.drma__line-controls {
  min-width: 0;
  position: relative;
  z-index: 5;
  isolation: isolate;
}

.drma__line-controls .drma__field,
.drma__line-controls select,
.drma__line-controls textarea,
.drma__line-controls input {
  position: relative;
  z-index: 6;
}

.drma__line-controls select {
  pointer-events: auto !important;
  touch-action: manipulation;
}


/* 2.0.7 - Action controls use buttons instead of the theme/native select.
 * This avoids an interaction bug where the first action select could be
 * covered or intercepted by the storefront theme while later selects worked. */
.drma__action-choice {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  position: relative;
  z-index: 20;
  isolation: isolate;
}

.drma__action-choice .drma-action-button {
  appearance: none;
  -webkit-appearance: none;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid #cfcfcf;
  border-radius: 7px;
  background: #fff;
  color: #222;
  font: inherit;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  pointer-events: auto !important;
  position: relative;
  z-index: 21;
}

.drma__action-choice .drma-action-button:hover,
.drma__action-choice .drma-action-button:focus {
  border-color: var(--drma-accent, #111);
  outline: none;
}

.drma__action-choice .drma-action-button.is-active {
  border-color: var(--drma-button, #111);
  background: var(--drma-button, #111);
  color: #fff;
}

.drma__action-choice .drma-action-button[disabled] {
  cursor: not-allowed;
  opacity: .45;
}

@media (max-width: 520px) {
  .drma__action-choice {
    grid-template-columns: 1fr;
  }
}
\n\n/* 2.0.13 - isolate repeated RMA cards from storefront theme interaction layers. */\n#drma-app,\n#drma-step-items,\n#drma-lines {\n  position: relative;\n}\n\n#drma-lines {\n  isolation: isolate;\n  z-index: 1;\n}\n\n#drma-lines .drma__line {\n  position: relative !important;\n  isolation: isolate !important;\n  z-index: 1 !important;\n  overflow: visible !important;\n  pointer-events: auto !important;\n}\n\n#drma-lines .drma__line::before,\n#drma-lines .drma__line::after {\n  pointer-events: none !important;\n}\n\n#drma-lines .drma__line-controls {\n  position: relative !important;\n  z-index: 1000 !important;\n  pointer-events: auto !important;\n}\n\n#drma-lines .drma__action-choice,\n#drma-lines .drma__action-choice .drma-action-button {\n  position: relative !important;\n  z-index: 1001 !important;\n  pointer-events: auto !important;\n}\n\n#drma-lines .drma__product,\n#drma-lines .drma__product * {\n  z-index: 0 !important;\n}\n