.mapro-pce-packages {
  align-items: start;
  display: grid;
  gap: clamp(16px, 2vw, 24px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  margin-inline: auto;
  max-width: 1760px;
  width: 100%;
}

.mapro-pce-card,
.mapro-pce-message,
.mapro-pce-balance-form {
  background: #ffffff;
  border: 1px solid #dfdfdf;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.mapro-pce-card {
  overflow: hidden;
  padding: 0;
  width: 100%;
}

.mapro-pce-card-top {
  align-items: center;
  background: #111111;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 13px clamp(16px, 4vw, 22px);
}

.mapro-pce-badge,
.mapro-pce-code {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.mapro-pce-code {
  color: #d7b46a;
}

.mapro-pce-card-header {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 30px) clamp(18px, 4vw, 26px) 18px;
}

.mapro-pce-card h3 {
  color: #111111;
  font-size: clamp(24px, 1.55vw, 34px);
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.mapro-pce-price {
  align-items: baseline;
  background: #f7f7f7;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
  padding: 12px 14px;
  text-align: left;
}

.mapro-pce-price span {
  color: #777777;
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.mapro-pce-price strong {
  color: #111111;
  display: inline-block;
  font-size: clamp(24px, 1.9vw, 32px);
  line-height: 1.05;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.mapro-pce-meta {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 clamp(18px, 4vw, 26px) 20px;
}

.mapro-pce-meta div {
  background: #f5f5f5;
  border: 1px solid #e7e7e7;
  border-radius: 8px;
  min-width: 0;
  padding: 14px 13px;
}

.mapro-pce-meta span {
  color: #707070;
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.mapro-pce-meta strong {
  color: #111111;
  display: block;
  font-size: clamp(18px, 1.4vw, 21px);
  overflow-wrap: anywhere;
}

.mapro-pce-features,
.mapro-pce-details ul {
  list-style: none;
  margin: 0;
  padding: 0 clamp(18px, 4vw, 26px);
}

.mapro-pce-features li,
.mapro-pce-details li {
  border-top: 1px solid #eeeeee;
  color: #4f4f4f;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.45;
  padding: 12px 0 12px 24px;
  position: relative;
}

.mapro-pce-features li::before,
.mapro-pce-details li::before {
  background: #d7b46a;
  border-radius: 999px;
  content: "";
  height: 8px;
  left: 4px;
  position: absolute;
  top: 21px;
  width: 8px;
}

.mapro-pce-details {
  border-top: 1px solid #eeeeee;
  margin: 0 clamp(18px, 4vw, 26px);
  padding: 14px 0 2px;
}

.mapro-pce-details summary {
  color: #111111;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.3;
}

.mapro-pce-details ul {
  padding: 10px 0 0;
}

.mapro-pce-checkout {
  background: #f7f7f7;
  border-top: 1px solid #dedede;
  margin-top: 22px;
  padding: 22px clamp(18px, 4vw, 26px) 24px;
}

.mapro-pce-card label,
.mapro-pce-balance-form label {
  color: #222222;
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 12px;
}

.mapro-pce-card input,
.mapro-pce-balance-form input {
  background: #ffffff;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  box-sizing: border-box;
  color: #111111;
  display: block;
  font-size: 16px;
  margin-top: 8px;
  min-height: 48px;
  padding: 10px 13px;
  width: 100%;
}

.mapro-pce-buy,
.mapro-pce-balance-form button {
  background: #111111;
  border: 1px solid #111111;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  min-height: 50px;
  padding: 13px 18px;
  text-transform: uppercase;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
  width: 100%;
}

.mapro-pce-buy:hover,
.mapro-pce-balance-form button:hover {
  background: #d7b46a;
  border-color: #d7b46a;
  color: #111111;
  transform: translateY(-1px);
}

.mapro-pce-buy:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.mapro-pce-error {
  color: #a50e0e;
  font-size: 13px;
  font-weight: 700;
  margin: 12px 24px 0;
}

.mapro-pce-message,
.mapro-pce-balance-form {
  padding: 20px;
}

.mapro-pce-balance-result {
  color: #111111;
  font-weight: 800;
  margin-top: 12px;
}

.mapro-pce-portal {
  background: #ffffff;
  border: 1px solid #dfdfdf;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.mapro-pce-portal-head {
  align-items: center;
  background: #111111;
  color: #ffffff;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: clamp(18px, 4vw, 28px);
}

.mapro-pce-portal-head span {
  color: #d7b46a;
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.mapro-pce-portal-head h2 {
  color: #ffffff;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
}

.mapro-pce-portal-head strong {
  color: #d9d9d9;
  font-size: 14px;
  overflow-wrap: anywhere;
  text-align: right;
}

.mapro-pce-wallet-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  padding: clamp(18px, 4vw, 28px);
}

.mapro-pce-wallet {
  background: #ffffff;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  padding: 18px;
}

.mapro-pce-wallet-top,
.mapro-pce-wallet-code,
.mapro-pce-wallet-foot {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.mapro-pce-wallet-top span,
.mapro-pce-wallet-foot span,
.mapro-pce-wallet-stats span {
  color: #707070;
  display: block;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.mapro-pce-wallet-top strong {
  background: #eef8f2;
  border-radius: 999px;
  color: #167c43;
  font-size: 11px;
  padding: 5px 9px;
}

.mapro-pce-wallet.is-empty .mapro-pce-wallet-top strong,
.mapro-pce-wallet.is-inactive .mapro-pce-wallet-top strong {
  background: #f8eeee;
  color: #9f1c1c;
}

.mapro-pce-wallet-code {
  background: #f7f7f7;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  margin: 16px 0;
  padding: 12px;
}

.mapro-pce-wallet-code code {
  background: transparent;
  color: #111111;
  font-size: 15px;
  font-weight: 900;
  overflow-wrap: anywhere;
  padding: 0;
}

.mapro-pce-copy-code {
  background: #111111;
  border: 1px solid #111111;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  min-height: 36px;
  padding: 8px 12px;
  text-transform: uppercase;
}

.mapro-pce-copy-code:disabled {
  cursor: default;
  opacity: 0.75;
}

.mapro-pce-wallet-meter {
  background: #eeeeee;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.mapro-pce-wallet-meter span {
  background: #d7b46a;
  display: block;
  height: 100%;
}

.mapro-pce-wallet-stats {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 16px 0;
}

.mapro-pce-wallet-stats div {
  background: #f7f7f7;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 12px;
}

.mapro-pce-wallet-stats strong,
.mapro-pce-wallet-foot strong {
  color: #111111;
  display: block;
  font-size: 18px;
  margin-top: 4px;
}

@media (max-width: 1180px) {
  .mapro-pce-packages {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  }
}

@media (max-width: 700px) {
  .mapro-pce-packages {
    gap: 16px;
    grid-template-columns: 1fr;
  }

  .mapro-pce-card h3 {
    font-size: clamp(24px, 7.2vw, 32px);
  }

  .mapro-pce-price strong {
    font-size: clamp(23px, 8vw, 30px);
  }

  .mapro-pce-meta {
    grid-template-columns: 1fr;
  }

  .mapro-pce-portal-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .mapro-pce-portal-head strong {
    text-align: left;
  }

  .mapro-pce-wallet-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .mapro-pce-card-top {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
  }

  .mapro-pce-price {
    align-items: flex-start;
    flex-direction: column;
  }

  .mapro-pce-price strong {
    text-align: left;
  }

  .mapro-pce-wallet-code {
    align-items: stretch;
    flex-direction: column;
  }
}
