.termsaccept-dialog {
  width: calc(100% - 2rem);
  max-width: 50rem;
  max-height: calc(100% - 2rem);
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: #000000;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
}

.termsaccept-dialog[open] {
  display: flex;
  flex-direction: column;
}

.termsaccept-dialog::backdrop {
  background: rgba(0, 0, 0, .6);
}

.termsaccept-dialog-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid #dddddd;
}

.termsaccept-dialog-title {
  margin: 0;
  font-size: 1.25rem;
}

.termsaccept-dialog-body {
  flex: 1 1 auto;
  padding: 1rem;
  overflow-y: auto;
  overflow-wrap: break-word;
  text-align: left;
}

.termsaccept-dialog-body:focus {
  outline: 3px solid #004B93;
  outline-offset: -3px;
}

.termsaccept-dialog-body img {
  max-width: 100%;
  height: auto;
}

#content .termsaccept-box {
  margin-bottom: 1rem;
  text-align: center;
}

#content .termsaccept-box .custom-checkbox {
  display: inline-block;
  max-width: 100%;
}

#content .termsaccept-box .custom-checkbox > label {
  padding-left: 0;
  text-align: center;
}

#content .termsaccept-box .custom-checkbox input[type=checkbox] + span {
  position: static;
  margin-top: 0;
}

body#checkout .termsaccept-step-label {
  display: inline-flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 100%;
  margin: 0;
  padding: .25rem 0;
  font-size: 1.125rem;
  line-height: 1.6;
  text-align: left;
  cursor: pointer;
}

body#checkout .termsaccept-step-label input[type=checkbox] {
  flex: 0 0 auto;
  width: 1.75rem;
  height: 1.75rem;
  margin: .05rem 0 0;
  accent-color: #004B93;
  cursor: pointer;
}

body#checkout .termsaccept-step-label input[type=checkbox]:focus-visible {
  outline: 3px solid #004B93;
  outline-offset: 2px;
}

body#checkout .termsaccept-step-label input[aria-invalid="true"] {
  outline: 3px solid #b30000;
  outline-offset: 2px;
}

body#checkout .termsaccept-step-text {
  flex: 1 1 auto;
  min-width: 0;
}

@media (min-width: 768px) {
  body#checkout .termsaccept-step-field {
    text-align: center;
  }
}

html.termsaccept-dialog-open {
  overflow: hidden;
}

@media (max-width: 575px) {
  .termsaccept-dialog {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    border-radius: 0;
  }
}
