@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

.eu-modal-overlay,
.eu-modal-content,
.eu-withdrawal-page-wrapper {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.eu-modal-content :where(input, select, textarea, button),
.eu-withdrawal-page-wrapper :where(input, select, textarea, button) {
  font-family: inherit;
}

.eu-withdrawal-container {
  display: inline-block;
  margin: 10px 0;
}

.eu-withdrawal-page-wrapper {
  margin: 24px auto;
  max-width: 680px;
  padding: 0 16px;
}

.eu-withdrawal-page {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.eu-withdrawal-page .eu-form-actions {
  text-align: right;
}

.eu-withdrawal-page .eu-form-actions-split {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.eu-withdrawal-page-form .eu-page-header {
  margin-bottom: 0;
  padding-bottom: 16px;
}

.eu-withdrawal-page-form .eu-withdrawal-page {
  overflow: hidden;
}

.eu-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.eu-page-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
}

.eu-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.eu-modal-content {
  background: #fff;
  border-radius: 8px;
  width: 90%;
  max-width: 560px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.eu-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f9fafb;
}

.eu-modal-header h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
  flex: 1;
  min-width: 0;
}

.eu-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.eu-lang-dropdown {
  position: relative;
  display: inline-block;
}

.eu-lang-dropbtn {
  background-color: #f3f4f6;
  color: #374151;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.eu-lang-dropbtn:hover {
  background-color: #e5e7eb;
}

.eu-drop-icon {
  font-size: 0.65rem;
  transition: transform 0.2s;
}

.eu-lang-dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #ffffff;
  min-width: 120px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  z-index: 100;
  border-radius: 6px;
  margin-top: 4px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}


.eu-lang-dropdown-content.show {
  display: block;
}

.eu-lang-dropdown-content button {
  color: #374151;
  padding: 10px 16px;
  text-decoration: none;
  display: block;
  width: 100%;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.eu-lang-dropdown-content button:hover {
  background-color: #f3f4f6;
  color: #2563eb;
}

.eu-close-btn {
  background: transparent;
  border: none;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 1.4rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  color: #101011;
  background-color: #e1e2e4;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.eu-close-btn:hover {
  background-color: #101011;
  color: #e1e2e4;
}

.eu-close-btn:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.eu-modal-body {
  padding: 20px;
  overflow-y: auto;
  max-height: 80vh;
}

.eu-form-group {
  margin-bottom: 15px;
}

.eu-form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #374151;
  font-size: 0.875rem;
}

.eu-required {
  color: #dc2626;
  font-weight: 600;
  margin-left: 2px;
}

.eu-required-legend {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  font-size: 0.8rem;
  color: #6b7280;
  text-align: right;
  white-space: nowrap;
}

.eu-form-group input[type="text"],
.eu-form-group input[type="email"],
.eu-form-group select,
.eu-form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  color: #111827;
  box-sizing: border-box;
}

.eu-form-group input:focus,
.eu-form-group select:focus,
.eu-form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px #2563eb;
}

.eu-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.eu-checkbox-group input[type="checkbox"] {
  margin-top: 3px;
}
.eu-checkbox-group label {
  font-weight: normal;
  color: #4b5563;
  line-height: 1.4;
}

.eu-form-actions {
  margin-top: 20px;
  text-align: right;
}

.eu-form-actions-split {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.eu-btn-primary,
.eu-btn-secondary {
  appearance: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  padding: 12px 18px;
  min-height: 42px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.eu-btn-primary {
  border: 0;
  background: #003399;
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 128, 96, 0.25);
}

.eu-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 128, 96, 0.32);
}

.eu-btn-primary:focus-visible,
.eu-btn-secondary:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
}

.eu-btn-primary:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

.eu-btn-secondary {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
}

.eu-btn-secondary:hover {
  background: #f3f4f6;
}

.eu-products-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 10px;
}

.eu-withdrawal-page-wrapper .eu-products-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 520px) {
  .eu-withdrawal-page-wrapper .eu-products-list {
    grid-template-columns: 1fr;
  }
}

.eu-product-card {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.eu-product-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 4px 14px rgba(0, 51, 153, 0.08);
}

.eu-product-card--selected {
  border-color: #003399;
  background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
  box-shadow: 0 0 0 1px rgba(0, 51, 153, 0.15);
}

.eu-product-card:not(.eu-product-card--selected) {
  opacity: 0.65;
}

.eu-product-card:not(.eu-product-card--selected):hover {
  opacity: 0.85;
}

.eu-product-check {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eu-product-card-inner {
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding: 12px;
  min-height: 88px;
}

.eu-product-card-media {
  flex-shrink: 0;
}

.eu-product-img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  background: #f3f4f6;
  display: block;
  border: 1px solid #e5e7eb;
}

.eu-product-img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #9ca3af;
}

.eu-product-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.eu-product-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.eu-product-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.eu-product-tick {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e5e7eb;
  color: transparent;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.eu-product-card--selected .eu-product-tick {
  background: #003399;
  color: #fff;
  transform: scale(1.05);
}

.eu-product-variant {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.3;
}

.eu-product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.eu-product-available {
  font-size: 0.7rem;
  font-weight: 500;
  color: #6b7280;
  white-space: nowrap;
}

.eu-qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  flex-shrink: 0;
}

.eu-product-card--selected .eu-qty-stepper {
  border-color: #c7d2fe;
}

.eu-qty-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: #f9fafb;
  color: #374151;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.eu-qty-btn:hover:not(:disabled) {
  background: #eef2ff;
  color: #003399;
}

.eu-qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.eu-product-qty {
  width: 36px;
  padding: 4px 2px;
  border: 0;
  border-left: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
  border-radius: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  background: #fff;
  color: #111827;
  -moz-appearance: textfield;
}

.eu-product-qty::-webkit-outer-spin-button,
.eu-product-qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.eu-product-qty:disabled {
  background: #f3f4f6;
  color: #9ca3af;
}

.eu-confirm-success-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #003399;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eu-confirm-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
  text-align: center;
}

.eu-confirm-message {
  margin: 0 0 20px;
  font-size: 0.9rem;
  color: #4b5563;
  text-align: center;
  line-height: 1.5;
}

.eu-confirm-details {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.eu-confirm-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 0.875rem;
}

.eu-confirm-row + .eu-confirm-row {
  border-top: 1px solid #e5e7eb;
}

.eu-confirm-label {
  color: #6b7280;
  font-weight: 500;
  flex-shrink: 0;
}

.eu-confirm-value {
  color: #111827;
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.eu-confirm-products-label {
  margin: 0 0 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.eu-confirm-products {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.eu-confirm-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.eu-confirm-product-img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  background: #f3f4f6;
  flex-shrink: 0;
}

.eu-confirm-product-img.eu-confirm-product-img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #9ca3af;
}

.eu-confirm-product-info {
  flex: 1;
  min-width: 0;
}

.eu-confirm-product-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #111827;
}

.eu-confirm-product-variant {
  font-size: 0.8rem;
  color: #6b7280;
}

.eu-confirm-product-qty {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 2px;
}

.eu-powered-by {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.2;
  color: #6b7280;
  text-align: center;
}

.eu-alert {
  padding: 10px;
  border-radius: 6px;
  margin-top: 15px;
  font-size: 0.875rem;
}
.eu-alert-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.eu-alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
