.euwm-frontend.euwm-design-customized .euwm-btn {
  border-style: solid;
  border-width: 1px;
  box-sizing: border-box;
  max-width: 100%;
  width: var(--euwm-button-width);
}

.euwm-frontend.euwm-design-customized .euwm-btn-primary {
  background-color: var(--euwm-primary-bg);
  border-color: var(--euwm-primary-border);
  border-radius: var(--euwm-primary-radius);
  color: var(--euwm-primary-text);
  font-size: var(--euwm-primary-font-size);
  font-weight: var(--euwm-primary-font-weight);
  padding: var(--euwm-primary-padding-y) var(--euwm-primary-padding-x);
}

.euwm-frontend.euwm-design-customized .euwm-btn-primary:active,
.euwm-frontend.euwm-design-customized .euwm-btn-primary:focus,
.euwm-frontend.euwm-design-customized .euwm-btn-primary:hover {
  background-color: var(--euwm-primary-hover-bg);
  border-color: var(--euwm-primary-border);
  color: var(--euwm-primary-hover-text);
}

.euwm-frontend.euwm-design-customized .euwm-btn-secondary {
  background-color: var(--euwm-secondary-bg);
  border-color: var(--euwm-secondary-border);
  border-radius: var(--euwm-secondary-radius);
  color: var(--euwm-secondary-text);
  font-size: var(--euwm-secondary-font-size);
  font-weight: var(--euwm-secondary-font-weight);
  padding: var(--euwm-secondary-padding-y) var(--euwm-secondary-padding-x);
}

.euwm-frontend.euwm-design-customized .euwm-btn-secondary:active,
.euwm-frontend.euwm-design-customized .euwm-btn-secondary:focus,
.euwm-frontend.euwm-design-customized .euwm-btn-secondary:hover {
  background-color: var(--euwm-secondary-hover-bg);
  border-color: var(--euwm-secondary-border);
  color: var(--euwm-secondary-hover-text);
}

.euwm-frontend.euwm-buttons-full .euwm-btn {
  display: block;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.euwm-products-table-wrap {
  background: #fff;
  border: 1px solid #dedede;
  border-radius: 0.375rem;
  box-shadow: 0 2px 8px rgb(0 0 0 / 6%);
  margin: 1.75rem 0 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.euwm-products-table {
  margin: 0;
  min-width: 880px;
}

.euwm-products-table thead th {
  background: #f3f3f3;
  border-bottom: 2px solid #d7d7d7;
  color: #414141;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  padding: 0.9rem 0.75rem;
  text-align: center;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: normal;
}

.euwm-products-table thead th:nth-child(2) {
  text-align: left;
}

.euwm-products-table tbody td {
  border-top: 1px solid #e7e7e7;
  padding: 1rem 0.75rem;
  vertical-align: middle;
}

.euwm-products-table tbody tr:first-child td {
  border-top: 0;
}

.euwm-product-row:has(.js-euwm-line-checkbox:checked) {
  background: #fbfeff;
}

.euwm-product-row--excluded {
  background: #f7f7f7;
}

.euwm-products-table__select {
  text-align: center;
  width: 82px;
}

.euwm-products-table__select input {
  accent-color: var(--euwm-primary-bg, #25a9c2);
  cursor: pointer;
  height: 1.25rem;
  margin: 0;
  width: 1.25rem;
}

.euwm-products-table__select input:disabled {
  cursor: not-allowed;
}

.euwm-product-cell {
  align-items: center;
  display: flex;
  gap: 0.9rem;
  min-width: 280px;
}

.euwm-product-cell__image {
  align-items: center;
  background: #f6f6f6;
  border: 1px solid #ececec;
  border-radius: 0.25rem;
  display: flex;
  flex: 0 0 72px;
  height: 72px;
  justify-content: center;
  overflow: hidden;
  width: 72px;
}

.euwm-product-cell__image img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.euwm-product-cell__details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.euwm-product-cell__details strong {
  color: #232323;
  font-size: 1rem;
}

.euwm-product-cell__attributes {
  color: #414141;
  font-weight: 600;
}

.euwm-products-table__number {
  color: #232323;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  width: 135px;
}

.euwm-products-table__quantity {
  text-align: center;
  width: 135px;
}

.euwm-products-table__quantity input {
  font-size: 1rem;
  font-weight: 700;
  height: 2.6rem;
  margin: 0 auto;
  max-width: 6rem;
  text-align: center;
}

.euwm-products-table__quantity .form-text {
  line-height: 1.2;
  margin-top: 0.35rem;
}

.euwm-selection-footer {
  align-items: center;
  background: #fff;
  border: 1px solid #dedede;
  border-radius: 0.375rem;
  box-shadow: 0 2px 8px rgb(0 0 0 / 6%);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
}

.js-euwm-selection-type {
  background: var(--euwm-primary-bg, #e9f7fa);
  border-radius: 2rem;
  color: var(--euwm-primary-text, #15758a);
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.3rem 0.8rem;
}

.euwm-selection-footer .btn {
  min-width: 10rem;
}

.euwm-postal-form {
  background: #f7f8f9;
  border: 1px solid #d9dde1;
  border-left: 4px solid var(--euwm-primary-bg, #25a9c2);
  border-radius: 0.375rem;
  margin-top: 1.25rem;
  padding: 1.25rem;
}

.euwm-postal-form .h4 {
  color: #232323;
  margin-bottom: 0.5rem;
}

.euwm-postal-form p {
  margin-bottom: 1rem;
}

.euwm-postal-form .btn-outline-secondary {
  background: #fff;
  border: 1px solid #6c757d;
  color: #414141;
}

.euwm-postal-form .btn-outline-secondary:focus,
.euwm-postal-form .btn-outline-secondary:hover {
  background: #eef0f2;
  color: #232323;
}

.euwm-summary-line {
  border-bottom: 1px solid #ddd;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.euwm-summary-line:last-child {
  border-bottom: 0;
}

.euwm-withdrawal-detail__summary {
  border-left: 4px solid var(--euwm-primary-bg, #25a9c2);
}

.euwm-withdrawal-detail__summary .h3 {
  margin-bottom: 1.25rem;
  overflow-wrap: anywhere;
}

.euwm-withdrawal-detail__summary dd {
  overflow-wrap: anywhere;
}

.euwm-withdrawal-detail__section {
  margin-top: 2rem;
}

.euwm-withdrawal-items,
.euwm-withdrawal-history {
  margin-bottom: 0;
}

.euwm-withdrawal-item {
  align-items: center;
  border-bottom: 1px solid #ddd;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  padding: 1rem 0;
}

.euwm-withdrawal-item__image {
  background: #f6f6f6;
  border: 1px solid #ececec;
  border-radius: 0.25rem;
  flex: 0 0 80px;
  height: 80px;
  object-fit: contain;
  width: 80px;
}

.euwm-withdrawal-item__description {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.euwm-withdrawal-item__values {
  display: flex;
  flex: 0 0 auto;
  gap: 2rem;
  text-align: right;
}

.euwm-withdrawal-item__values dt {
  color: #6c757d;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.euwm-withdrawal-item__values dd {
  color: #232323;
  font-weight: 700;
  margin-bottom: 0;
}

.euwm-withdrawal-history {
  border-left: 2px solid #d9dde1;
  margin-left: 0.45rem;
  padding-left: 1.5rem;
}

.euwm-withdrawal-history__entry {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0 0 1.25rem;
  position: relative;
}

.euwm-withdrawal-history__entry::before {
  background: var(--euwm-primary-bg, #25a9c2);
  border: 3px solid #fff;
  border-radius: 50%;
  content: '';
  height: 0.9rem;
  left: -1.98rem;
  position: absolute;
  top: 0.15rem;
  width: 0.9rem;
}

.euwm-withdrawal-history__entry time {
  color: #6c757d;
  font-size: 0.875rem;
}

.euwm-customer-withdrawals + .euwm-eligible-orders {
  margin-top: 2.5rem;
}

.euwm-customer-table-wrap {
  margin-top: 1rem;
}

.euwm-customer-table {
  margin-bottom: 0;
}

.euwm-customer-table th,
.euwm-customer-table td {
  vertical-align: middle;
}

.euwm-customer-table .euwm-btn {
  white-space: nowrap;
}

.euwm-type-badge {
  background: var(--euwm-primary-bg, #e9f7fa);
  border: 1px solid var(--euwm-primary-border, #b8e4ec);
  border-radius: 2rem;
  color: var(--euwm-primary-text, #15758a);
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
}

.euwm-empty-message {
  background: #f7f8f9;
  border-left: 4px solid var(--euwm-primary-bg, #25a9c2);
  margin: 1rem 0 0;
  padding: 1rem;
}

@media (max-width: 575px) {
  .euwm-products-table-wrap {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }

  .euwm-selection-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .euwm-selection-footer .btn {
    width: 100%;
  }

  .euwm-postal-form .btn {
    margin-right: 0 !important;
    text-align: center;
    width: 100%;
  }

  .euwm-withdrawal-detail__summary dt {
    margin-top: 0.6rem;
  }

  .euwm-withdrawal-item,
  .euwm-withdrawal-item__values {
    align-items: stretch;
    flex-direction: column;
  }

  .euwm-withdrawal-item__values {
    gap: 0.75rem;
    text-align: left;
  }

  .euwm-withdrawal-item__image {
    flex-basis: 72px;
    height: 72px;
    width: 72px;
  }

  .euwm-customer-table-wrap {
    overflow: visible;
  }

  .euwm-customer-table,
  .euwm-customer-table tbody,
  .euwm-customer-table tr,
  .euwm-customer-table th,
  .euwm-customer-table td {
    display: block;
    width: 100%;
  }

  .euwm-customer-table thead {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }

  .euwm-customer-table tr {
    background: #fff;
    border: 1px solid #dedede;
    border-left: 4px solid var(--euwm-primary-bg, #25a9c2);
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0.75rem;
  }

  .euwm-customer-table th,
  .euwm-customer-table td {
    border: 0;
    padding: 0.5rem 0;
    text-align: right;
  }

  .euwm-customer-table th::before,
  .euwm-customer-table td::before {
    color: #6c757d;
    content: attr(data-label);
    float: left;
    font-size: 0.75rem;
    font-weight: 700;
    padding-right: 1rem;
    text-align: left;
    text-transform: uppercase;
  }

  .euwm-customer-table th::after,
  .euwm-customer-table td::after {
    clear: both;
    content: '';
    display: table;
  }
}
