label {
    font-weight: bold;
}
.form-container {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}
.brand-option input[type="checkbox"] {
  vertical-align: middle;
  margin-right: 6px;
}
button {
  cursor: pointer;
}
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0 20px 0;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 16px;
    color: #495057;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease;
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    border-color: #17a2b8;
    outline: none;
}
select {
    appearance: none; /* Remove default arrow for custom styling */
    background: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><polygon points='0,0 10,0 5,6' fill='%23495057'/></svg>") no-repeat right 12px center;
    background-size: 10px;
    padding-right: 35px; /* Spacing for the custom arrow */
    font-size: 16px;
    color: #495057;
}
input[type="radio"],
input[type="checkbox"] {
    appearance: none; /* Remove default styling */
    background-color: #fff;
    border: 1px solid #adb5bd;
    padding: 8px;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="checkbox"] {
    border-radius: 4px;
}
input[type="radio"]:checked::before,
input[type="checkbox"]:checked::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    background-color: #28a745;
    border-radius: 50%;
}
input[type="checkbox"]:checked::before {
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    border-radius: 2px;
}
input[type="radio"]:focus,
input[type="checkbox"]:focus {
    outline: none;
    border-color: #17a2b8;
}
label {
    font-size: 16px;
    color: #343a40;
    display: block;
    margin-bottom: 6px;
}
label:has(> input[type="checkbox"][name$="[]"]) {
  font-size: 16px;
  display: inline-flex;   /* lets you center/space the checkbox + text nicely */
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 6px;
}
button[type="submit"],
.button {
  margin-top: 15px;
  padding: 12px 20px;
  background: #0c7e68;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
button[type="submit"]:hover,
.button:hover {
    background-color: #095e4f;
}
.add_fields {
    background-color: #1e7e34; /* Darker green */
    color: #fff;
    border: none;
    padding: 10px 12px;
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 15px;
}
.add_fields:hover {
    background-color: #155d27; /* Even darker green for hover */
}
.delete-button {
    background-color: #c82333; /* Dark red */
    color: #fff;
    border: none;
    padding: 10px 12px;
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 15px;
}
.delete-button:hover {
    background-color: #a71d2a; /* Even darker red for hover */
}
.delete-code-button {
    background-color: #c82333; /* Dark red */
    color: #fff;
    border: none;
    padding: 10px 12px;
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 15px;
    float: right;
}
.delete-code-button:hover {
    background-color: #a71d2a; /* Even darker red for hover */
}
.open-modal {
    background-color: #5a52e0; /* Darker shade of #6C63FF */
    color: #fff;
    border: none;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.open-modal:hover {
    background-color: #0048bf; /* Darker hover color for a smoother transition */
}
.start-over {
    background-color: #c82333; /* Darker red */
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.start-over:hover {
    background-color: #bd2130; /* Even darker red for hover */
}
.disable-website {
    background-color: #c82333; /* Darker red */
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.disable-website:hover {
    background-color: #bd2130; /* Even darker red for hover */
}
.enable-website {
    background-color: #28a745; /* Darker red */
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.enable-website:hover {
    background-color: #218838; /* Even darker red for hover */
}
.button-container {
    display: flex;
    gap: 15px;  /* Adds 15px space between the buttons */
    justify-content: center;  /* Center buttons horizontally */
    flex-wrap: wrap;  /* Ensure buttons wrap to next line on smaller screens */
}
input[type="file"] {
    margin-bottom: 15px;
}
.required {
    color:red;
}
.optional {
    color:#4a05c4;
}
.action-button {
    background-color: #28a745;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.action-button:hover {
    background-color: #218838;
}
@media (max-width: 600px) {
    .button-container {
        flex-direction: column; /* Stack buttons vertically on small screens */
        align-items: center; /* Center buttons vertically */
    }
}
.edit-website-form input {
    margin-bottom: 10px; /* Adjust the space between fields */
    padding: 8px;
    width: 100%;
    box-sizing: border-box;
}
.error-message {
    margin-bottom: 5px;  /* Space between error message and input field */
    color: red;
    font-size: 14px;
    font-style: italic;
}
button.delete-button.image {
  position: absolute; /* Use absolute positioning to place it relative to the nearest positioned parent */
  top: 0; /* Align to the top of the image */
  left: 110px; /* Adjust to place it beside the image */
}
img + button.delete-button.image {
  display: inline-block;
}
.form-buttons {
  display: flex;
  gap: 10px; /* spacing between buttons */
}

.form-buttons form {
  display: inline-block;
}

.form-buttons form button {
  padding: 8px 16px;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
}

/* Specific styles for edit button */
.form-buttons form[action*="inhouse_products.php"] button:has(:not(svg)) {
  background-color: #28a745; /* green */
}

/* Specific styles for delete button */
.form-buttons form[action*="inhouse_products.php"] button:has(svg) {
  background-color: #dc3545; /* red */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-box {
  background: #fff;
  color: #333;
  max-width: 600px;
  width: 100%;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
}

#edit_product_form {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow: hidden;
}

#editModalContent {
  flex-grow: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  padding: 15px 20px;
  border-top: 1px solid #ddd;
  background: #f9f9f9;
  flex-shrink: 0;
  gap: 10px;
}

.modal-close-btn {
  margin-top: 15px;
  padding: 12px 20px;
  background: #386bae;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.modal-close-btn:hover {
  background-color: #2f5a94;
}

.modal-submit-btn {
  background-color: #4CAFED;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

.img_thumb_wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    margin: 5px;
    display: inline-block;
}

.img_thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    font-size: 14px;
}
.channel_grid_container {
    display: flex;
    gap: 20px;               /* space between dropdowns */
    flex-wrap: wrap;          /* wrap on smaller screens */
    padding: 20px;            /* inner spacing */
    background-color: #f0f8ff; /* light standout color */
    border: 1px solid #cce0ff; /* subtle border */
    border-radius: 8px;       /* rounded corners */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* soft shadow */
    margin: 20px 0;           /* spacing from other content */
}

.channel_grid_container label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
    font-size: 0.95rem;
}

.channel_grid_container select {
    max-width: 265px;
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #aaa;
    border-radius: 4px;
    background-color: #fff;
    font-size: 0.95rem;
}

.price_grid_select {
    display: flex;
    flex-direction: column;
}

.channel_grid_select,
.supplier_grid_select {
  display: flex;
  flex-direction: column;
  min-width: 265px;
}
.shipment-row {
  margin-bottom: 10px;
  padding: 10px;
  border: 1px dashed #ccc;
}
.shipment-row label {
  display: block;
  margin-top: 5px;
}
.remove-shipment {
  margin-top: 5px;
  color: red;
  background: none;
  border: none;
  cursor: pointer;
}
.add-shipment {
    margin-bottom:15px;
}
.auto-pricing {
  font-family: Arial, sans-serif;
  max-width: 950px;
  margin: 20px auto;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  line-height: 1.6;
  color: #333;
}

.auto-pricing h2 {
  border-left: 4px solid #0c7e68;
  padding-left: 10px;
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 1.4rem;
  color: #0c7e68;
}

.auto-pricing h4 {
  font-weight: normal;
  margin-top: 5px;
  margin-bottom: 20px;
  color: #666;
}

.auto-pricing p {
  margin-bottom: 15px;
}

.auto-pricing .field-title {
  margin: 15px 0;
  padding: 12px 15px;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #eee;
}

.auto-pricing input[type="text"],
.auto-pricing input[type="number"],
.auto-pricing select {
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  margin-top: 5px;
}

.auto-pricing input[type="text"],
.auto-pricing input[type="number"] {
  max-width: 120px;
  text-align: center;
}

.auto-pricing select {
  max-width: 250px;
}

.auto-pricing .margin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  margin-top: 15px;
}

.auto-pricing .margin-grid .field-title {
  margin: 0;
}

.auto-pricing button {
  margin-top: 25px;
  padding: 12px 20px;
  background: #0c7e68;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.auto-pricing button:hover {
  background: #095e4f;
}

.block-rules {
  font-family: Arial, sans-serif;
  max-width: 950px;
  margin: 20px auto;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  line-height: 1.6;
  color: #333;
}

.block-rules h2 {
  border-left: 4px solid #0c7e68;
  padding-left: 10px;
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 1.4rem;
  color: #0c7e68;
}

.block-rules h4 {
  font-weight: normal;
  margin-top: 5px;
  margin-bottom: 20px;
  color: #666;
}

.block-rules p {
  margin-bottom: 15px;
}

.block-rules i {
  display: block;
  margin-bottom: 10px;
  color: #555;
}

.block-rules .field-title {
  margin: 15px 0 5px 0;
  padding: 12px 15px;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #eee;
  font-weight: bold;
}

.field__block_value {
    display: flex;
    align-items: center;   /* vertically center */
    gap: 8px;              /* spacing between items */
}

.block_type_desc {
    white-space: nowrap;   /* keep text from wrapping */
}

#block_value {
    flex: 1 1 auto;        /* take up remaining space */
    min-width: 100px;      /* optional: prevents it from getting too small */
}

#block_list_rules_submit {
    flex: 0 0 auto;        /* keep button its natural width */
    margin-top:-12px !important;
}

.block-rules select {
  max-width: 250px;
}

.block-rules .fieldgroup_container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 10px;
  margin-top: 10px;
}

.block-rules .block_type_desc {
  margin: 0 5px;
}

.block-rules .fieldgroup {
  display: inline-block;
}


.brand-whitelist {
  font-family: Arial, sans-serif;
  max-width: 950px;
  margin: 20px auto;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  line-height: 1.6;
  color: #333;
}

.brand-whitelist h2 {
  border-left: 4px solid #0c7e68;
  padding-left: 10px;
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 1.4rem;
  color: #0c7e68;
}

.brand-whitelist h4 {
  font-weight: normal;
  margin-top: 5px;
  margin-bottom: 20px;
  color: #666;
}

.brand-whitelist p {
  margin-bottom: 15px;
}

.brand-whitelist .field-title {
  margin: 15px 0 5px 0;
  padding: 12px 15px;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #eee;
  font-weight: bold;
}

.brand-whitelist input[type="text"],
.brand-whitelist select {
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  margin-top: 5px;
}

.brand-whitelist input[type="text"] {
  width: 100%;
  box-sizing: border-box;
}

.brand-whitelist select {
  max-width: 250px;
}

.brand-whitelist #brandList {
  height: 500px;
  overflow-y: auto;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 8px;
  background: #fafafa;
}

.brand-whitelist button {
  margin-top: 15px;
  padding: 12px 20px;
  background: #0c7e68;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.brand-whitelist button:hover {
  background: #095e4f;
}
.channel-sync {
  font-family: Arial, sans-serif;
  max-width: 950px;
  margin: 20px auto;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  line-height: 1.6;
  color: #333;
}

.channel-sync h2 {
  border-left: 4px solid #0c7e68;
  padding-left: 10px;
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1.4rem;
  color: #0c7e68;
}

.channel-sync p {
  margin-bottom: 15px;
}

.channel-sync b {
  color: #0c7e68;
}

.channel-sync .sync-toggle {
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.channel-sync select {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
}

.inventory-control {
  font-family: Arial, sans-serif;
  max-width: 950px;
  margin: 20px auto;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  line-height: 1.6;
  color: #333;
}

.inventory-control h2 {
  border-left: 4px solid #0c7e68;
  padding-left: 10px;
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1.4rem;
  color: #0c7e68;
}

.inventory-control h4 {
  color: #0c7e68;
  margin-bottom: 15px;
}

.inventory-control p {
  margin-bottom: 15px;
}

.inventory-control i {
  display: block;
  font-style: italic;
  color: #555;
  margin-bottom: 8px;
}

.inventory-control .field-title {
  font-weight: bold;
  margin-top: 15px;
  margin-bottom: 5px;
}

.inventory-control select,
.inventory-control input[type="text"],
.inventory-control input[type="number"] {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
  margin-top: 4px;
  margin-bottom: 10px;
}

.inventory-control button {
  background-color: #0c7e68;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 15px;
}

.inventory-control button:hover {
  background-color: #09644f;
}
.automated-ordering {
  font-family: Arial, sans-serif;
  max-width: 950px;
  margin: 20px auto;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  line-height: 1.6;
  color: #333;
}
.automated-ordering h2 {
  border-left: 4px solid #0c7e68;
  padding-left: 10px;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #0c7e68;
}

.automated-ordering h4 {
  color: #0c7e68;
  margin-bottom: 15px;
}

.automated-ordering p {
  margin-bottom: 15px;
}

.automated-ordering i {
  display: block;
  font-style: italic;
  color: #555;
  margin-bottom: 8px;
}

.automated-ordering .field-title {
  font-weight: bold;
  margin-top: 15px;
  margin-bottom: 5px;
}

.automated-ordering select,
.automated-ordering input[type="text"],
.automated-ordering input[type="number"] {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
  margin-top: 4px;
  margin-bottom: 10px;
}

.automated-ordering button {
  background-color: #0c7e68;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 15px;
}

.automated-ordering button:hover {
  background-color: #09644f;
}

.automated-ordering .automated_ordering_additional {
  margin-top: 15px;
  padding: 15px;
  border-left: 3px solid #0c7e68;
  background: #f9f9f9;
  border-radius: 6px;
}
.ai-personality {
  font-family: Arial, sans-serif;
  max-width: 950px;
  margin: 20px auto;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  line-height: 1.6;
  color: #333;
}

.ai-personality h2 {
  border-left: 4px solid #0c7e68;
  padding-left: 10px;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #0c7e68;
}

.ai-personality p {
  margin-bottom: 15px;
}

.ai-personality textarea {
  width: 100%;
  min-height: 300px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  margin-bottom: 15px;
  resize: vertical;
  font-family: Arial, sans-serif;
}

.ai-personality button {
  background-color: #0c7e68;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 10px;
}

.ai-personality button:hover {
  background-color: #09644f;
}
.ebay-theme {
  font-family: Arial, sans-serif;
  max-width: 950px;
  margin: 20px auto;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  line-height: 1.6;
  color: #333;
}

.ebay-theme h2 {
  border-left: 4px solid #0c7e68;
  padding-left: 10px;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #0c7e68;
}

.ebay-theme p {
  margin-bottom: 15px;
}

.ebay-theme textarea {
  width: 100%;
  min-height: 400px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  margin-bottom: 15px;
  resize: vertical;
  font-family: Arial, sans-serif;
}

.ebay-theme button {
  background-color: #0c7e68;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 10px;
}

.ebay-theme button:hover {
  background-color: #09644f;
}
.api-keys {
  max-width: 950px;
  margin: 40px auto;
  padding: 25px 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  font-family: Arial, sans-serif;
}

.api-keys h2 {
  border-left: 4px solid #0c7e68;
  padding-left: 10px;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #0c7e68;
}

.api-keys p {
  margin-bottom: 20px;
  color: #666;
  font-size: 0.95rem;
}

.api-keys form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.api-keys h3 {
  margin: 0;
  font-size: 1rem;
  color: #444;
}

.api-keys input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.95rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.api-keys input[type="text"]:focus {
  border-color: #0073e6;
  box-shadow: 0 0 0 3px rgba(0,115,230,0.2);
  outline: none;
}
.inhouse-product-create {
  max-width: 950px;
  margin: 40px auto;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  font-family: Arial, sans-serif;
}

.inhouse-product-create h2 {
  border-left: 4px solid #0c7e68;
  padding-left: 10px;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #0c7e68;
}

.inhouse-product-create p {
  color: #666;
  font-size: 0.95rem;
  margin: 5px 0 15px;
}

.inhouse-product-create form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Section labels */
.inhouse-product-create h3 {
  margin: 15px 0 5px;
  font-size: 1.1rem;
  color: #444;
}

/* Inputs, selects, textareas */
.inhouse-product-create input[type="text"],
.inhouse-product-create input[type="number"],
.inhouse-product-create input[type="file"],
.inhouse-product-create select,
.inhouse-product-create textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.95rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.inhouse-product-create input:focus,
.inhouse-product-create select:focus,
.inhouse-product-create textarea:focus {
  border-color: #0073e6;
  box-shadow: 0 0 0 3px rgba(0,115,230,0.2);
  outline: none;
}

/* File input labels */
.inhouse-product-create label[for="camera_input"],
.inhouse-product-create label[for="gallery_input"] {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 14px;
  background: #f4f4f4;
  border-radius: 6px;
  border: 1px solid #ccc;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.inhouse-product-create label[for="camera_input"]:hover,
.inhouse-product-create label[for="gallery_input"]:hover {
  background: #e9e9e9;
}


/* Image preview grid */
#image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#image-preview img {
  max-width: 120px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

/* Category selector */
#category-selector {
  margin-top: 10px;
  padding: 10px;
  border: 1px dashed #ccc;
  border-radius: 8px;
  min-height: 50px;
  background: #fafafa;
}
.auto-listing {
  display: flex;
  align-items: stretch;
  gap: 20px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Supplier block */
.supplier-header {
  flex: 0 0 160px; /* fixed width column */
  background: #f7f9fc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  border-right: 1px solid #e2e6ea;
}

.supplier-name {
  font-weight: bold;
  font-size: 1.1rem;
  text-align: center;
  line-height: 1.5em;
  word-break: break-word; /* ensures long names stack cleanly */
  color: #2c3e50;
}

/* Channel block */
.channel-section {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 15px;
  background: #fdfdfd;
}

.channel-option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  color: #444;
  background: #f8fafc;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.channel-option:hover {
  background: #eaf3ff;
  border-color: #99c2ff;
}
.user-settings {
  font-family: Arial, sans-serif;
  max-width: 950px;
  margin: 20px auto;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  line-height: 1.6;
  color: #333;
}

.user-settings h2 {
  border-left: 4px solid #0c7e68;
  padding-left: 10px;
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 1.4rem;
  color: #0c7e68;
}

.user-settings h3 {
  margin-top: 25px;
  margin-bottom: 10px;
  color: #0c7e68;
  font-weight: normal;
}

.user-settings p {
  margin-bottom: 20px;
}

.user-form .form-group {
  margin-bottom: 15px;
}

.user-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.user-form input[type="text"],
.user-form input[type="email"],
.user-form input[type="password"],
.user-form select {
  width: 100%;
  max-width: 300px;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
}

.user-form .form-note {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-top: 3px;
}

.permissions-container {
  display: flex;
  gap: 40px;
  margin-top: 15px;
  padding: 10px 0;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #f9f9f9;
}

.permissions-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-form button {
  margin-top: 25px;
  padding: 12px 20px;
  background: #0c7e68;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.user-form button:hover {
  background: #095e4f;
}

