:root {
  --accent-color: #f28220; /* ideart orange */
}

/* ======================================================
   IPE Frontend (scoped)
   ====================================================== */

.ipe-frontend {
  max-width: 1200px;
  margin: 0 auto;
}

.ipe-frontend .ipe-frontend {
  background: #5f5f5f;
  padding: 20px;
  border-radius: 14px;
}

/* tables */
.ipe-frontend table.widefat {
  background: #e6e6e6;
  border-radius: 12px;
  overflow: hidden;
}

.ipe-frontend table.widefat th {
  background: #d6d6d6;
  font-weight: 600;
}

/* ---------- Selected row ---------- */
.ipe-frontend .ipe-selected-row,
.ipe-frontend .ipe-selected-row td {
  background: #767676 !important;
  color: #ffffff !important;
  font-weight: 600;
}

.ipe-frontend p {
  font-size: 15px;
  margin: 5px !important;
}

/* buttons */
.ipe-frontend .button {
  border-radius: 6px;
}

.ipe-frontend h1 {
  font-size: 20px;
  margin: 5px;
  margin-top: 15px;
}

.ipe-frontend hr {
  height: 1px;
  margin: 1px !important;
}

/* ---------- Logo ---------- */
.ipe-logo-wrap {
  position: relative;
  top: -30px;
  right: 12px;
  text-align: right;
}

.ipe-admin-logo {
  height: 59px;
}

.ipe-logo-text {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.11em;
  color: #ffffff;
}

/* ---------- Inputs ---------- */
.ipe-frontend input,
.ipe-frontend select,
.ipe-frontend textarea {
  font-size: 14px !important;
  padding: 0px 4px;
  border-radius: 6px;
  background: #e0e0e0;
  border: 2px solid #b1b1b1 !important;
  color: #484848 !important;
}

.ipe-frontend .ipe-export-opt p,
.ipe-frontend .ipe-export-opt {
  color: #525252;
  font-size: 13px;
  margin: 6px;
}

.price-col input {
  width: 70px;
  box-sizing: border-box;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.sku-col input {
  width: 220px;
  text-align: right;
}

.ipe-frontend .ipe-product-value {
  color: #2a2a2a;
  font-weight: 700;
}

.ipe-frontend input:focus,
.ipe-frontend select:focus,
.ipe-frontend textarea:focus {
  background: #ffffff !important;
  border: 2px solid var(--accent-color) !important;
  outline: none;
}

/* Override WP admin input focus styles */
.ipe-frontend input:focus,
.ipe-frontend select:focus,
.ipe-frontend textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 1px var(--accent-color);
  outline: none;
}

/* labels*/
.ipe-frontend label {
  font-size: 12px;
}

.ipe-export-opt label {
  color: #2a2a2a;
  font-size: 13px;
}

/* Inline field helper */
.ipe-frontend .ipe-inline-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Layout width helpers ---------- */
.lay-1-width {
  max-width: 1000px;
  background: #a0a0a0;
  border-radius: 12px;
  margin-bottom: 20px;
}

.lay-2-width {
  max-width: 700px;
  background: #909090;
  border-radius: 12px;
  margin-bottom: 20px;
}

/* ---------- TABLES ---------- */
.ipe-frontend .wp-list-table,
.ipe-frontend table.widefat {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 8px;
  overflow: hidden;
  padding: 4px;
  background: #c9c9c9;
}

.ipe-frontend td {
  color: #5f5f5f !important;
}

/* fix inputs sizing */
.ipe-frontend input[type="text"],
.ipe-frontend input[type="search"] {
  box-sizing: border-box;
  padding: 2px 7px;
  border-radius: 8px;
  background-color: #ececec;
}

.ipe-frontend .ipe-export-opt .button {
  font-size: 12px;
}

/* Headers */
.ipe-frontend .wp-list-table thead th,
.ipe-frontend table.widefat thead th {
  background: #b9b9b9;
  color: #2a2a2a;
  font-weight: 700;
  border-bottom: 1px solid #9c9c9c;
  font-size: 12px;
}

/* Zebra rows */
.ipe-frontend tbody tr:nth-child(odd) {
  background: #d6d6d6;
}
.ipe-frontend tbody tr:nth-child(even) {
  background: #cfcfcf;
}

/* Cells inherit row */
.ipe-frontend td,
.ipe-frontend th {
  background: inherit !important;
  padding: 4px 8px;
  font-size: 13px;
  border: none;
}

.ipe-attribute-separator td {
  border-top: 3px solid #b4b4b4 !important;
  height: 16px;
  background-color: #c5c5c5 !important;
}

.ipe-frontend .price-col {
  text-align: right;
}

.ipe-frontend .price-col input {
  text-align: right;
  width: 90px;
}

/* ---------- Buttons ---------- */
.ipe-frontend .button,
.ipe-frontend .button-secondary {
  font-size: 13px;
  line-height: 22px;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
  text-transform: uppercase;
  background: #bcbcbc;
  border: 1px solid #f1f1f1;
  color: #1f1f1f;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}

.ipe-frontend .button:hover {
  background: #ffffff;
  border: 1px solid #fafafa;
}

/* Primary */
.ipe-frontend .button-primary {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #ffffff;
}

.ipe-frontend .button-primary:hover {
  background: #ffffff;
  color: var(--accent-color);
}

/* Small table buttons */
.ipe-frontend .button-small {
  color: #ffffff;
  padding: 4px 8px;
  line-height: 22px;
  font-weight: 600;
  font-size: 12px;
  background: var(--accent-color);
}

.ipe-frontend .button-small:hover {
  color: var(--accent-color);
  background: #ffffff;
  border: 1px solid var(--accent-color);
}

.ipe-frontend .button-link-delete:hover {
  background: #fff;
  border: 1px solid var(--accent-color) !important;
  color: var(--accent-color) !important;
}

.ipe-frontend .notice {
  font-weight: 600;
  font-size: 12px;
}

/* ---------- Inputs MOBILE ---------- */

@media (max-width: 760px) {
  .ipe-frontend input,
  .ipe-frontend select,
  .ipe-frontend textarea {
    font-size: 16px !important;
    padding: 0 6px;
    border-radius: 6px;
    background: #e0e0e0;
    border: 2px solid #b1b1b1 !important;
  }
  /* Cells inherit row */
  .ipe-frontend td,
  .ipe-frontend th {
    background: inherit !important;
    padding: 2px 6px;
    font-size: 14px;
    border: none;
  }
}
