.mub-budget {
  --mub-line: #34304b;
  --mub-text: #f4f1ff;
  --mub-muted: #c1b9d4;
  container-type: inline-size;
  min-width: 0;
  margin: 14px 0;
  overflow: hidden;
  color: var(--mub-text);
  background: #151122;
  border: 1px solid var(--mub-line);
  border-radius: 20px;
}

.mub-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, 35%);
  align-items: center;
  gap: clamp(8px, 3vw, 22px);
  min-width: 0;
  padding: clamp(16px, 3vw, 26px);
  background: linear-gradient(125deg, #261838, #19152d 58%, #172338);
  border-bottom: 1px solid var(--mub-line);
}

.mub-hero h3 {
  margin: 0;
  color: #e9dcff;
  font-size: clamp(.88rem, 2.4vw, 1.05rem);
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: .01em;
}

.mub-hero .mub-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 .45rem;
  margin: .15rem 0 .45rem;
  color: #fff;
  line-height: 1.08;
}

.mub-price strong {
  font-size: clamp(2.1rem, 6vw, 3.35rem);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.05em;
}

.mub-price span {
  font-size: .87rem;
  color: #e9dcff;
}

.mub-hero .mub-note,
.mub-conditions p {
  margin: 0;
  color: var(--mub-muted);
  font-size: .83rem;
  line-height: 1.5;
}

.mub-illustration {
  display: block;
  justify-self: end;
  width: 100%;
  max-width: 250px;
  height: auto;
  object-fit: cover;
  aspect-ratio: 2 / 1;
  border-radius: 11px;
}

.mub-budget .mub-table {
  table-layout: fixed;
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: .88rem;
  line-height: 1.45;
}

.mub-budget .mub-table th,
.mub-budget .mub-table td {
  padding: .62rem clamp(12px, 2.6vw, 22px);
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
  white-space: normal;
}

.mub-table thead th {
  color: #bfb3d5;
  background: #1c172b;
  font-size: .74rem;
  font-weight: 650;
}

.mub-table tbody th {
  font-weight: 610;
}

.mub-table tbody td {
  color: var(--mub-muted);
}

.mub-table tbody tr + tr,
.mub-table tfoot {
  border-top: 1px solid var(--mub-line);
}

.mub-summary th:first-child {
  width: 48%;
}

.mub-material {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  max-width: 100%;
}

.mub-material-copy { min-width: 0; overflow-wrap: anywhere; white-space: normal; }

.mub-icon {
  display: inline-grid;
  flex: 0 0 1.55rem;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 7px;
  background: #30214a;
  color: #d7bcff;
  font-size: .93rem;
  font-weight: 750;
  line-height: 1;
}

.mub-icon--pink { background: #41223f; color: #f8b5e3; }
.mub-icon--blue { background: #23334d; color: #b9d9ff; }
.mub-icon--yellow { background: #423225; color: #ffdb9c; }
.mub-icon--green { background: #233c38; color: #a8e8d2; }

.mub-details {
  border-top: 1px solid var(--mub-line);
}

.mub-details > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 8px clamp(12px, 2.6vw, 22px);
  list-style: none;
  cursor: pointer;
  color: #efdcff;
  background: #1d172d;
  font-size: .91rem;
  font-weight: 650;
}

.mub-details > summary::-webkit-details-marker { display: none; }
.mub-details > summary::after { content: '+'; color: #d8b7ff; font-size: 1.1rem; }
.mub-details[open] > summary::after { content: '−'; }
.mub-details > summary:focus-visible { outline: 2px solid #d6b3ff; outline-offset: -3px; }

.mub-timing-table th:nth-child(2) { width: 42%; }
.mub-timing-table td:nth-child(2),
.mub-timing-table td:last-child,
.mub-price-table td:last-child {
  font-variant-numeric: tabular-nums;
}
.mub-timing-table th:last-child,
.mub-timing-table td:last-child,
.mub-price-table th:last-child,
.mub-price-table td:last-child {
  text-align: right;
}
.mub-price-table thead th:last-child { width: clamp(72px, 25%, 110px); white-space: nowrap; }
.mub-price-table tbody td:last-child,
.mub-price-table tfoot td:last-child { color: #f1e4ff; font-weight: 650; }
.mub-price-table tfoot { background: #231933; }

.mub-conditions {
  display: grid;
  gap: .35rem;
  padding: .86rem clamp(12px, 2.6vw, 22px) 1rem;
  border-top: 1px solid var(--mub-line);
}

.mub-budget .mub-alert {
  margin: 0;
  padding: .75rem clamp(12px, 2.6vw, 22px);
  color: #ffd3d7;
  background: #36222f;
  border-bottom: 1px solid var(--mub-line);
  line-height: 1.45;
}

@container (max-width: 430px) {
  .mub-hero { grid-template-columns: minmax(0, 1fr) minmax(70px, 34%); gap: 8px; }
  .mub-hero .mub-note { font-size: .76rem; }
  .mub-budget .mub-table th, .mub-budget .mub-table td { padding-inline: 10px; }
  .mub-material { gap: .36rem; }
  .mub-icon { flex-basis: 1.25rem; width: 1.25rem; height: 1.25rem; font-size: .82rem; }
  .mub-summary th:first-child { width: 49%; }
}
