.cdst-wrapper {
  margin: 20px auto !important;
  padding: 0px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  border-radius: 10px;
  box-shadow: 0 0px 0px rgba(0, 0, 0, 0.0) !important;
  min-width: 200px;
  box-sizing: border-box;
}

.cdst-wrapper *,
.cdst-wrapper *::before,
.cdst-wrapper *::after {
  box-sizing: border-box;
}

.cdst-tab-buttons {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 0 !important;
  margin: 0 auto;
  width: 100%;
  min-width: 200px;
  max-width: 100%;
  text-align: center;
}

.cdst-content-wrapper {
  border-radius: 0 0 10px 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  min-width: 200px;
  max-width: 100%;
}

.cdst-tab-content {
  border-radius: 6px;
}

.cdst-description {
  margin: 10px 0 20px;
}

.cdst-description p {
  margin: 0 0 10px;
}

.cdst-description *:last-child {
  margin-bottom: 0;
}

.cdst-wrapper h2 {
  margin-top: 0px;
 text-transform: none !important;
}

.cdst-wrapper label {
  font-weight: bold;
  display: block;
  margin: 10px 0 5px;
}

.cdst-code {
  padding: 2px;
  font-size: 1rem;
  margin-bottom: 10px;
}

input  {
    height: 30px !important;
}

.cdst-show-promo {
  display: block;
  margin: 10px 0;
  color: #0073aa;
  text-decoration: none;
  font-size: 1rem;
}

.cdst-show-promo:hover {
  text-decoration: underline;
}

.cdst-price-box {
  margin-top: 20px;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.cdst-price-box h3 {
  margin-top: 0;
}

select {
  padding: 6px;
  width: 100%;
  max-width: 100%;
  margin: 10px 0;
}



/* Tab buttons should always show the pointer cursor, regardless of theme-default/custom-class mode. */
.cdst-tab-btn {
  cursor: pointer !important;
}

/* Fallback styles for tab buttons, applied only if not removed */
.cdst-wrapper:not(.cdst-tab-buttons-theme-default) .cdst-tab-btn:not(.cdst-tabs-only-first-start) {
  font-size: 1rem;
  border: 0px none #000000;
  cursor: pointer !important;
  margin: 0;
  border-radius: 6px 6px 0 0;
  transition: background-color 0.3s ease;
}

/* Styling for promo code messages */
.cdst-promo-section p {
  margin: 10px 0;
  font-size: 1rem;
}

.cdst-wrapper .cdst-promo-message {
  display: none;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 8px 0 0 !important;
  padding: 7px 10px 7px 8px;
  border: 1px solid rgba(185, 28, 28, 0.16);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(254, 242, 242, 0.98));
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  color: #7f1d1d !important;
  font-size: 0.875rem !important;
  font-weight: 650;
  line-height: 1.25;
}

.cdst-wrapper .cdst-promo-message.cdst-is-visible {
  display: flex !important;
}

.cdst-wrapper .cdst-promo-message::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-right: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 3px 8px rgba(185, 28, 28, 0.22);
}

.cdst-wrapper .cdst-promo-message--success {
  border-color: rgba(22, 101, 52, 0.16);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 253, 244, 0.98));
  color: #14532d !important;
}

.cdst-wrapper .cdst-promo-message--success::before {
  content: "✓";
  background: linear-gradient(135deg, #22c55e, #15803d);
  box-shadow: 0 3px 8px rgba(21, 128, 61, 0.22);
}

@media (max-width: 600px) {
  .cdst-wrapper {
      max-width: 100vw;
    padding: 0px !important;
  }
  .cdst-tab-buttons {
    flex-direction: column;
    align-items: center;
  }
  .cdst-wrapper:not(.cdst-tab-buttons-theme-default) .cdst-tab-btn:not(.cdst-tabs-only-first-start) {
    width: 100%;
    min-width: 200px;
    max-width: 300px;
  }
  select {
    width: 100%;
  }
}

/* Utility helpers (used by template-table.php) */
.cdst-hidden { display: none; }
.cdst-error { color: red; }