.woocommerce_page_wc-settings-yeekit_conditional_checkout .submit{
  display: none;
}
.woocommerce_page_wc-settings-yeekit_conditional_checkout [name="action"]{
  text-transform: capitalize;
}
.yeekit-btn-add{
  background:#1e8e3e !important;
  border-color:#1e8e3e !important;
  color:#fff !important;
}

.yeekit-btn-del{
  background:#d63638 !important;
  border-color:#d63638 !important;
  color:#fff !important;
}

.yeekit-help{
  max-width:900px;
}

/* ==============================================
 * yeekit Admin UI Polish (WooCommerce Settings Tab)
 * ============================================== */


.yeekit-wrap h1 {
  margin: 16px 0 14px;
  font-size: 24px;
  line-height: 1.2;
}

/* Scope tabs (Payments / Shipping Methods / Fields) */
.yeekit-wrap .nav-tab-wrapper {
  margin: 14px 0 18px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #c3c4c7;
  border-radius: 8px;
  padding-bottom: 10px !important;
}

.yeekit-wrap .nav-tab-wrapper .nav-tab {
  margin: 0 6px 0 0;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 7px 12px;
  background: transparent;
}

.yeekit-wrap .nav-tab-wrapper .nav-tab:hover {
  background: #f6f7f7;
  border-color: #dcdcde;
}

.yeekit-wrap .nav-tab-wrapper .nav-tab.nav-tab-active {
  background: #f0f6fc;
  border-color: #72aee6;
  color: #0a4b78;
}

/* Notices */
.yeekit-wrap .updated,
.yeekit-wrap .notice {
  margin: 12px 0 16px;
}

/* Form card */
.yeekit-wrap .form-table {
  background: #fff;
  border: 1px solid #c3c4c7;
  border-radius: 10px;
  padding: 8px 14px;
}

.yeekit-wrap .form-table th {
  width: 240px;
  padding: 16px 10px;
}

.yeekit-wrap .form-table td {
  padding: 14px 10px;
}

.yeekit-wrap .form-table tr + tr th,
.yeekit-wrap .form-table tr + tr td {
  border-top: 1px solid #f0f0f1;
}

.yeekit-wrap .form-table select,
.yeekit-wrap .form-table input[type="text"],
.yeekit-wrap .form-table input[type="number"],
.yeekit-wrap .form-table input[type="datetime-local"] {
  width: 420px;
  max-width: 100%;
}

.yeekit-wrap .form-table .description {
  margin-top: 6px;
  color: #646970;
}

/* Conditions builder */
#yeekit-conditions-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.yeekit-cond-row {
  display: flex;
  flex-wrap: nowrap; /* one line on desktop */
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #f6f7f7;
  border: 1px solid #dcdcde;
  border-radius: 8px;

  width: 100%;
  max-width: none;
  box-sizing: border-box;
  overflow-x: visible; /* no horizontal scrollbar */
}

/* allow flex children to shrink instead of forcing overflow */
.yeekit-cond-row > * {
  min-width: 0;
}

.yeekit-cond-row .yeekit-cond-type,
.yeekit-cond-row .yeekit-cond-compare {
  flex: 0 0 240px; /* equal width */
  min-width: 240px;
  max-width: 240px;
}
.yeekit-cond-row .yeekit-cond-compare select, .yeekit-cond-row .yeekit-cond-compare {
  min-width: 140px;
  max-width: 140px;
  width: 140px;
}

/* Ensure selectWoo/select2 inside the first two columns fills the column */
.yeekit-cond-row .yeekit-cond-type .select2-container,
.yeekit-cond-row .yeekit-cond-type .selectWoo-container,
.yeekit-cond-row .yeekit-cond-compare .select2-container,
.yeekit-cond-row .yeekit-cond-compare .selectWoo-container {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

.yeekit-cond-row input.yeekit-cond-value-text,
.yeekit-cond-row input.yeekit-cond-value-number,
.yeekit-cond-row input.yeekit-cond-value-datetime,
.yeekit-cond-row select.yeekit-cond-value-bool {
  flex: 1 1 0;
  min-width: 0;
}

/* SelectWoo / Select2 value controls must shrink within the row */
.yeekit-cond-row .select2-container,
.yeekit-cond-row .selectWoo-container {
  flex: 1 1 0;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100%;
}

.yeekit-cond-row .button.yeekit-btn-del {
  margin-left: auto;
}

.yeekit-help {
  margin-top: 10px;
  color: #646970;
}

/* Country/State compound control */
.yeekit-cond-value-country {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.yeekit-cond-value-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.yeekit-cond-value-line select {
  flex: 1;
  min-width: 0;
}

.yeekit-mini-actions {
  display: inline-flex;
  gap: 6px;
}

.yeekit-mini-actions .button {
  padding: 0 10px;
  height: 30px;
  line-height: 28px;
}

/* SelectWoo/Select2 sizing tweaks */
.yeekit-wrap .select2-container,
.yeekit-wrap .selectWoo-container {
  width: 420px;
  max-width: 100%;
}

.yeekit-wrap .select2-container .select2-selection--multiple,
.yeekit-wrap .selectWoo-container .selectWoo-selection--multiple {
  min-height: 36px;
  border-radius: 6px;
}

/* List table polish */
.yeekit-wrap .wp-list-table {
  background: #fff;
  border: 1px solid #c3c4c7;
  border-radius: 10px;
  overflow: hidden;
}

.yeekit-wrap .wp-list-table th,
.yeekit-wrap .wp-list-table td {
  vertical-align: middle;
}

.yeekit-wrap .tablenav {
  margin: 10px 0;
}

@media (max-width: 782px) {
  .yeekit-wrap .form-table th {
    width: auto;
    padding-bottom: 6px;
  }

  .yeekit-wrap .form-table td {
    padding-top: 6px;
  }

  .yeekit-wrap .form-table select,
  .yeekit-wrap .form-table input[type="text"],
  .yeekit-wrap .form-table input[type="number"],
  .yeekit-wrap .form-table input[type="datetime-local"] {
    width: 100%;
  }

  .yeekit-cond-row {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .yeekit-cond-row .button.yeekit-btn-del {
    margin-left: 0;
  }

  .yeekit-cond-value-country {
    min-width: 0;
  }

  .yeekit-cond-value-line {
    flex-direction: column;
    align-items: stretch;
  }

  .yeekit-mini-actions {
    margin-top: 6px;
  }

  .yeekit-cond-row .yeekit-cond-type,
  .yeekit-cond-row .yeekit-cond-compare {
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
  }
}
.yeekit-cond-value-wrap select, .woocommerce table.form-table .yeekit-cond-value-wrap .select2-container {
  width: 300px !important;
  min-width: 300px !important;
}