/* EU Presta Withdrawal - front styles */
.eupw-sticky {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.eupw-sticky-btn,
.eupw-btn {
  border: 0;
  border-radius: 6px;
  padding: 12px 20px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.eupw-sticky-btn,
.eupw-btn-primary {
  background: #dc3545;
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(220, 53, 69, .22);
}

.eupw-sticky-btn:hover,
.eupw-btn-primary:hover {
  background: #c82333;
  color: #fff !important;
  transform: translateY(-1px);
}

.eupw-sticky-link {
  font-size: 12px;
  color: #555 !important;
  background: #fff;
  padding: 5px 9px;
  border-radius: 4px;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
}

.eupw-modal[aria-hidden="true"] {
  display: none;
}

.eupw-modal[aria-hidden="false"] {
  display: block;
}

.eupw-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 9998;
}

.eupw-modal-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  width: min(760px, calc(100vw - 30px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 18px 56px rgba(0, 0, 0, .28);
}

.eupw-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: transparent;
  border: 0;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  color: #333;
}

.eupw-modal-open {
  overflow: hidden;
}

.eupw-page {
  max-width: 960px;
  margin: 35px auto 55px;
  padding: 0 15px;
}

.eupw-page .page-header {
  margin-bottom: 20px;
  text-align: center;
}

.eupw-page .page-header h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 800;
  color: #222;
}

.eupw-page-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .07);
}

.eupw-form-wrapper {
  max-width: 760px;
  margin: 0 auto;
  color: #333;
}

.eupw-form-title {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 800;
  color: #222;
}

.eupw-form-description {
  margin: 0 0 24px;
  color: #666;
  line-height: 1.6;
}

.eupw-step h3 {
  margin: 0 0 16px;
  font-size: 22px;
  color: #222;
}

.eupw-field {
  margin-bottom: 18px;
}

.eupw-field label {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
  color: #333;
}

.eupw-field .required {
  color: #dc3545;
}

.eupw-field input,
.eupw-field select {
  display: block;
  width: 100%;
  min-height: 46px;
  border: 1px solid #d6d9dd;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: #222;
  font-size: 15px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .03);
}

.eupw-field input:focus,
.eupw-field select:focus {
  outline: 0;
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, .12);
}

.eupw-field small {
  display: block;
  margin-top: 5px;
  color: #777;
  line-height: 1.45;
}

.eupw-alert {
  padding: 13px 15px;
  border-radius: 8px;
  margin-bottom: 18px;
  line-height: 1.45;
}

.eupw-alert-error {
  color: #842029;
  background: #f8d7da;
  border: 1px solid #f5c2c7;
}

.eupw-alert-success {
  color: #0f5132;
  background: #d1e7dd;
  border: 1px solid #badbcc;
}

.eupw-btn-secondary {
  background: #e9ecef;
  color: #333 !important;
  box-shadow: none;
}

.eupw-btn-secondary:hover {
  background: #dfe3e7;
  color: #222 !important;
}

.eupw-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.eupw-summary-head {
  background: #f8f9fa;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.eupw-summary-head p {
  margin: 0 0 7px;
}

.eupw-summary-head p:last-child {
  margin-bottom: 0;
}

.eupw-items > p {
  margin-bottom: 10px;
}

.eupw-item {
  display: grid;
  grid-template-columns: 28px 1fr auto 96px;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.eupw-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.eupw-item-name {
  font-weight: 700;
  color: #222;
}

.eupw-item-total {
  color: #555;
  white-space: nowrap;
}

.eupw-item-qty {
  width: 96px !important;
  min-height: 38px !important;
  padding: 6px 8px !important;
}

.eupw-withdrawal-total {
  margin-top: 16px;
  text-align: right;
  font-size: 18px;
}

.eupw-done-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #198754;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 14px;
}

.eupw-order-detail-box {
  margin: 20px 0;
  padding: 18px;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  background: #fff;
}

@media (max-width: 768px) {
  .eupw-page {
    margin: 22px auto 35px;
  }

  .eupw-page .page-header h1 {
    font-size: 26px;
  }

  .eupw-page-card,
  .eupw-modal-box {
    padding: 22px;
    border-radius: 10px;
  }

  .eupw-sticky {
    right: 12px;
    bottom: 12px;
  }
}

@media (max-width: 640px) {
  .eupw-item {
    grid-template-columns: 28px 1fr;
  }

  .eupw-item-total,
  .eupw-item-qty {
    grid-column: 2;
  }

  .eupw-actions .eupw-btn {
    width: 100%;
  }
}
