.rick-thankyou-page {
  padding: 24px 16px 48px;
}

.rick-thankyou-shell {
  max-width: 1120px;
  margin: 0 auto;
}

.rick-thankyou-hero {
  padding: 32px;
  margin-bottom: 24px;
  border: 1px solid #e7ddd2;
  background: #faf7f2;
  border-radius: 8px;
  text-align: center;
}

.rick-thankyou-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #008000;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.rick-thankyou-hero h1 {
  margin: 0 0 10px;
  font-size: 40px;
  line-height: 1.1;
}

.rick-thankyou-hero p {
  margin: 0;
  font-size: 17px;
}

.rick-thankyou-summary {
  margin-bottom: 24px;
}

.rick-thankyou-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}

.rick-thankyou-main {
  grid-row: span 2;
}

.rick-thankyou-card {
  padding: 28px;
  border: 1px solid #e7ddd2;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.rick-card-header {
  margin-bottom: 18px;
}

.rick-card-header h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.rick-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.rick-summary-item,
.rick-detail-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rick-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}

.rick-label-total {
    font-size: 18px;
    opacity: 1;
    color: #ed2e38;
    font-weight: 700;
}

.rick-value {
  font-size: 16px;
  line-height: 1.5;
}

.rick-items-wrap {
  overflow-x: auto;
}

.rick-items-table {
  width: 100%;
  border-collapse: collapse;
}

.rick-items-table th,
.rick-items-table td {
  padding: 14px 10px;
  border-bottom: 1px solid #eee6dd;
  text-align: left;
  vertical-align: top;
}

.rick-items-table thead th {
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rick-items-table tfoot th,
.rick-items-table tfoot td {
  border-bottom: none;
  padding-top: 12px;
}

.rick-detail-list {
  display: grid;
  gap: 16px;
}

.rick-address-block,
.rick-note-block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #eee6dd;
}

.rick-note-block p:last-child {
  margin-bottom: 0;
}

.rick-care-list {
  margin: 0;
  padding-left: 20px;
}

.rick-care-list li + li {
  margin-top: 10px;
}

.rick-thankyou-total-card {
  margin-top: 24px;
}

.rick-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.rick-total-value {
  font-size: 28px;
  font-weight: 600;
  color: #ed2e38;
}

.rick-thankyou-actions {
  margin-top: 24px;
  text-align: center;
}

.rick-thankyou-button {
  display: inline-block;
  text-decoration: none;
}

.rick-thankyou-empty {
  max-width: 900px;
  margin: 24px auto;
  padding: 24px;
  border: 1px solid #e7ddd2;
  background: #fff8f8;
  border-radius: 8px;
}

/* Hide the default WooCommerce thank-you output underneath the custom shortcode page */
.woocommerce-order,
.woocommerce-thankyou-order-received,
.woocommerce-order-overview,
.woocommerce-order-details,
.woocommerce-customer-details {
  display: none !important;
}

@media (max-width: 900px) {
  .rick-thankyou-grid,
  .rick-summary-grid {
    grid-template-columns: 1fr;
  }

  .rick-thankyou-main {
    grid-row: auto;
  }

  .rick-thankyou-hero h1 {
    font-size: 32px;
  }

  .rick-total-row {
    flex-direction: column;
    align-items: flex-start;
  }
}