.ddb-image-field-current {
  margin: 0.5em 0 0;
}

.ddb-image-field-current__preview {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5em;
}

.ddb-image-field-preview {
  display: block;
  max-width: 120px;
  max-height: 120px;
  width: auto;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
  object-fit: contain;
  vertical-align: middle;
}

.ddb-required-asterisk {
  color: #d63638;
  font-weight: 600;
  margin-left: 0.15em;
}

.ddb-developer-dashboard {
  margin: 30px 30px 0;
}

.ddb-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 0;
  border-bottom: 3px solid #e3e3e3;
}

.ddb-tab-link {
  display: inline-block;
  padding: 10px 20px;
  margin-bottom: -3px;
  font-weight: 600;
  color: #666;
  text-decoration: none;
  border: 3px solid transparent;
  border-bottom: none;
  background: #f5f5f5;
}

.ddb-tab-link:hover {
  color: #222;
}

.ddb-tab-link.is-active {
  color: #222;
  background: #fff;
  border-color: #e3e3e3;
  border-bottom-color: #fff;
}

#developer-dashboard {
  margin-top: 30px;
}

.ddb-developer-dashboard .ddb-tab-panels #developer-dashboard {
  margin-top: 0;
}

.ddb-tab-panels .ddb-tab-panel {
  padding-top: 16px;
}

#developer-dashboard #table-wrapper {
  width: 100%;
  overflow: scroll;
}

#developer-dashboard .sales-table {
  border: 3px solid #e3e3e3;
  max-width: 500px;
}

#developer-dashboard .products-table {
  border: 3px solid #e3e3e3;
}

#developer-dashboard td.total {
  font-weight: bold;
}

#developer-dashboard td.product_name {
  min-width: 250px;
}

#developer-dashboard th.vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

#developer-dashboard td.date {
  text-wrap: nowrap;
}

#developer-dashboard table.ddb-report-form-table .col-input {
  overflow: visible;
  position: relative;
  z-index: 1;
  min-width: 330px;
}

#developer-dashboard table.ddb-report-form-table .col-input .ddb-richtext-field-wrap,
#developer-dashboard table.ddb-report-form-table .col-input .ddb-richtext-field-wrap .wp-editor-wrap,
#developer-dashboard table.ddb-report-form-table .col-input textarea.ddb-richtext-field {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#developer-dashboard table.ddb-report-form-table .col-input .ddb-richtext-field-wrap .wp-editor-container {
  min-height: 180px;
}

#developer-dashboard table.ddb-report-form-table .col-info{
  min-width: 200px;
}


#developer-dashboard table.ddb-report-form-table .col-name {
    width: 150px;
}

.ddb-developer-products__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1rem;
}

.ddb-developer-products__header h2 {
  margin: 0;
}

.ddb-developer-products__actions {
  margin: 0;
}

.ddb-developer-dashboard .ddb-developer-products__actions a.ddb-button-create-product:hover {
  color: #fff;
  background: #ec4b2b;
  border-color: #000000;
}

.ddb-developer-dashboard .ddb-developer-products__actions a.ddb-button-create-product {
  border-radius: 4px;
  background-color: #cc3366;
  padding: 10px 20px;
  color: white;
  text-decoration: none;
}

a.ddb-button-create-product--secondary {
  background-color: #6c7781;
}

.ddb-developer-dashboard .button-small {
  margin-top: 10px;
  font-size: 0.8em;
  padding: 5px 10px;
}

button.button-small.ddb-wizard-autofill-slug {
  background-color: green;
  border-color: rgb(41, 80, 80);
  color: aliceblue;
}

button.button-small.ddb-wizard-autofill-slug:hover {
  background-color: rgb(66, 238, 238);
  border-color: rgb(21, 34, 34);
  color: rgb(63, 139, 206);
}

td.ddb-product-table__action a { /**/
  margin-right: 10px;
  padding: 5px 10px;
  border-radius: 4px;
  background-color: #cc3366;
  color: white;
  text-decoration: none;
}

.ddb-notice.ddb-notice--success {
  border: 1px solid #b8d8b8;
  padding: 10px 15px;
  background-color: #dcffff;
  display: inline-block;
  margin-top: 10px;
}

.ddb-notice.ddb-notice--error {
  border: 1px solid #f0b3b0;
  padding: 10px 15px;
  background-color: #fbe3e4;
  display: inline-block;
  margin-top: 10px;
}

.ddb-developer-products .ddb-product-list-section {
  margin-bottom: 1.75rem;
}

.ddb-developer-products .ddb-product-list-section h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.ddb-developer-products .ddb-product-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.ddb-developer-products table.ddb-product-table {
  width: 100%;
  max-width: none;
  border-collapse: collapse;
}

.ddb-developer-products .ddb-product-table th,
.ddb-developer-products .ddb-product-table td {
  padding: 8px 12px;
  text-align: left;
  border: 1px solid #e3e3e3;
  vertical-align: top;
}

.ddb-developer-products .ddb-product-table__col-licenses,
.ddb-developer-products .ddb-product-table__licenses {
  text-align: center;
  width: 8rem;
}

.ddb-developer-products .ddb-product-table__col-deal,
.ddb-developer-products .ddb-product-table__deal {
  text-align: center;
  width: 7rem;
}

.ddb-developer-products .ddb-product-table__status {
  color: #666;
  font-size: 0.95em;
}

.ddb-developer-products .ddb-product-list-empty {
  margin: 0;
  color: #666;
  font-style: italic;
}

#developer-dashboard .ddb-create-product-form {
  margin-top: 1rem;
}

#developer-dashboard .ddb-notice {
  max-width: 720px;
  padding: 10px 14px;
  margin: 1rem 0;
  border: 1px solid #c3c4c7;
  border-radius: 4px;
}

#developer-dashboard .ddb-notice--error {
  border-color: #d63638;
  background: #fcf0f1;
  color: #2c3338;
}

#developer-dashboard .ddb-notice--success {
  border-color: #00a32a;
  background: #edfaef;
  color: #2c3338;
}

#developer-dashboard .ddb-product-form-delete {
  color: red;
  background: #b32d2e;
  border-color: rgb(241, 41, 41);
  font-size: 0.7em;
  padding: 8px;
  font-weight: bold;
  margin: 50px 0px;
  float: right;
}

#developer-dashboard .ddb-product-form-delete:hover {
  color: #fff;
  background: #000000;
  border-color: rgb(241, 41, 41);
}

#developer-dashboard .ddb-create-product__back {
  margin-top: 1.25rem;
}

.ddb-taxonomy-checkbox-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ddb-taxonomy-checkbox-list__label {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.4rem;
  cursor: pointer;
}

.ddb-taxonomy-checkbox-list__text {
  line-height: 1.35;
}

/* WIZARD ----------------------------- */

.ddb-product-wizard .wizard-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.ddb-product-wizard .wizard-steps {
  position: sticky;
  top: 20px;
}

.ddb-product-wizard .wizard-step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ddb-product-wizard .wizard-step-button {
  width: 100%;
  text-align: left;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  background: #f6f8fa;
  color: #1f2328;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.4;
  
}

.ddb-product-wizard .wizard-step-button:hover,
.ddb-product-wizard .wizard-step-button:focus {
  border-color: #2271b1;
  outline: none;
}

.ddb-product-wizard .wizard-step-button.is-active {
  background: #2271b1;
  border-color: #2271b1;
  color: #fff;
}

.ddb-product-wizard ul.ddb-examples-list {
  margin-left: 0px;
  padding-left: 10px;
  font-size: 10px;
  list-style-type: disclosure-open;
}

.ddb-product-wizard .ddb-examples-inline {
  font-size: 10px;
}

.ddb-product-wizard span.ddb-example-image-item {
  padding: 5px;
}

.ddb-product-wizard .ddb-example-item {
  margin: 0 0 6px;
}

.ddb-product-wizard .ddb-example-image-item {
  list-style: none;
  margin: 10px 0;
}

.ddb-product-wizard .ddb-example-image-link {
  display: inline-block;
}

.ddb-product-wizard .ddb-example-image-link img {
  display: block;
  max-width: 150px;
  height: auto;
  border: 1px solid #d0d7de;
  border-radius: 6px;
}

.ddb-product-wizard .wizard-switch-link {
  margin: 14px 0 0;
}

.ddb-product-wizard .wizard-content {
  min-width: 0;
  overflow-x: auto;
}

.ddb-product-wizard .wizard-panel[hidden] {
  display: none;
}

.ddb-product-wizard .wizard-panel-title {
  margin: 0 0 6px;
}

.ddb-product-wizard .wizard-panel-description {
  margin: 0 0 18px;
  color: #5b5f64;
}

.ddb-product-wizard .wizard-step-image-tools {
  margin: 0 0 14px;
}

.ddb-product-wizard .wizard-step-image {
  margin: 0 0 18px;
}

.ddb-product-wizard .wizard-step-image img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid #d0d7de;
  border-radius: 8px;
}

.ddb-product-wizard .wizard-table {
  width: auto;
  max-width: 100%;
}

.ddb-product-wizard .wizard-table .col-name {
  width: 180px;
  border-left-style: solid;
  border-left-width: 0;
}

#developer-dashboard .wizard-layout table.ddb-report-form-table.wizard-table .col-input {
  width: min(100%, 800px);
  max-width: 800px;
}

.ddb-product-wizard .wizard-table .col-info {
  min-width: 220px;
}

.ddb-product-wizard .wizard-table tr {
    transition-property: opacity;
    transition-duration: 0.3s;
    transition-delay: 0.2s;
}

.ddb-product-wizard .wizard-table input[type="checkbox"] {
    transform: scale(1.5);
    margin: 10px;
}

.ddb-product-wizard .wizard-actions {
  margin-top: 18px;
}

.ddb-product-wizard .wizard-step-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.ddb-product-wizard .wizard-step-nav .button[disabled] {
  cursor: default;
  opacity: 0.55;
}

.ddb-product-wizard .wizard-form .button.button-primary,
.ddb-product-wizard .wizard-form .button-primary {
  background: #d63638;
  border-color: #b32d2e;
  color: #fff;
}

.ddb-product-wizard .wizard-form .button.button-primary:hover,
.ddb-product-wizard .wizard-form .button.button-primary:focus,
.ddb-product-wizard .wizard-form .button-primary:hover,
.ddb-product-wizard .wizard-form .button-primary:focus {
  background: #fff8f8;
  border-color: #ff4848;
  color: #000000;
}

.ddb-product-wizard .wizard-message {
  margin: 0;
}


.ddb-submit-spinner {
  display: inline-block;
  vertical-align: middle;
  width: 20px;
  height: 20px;
  margin: 20px;
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-top-color: #2271b1;
  border-radius: 50%;
  animation: ddb-spin 0.7s linear infinite;
}

@keyframes ddb-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
  .ddb-product-wizard .wizard-layout {
    grid-template-columns: 1fr;
  }

  .ddb-product-wizard .wizard-steps {
    position: static;
  }

  .ddb-product-wizard .wizard-step-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .ddb-product-wizard .wizard-step-item {
    flex: 1 1 220px;
  }
}