.hm-pay-page,
.hm-pay-page * {
  box-sizing: border-box;
}

.hm-pay-page {
  width: 100%;
  max-width: 460px;
  margin: 20px auto;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #e5e9e6;
  border-radius: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
  color: #171b18;
  font-family: Arial, Helvetica, sans-serif;
}

.hm-pay-status {
  text-align: center;
  padding: 8px 0 0;
}

.hm-clock {
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef8f0;
  border-radius: 50%;
  color: #23833a;
  font-size: 35px;
}

.hm-pay-status h1 {
  margin: 0;
  color: #25823b;
  font-size: 24px;
  line-height: 1.2;
}

.hm-pay-status > p {
  margin: 8px 0 18px;
  color: #626963;
  font-size: 15px;
}

.hm-pay-summary {
  min-height: 66px;
  padding: 13px 12px;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid #dfe5e1;
  border-radius: 11px;
}

.hm-pay-summary strong {
  font-size: 20px;
}

.hm-pay-summary div:first-child strong {
  color: #25823b;
  font-size: 25px;
}

.hm-pay-summary > span {
  width: 1px;
  height: 32px;
  background: #dfe4e1;
}

.hm-security {
  margin: 16px 0;
  padding: 12px 6px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #e0e5e2;
  border-radius: 11px;
}

.hm-security-item {
  min-width: 0;
  padding: 0 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-right: 1px solid #e2e6e3;
}

.hm-security-item:last-child {
  border-right: none;
}

.hm-security-icon {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #28863e;
  border-radius: 50%;
  color: #28863e;
  font-size: 13px;
  font-weight: 700;
}

.hm-security-item strong,
.hm-security-item small {
  display: block;
}

.hm-security-item strong {
  font-size: 10px;
  line-height: 1.2;
}

.hm-security-item small {
  margin-top: 2px;
  color: #737a75;
  font-size: 8px;
  line-height: 1.2;
}

.hm-card {
  margin-top: 14px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #e0e5e2;
  border-radius: 13px;
}

.hm-card h2 {
  margin: 0 0 15px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 19px;
}

.hm-product-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
}

.hm-product-image {
  width: 110px;
  height: 110px;
  padding: 5px;
  border-radius: 11px;
  background: #faf9f6;
  object-fit: contain;
}

.hm-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #7a827c;
  font-size: 13px;
  background: #fafaf9;
  border: 1px dashed #d7ddd9;
}

.hm-product-info h2 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.35;
}

.hm-product-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 13px;
  color: #555d57;
  font-size: 13px;
}

.hm-free-delivery {
  display: block;
  margin-top: 12px;
  color: #29903f;
  font-size: 14px;
}

.hm-duitnow-logo {
  width: 27px;
  height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ed2f71;
  border-radius: 50%;
  color: #ffffff;
  font-size: 14px;
}

.hm-qr-image {
  display: block;
  width: 230px;
  max-width: 78%;
  height: auto;
  margin: 5px auto 18px;
  padding: 8px;
  border: 1px solid #dce2de;
  border-radius: 11px;
  background: #fff;
  object-fit: contain;
}

.hm-qr-info {
  padding-top: 13px;
  border-top: 1px solid #e6e9e7;
}

.hm-qr-info p {
  margin: 6px 0;
  font-size: 14px;
}

.hm-qr-info strong {
  margin-left: 5px;
}

.hm-qr-info p:first-child strong {
  color: #27863e;
}

.hm-verification-message {
  margin-top: 13px;
  padding: 10px 12px;
  background: #f0f8f2;
  border-radius: 7px;
  color: #45604b;
  font-size: 12px;
  line-height: 1.5;
}

.hm-bank-icon,
.hm-upload-icon {
  color: #27873d;
  font-size: 25px;
}

.hm-bank-row {
  min-height: 50px;
  padding: 8px 0;
  display: grid;
  grid-template-columns: 115px minmax(0, 1fr) 67px;
  gap: 7px;
  align-items: center;
  border-bottom: 1px solid #e7ebe8;
  font-size: 12px;
}

.hm-bank-row:last-child {
  border-bottom: none;
}

.hm-bank-row > span:first-child {
  color: #555d57;
}

.hm-bank-row strong {
  overflow-wrap: anywhere;
  font-weight: 600;
}

.hm-copy-btn {
  min-height: 35px;
  padding: 5px 7px;
  border: 1px solid #299341;
  border-radius: 7px;
  background: #ffffff;
  color: #23853a;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.hm-copy-btn:hover {
  background: #eef8f0;
}

.hm-copy-btn.hm-copied {
  background: #27873d;
  color: #ffffff;
}

.hm-upload-area {
  min-height: 130px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed #b9d7c0;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
}

.hm-upload-large-icon {
  margin-bottom: 7px;
  color: #2a9340;
  font-size: 43px;
}

.hm-upload-area strong {
  font-size: 14px;
}

.hm-upload-area small {
  margin-top: 6px;
  color: #717973;
  font-size: 11px;
}

.hm-upload-button {
  width: 100%;
  min-height: 51px;
  margin-top: 11px;
  border: none;
  border-radius: 7px;
  background: #23883b;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.hm-upload-button:hover {
  background: #1f7834;
}

.hm-attach-order-button {
  width: 100%;
  min-height: 46px;
  margin-top: 10px;
  border: 1px solid #27873d;
  border-radius: 7px;
  background: #ffffff;
  color: #27873d;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.hm-attach-order-button:hover {
  background: #eef8f0;
}

.hm-attach-order-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.hm-upload-preview {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 12px;
  border: 1px solid #e0e5e2;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
}

.hm-copy-message {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99999;
  padding: 10px 15px;
  border-radius: 7px;
  background: #222b24;
  color: #ffffff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 0.2s ease;
}

.hm-copy-message.hm-show {
  opacity: 1;
  transform: translateY(0);
}

.hm-thankyou-message {
  padding: 12px 0 0;
  font-size: 15px;
  color: #2d342f;
  line-height: 1.6;
}

@media (max-width: 420px) {
  .hm-pay-page {
    margin: 5px auto 25px;
    padding: 11px;
    border-radius: 16px;
    box-shadow: none;
  }

  .hm-pay-status h1 {
    font-size: 21px;
  }

  .hm-pay-summary strong {
    font-size: 16px;
  }

  .hm-pay-summary div:first-child strong {
    font-size: 22px;
  }

  .hm-product-card {
    grid-template-columns: 85px minmax(0, 1fr);
    gap: 11px;
  }

  .hm-product-image {
    width: 85px;
    height: 85px;
  }

  .hm-product-info h2 {
    font-size: 15px;
  }

  .hm-product-options {
    font-size: 11px;
    gap: 5px 8px;
  }

  .hm-bank-row {
    grid-template-columns: 100px minmax(0, 1fr) 63px;
    font-size: 11px;
  }
}