/* Wrap */
.mcfwc-wrap {
  max-width: 900px;
  margin: 30px auto;
  background: #fff;
  padding: 20px 40px;
  box-shadow: 0 0 10px rgba(0,0,0,0.07);
  border-radius: 8px;
  font-family: "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

/* Page Title */
.mcfwc-admin-page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
  border-bottom: 1px solid #e2e2e2;
  padding-bottom: 10px;
}
.mcfwc-admin-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
}
.mcfwc-version {
  font-size: 13px;
  background: #f0f0f0;
  padding: 3px 8px;
  border-radius: 4px;
}

/* Notices */
.mcfwc-notice {
  background: #dff0d8;
  border-left: 5px solid #3c763d;
  padding: 10px 15px;
  margin-bottom: 20px;
  border-radius: 4px;
}

/* Blocks */
.mcfwc-block {
  margin-bottom: 30px;
  padding: 20px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 6px;
}
.mcfwc-block h3 {
  margin-top: 0;
  font-size: 18px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
}

/* Inputs */
.mcfwc-block input[type="text"],
.mcfwc-block input[type="file"] {
  width: 100%;
  max-width: 300px;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Checkboxes and Radios */
.mcfwc-block label {
  display: block;
  margin: 10px 0;
  cursor: pointer;
}
.mcfwc-block input[type="checkbox"],
.mcfwc-block input[type="radio"] {
  margin-right: 8px;
  transform: scale(1.2);
}

/* Image icons */
.mcfwc-block img {
  vertical-align: middle;
  margin: 8px;
  border: 2px solid transparent;
  border-radius: 6px;
  transition: border 0.3s ease;
}
.mcfwc-block img.cart-active {
  border-color: #007cba;
  background: #f1faff;
}

/* Color Picker */
.mcfwc-color-field {
  margin-top: 5px;
  height: 36px;
  padding: 4px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Submit Button */
.mcfwc-submit {
  margin-top: 20px;
  padding: 10px 24px;
  font-size: 16px;
  background-color: #007cba;
  border: none;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.mcfwc-submit:hover {
  background-color: #005e9d;
}

/* Responsive Tweak */
@media (max-width: 600px) {
  .mcfwc-admin-page-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}


/* Toggle Switch Container */
.mcfwc-toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  vertical-align: middle;
  margin-right: 8px;
}

/* Hide default checkbox */
.mcfwc-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Slider */
.mcfwc-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

/* Circle */
.mcfwc-slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

/* Checked state */
.mcfwc-toggle-switch input:checked + .mcfwc-slider {
  background-color: #2ecc71;
}

.mcfwc-toggle-switch input:checked + .mcfwc-slider::before {
  transform: translateX(24px);
}

/* Optional: Label spacing */
.mcfwc-toggle-label {
  font-size: 16px;
  vertical-align: middle;
  color: #333;
}

.mcfwc-toggle-radio-group {
  display: inline-flex;
  border: 2px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
  background: #f7f7f7;
  margin-top: 10px;
}

/* Hide native radio buttons */
.mcfwc-toggle-radio-group input[type="radio"] {
  display: none;
}

/* Label acts like button */
.mcfwc-toggle-radio-group label {
  padding: 10px 20px;
  cursor: pointer;
  background: #f1f1f1;
  font-weight: 500;
  color: #555;
  border-right: 1px solid #ccc;
  transition: all 0.3s ease;
}

/* Remove last label's border */
.mcfwc-toggle-radio-group label:last-of-type {
  border-right: none;
}

/* Checked style */
.mcfwc-toggle-radio-group input[type="radio"]:checked + label {
  background-color: #0073aa;
  color: #fff;
  font-weight: 600;
}

.mcfwc-icon-group {
  display: flex;
  gap: 15px;
  margin-top: 10px;
  padding: 8px 0;
  flex-wrap: wrap;
}

.mcfwc-icon-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 6px;
}

/* Hide default radio */
.mcfwc-icon-option input[type="radio"] {
  display: none;
}

/* Style icon images */
.mcfwc-icon-option img {
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 4px;
  width: 40px;
  height: 40px;
  transition: all 0.3s ease;
  background-color: #f9f9f9;
}

/* Highlight selected icon */
.mcfwc-icon-option input[type="radio"]:checked + img,
.mcfwc-icon-option img.cart-active {
  border-color: #0073aa;
  background-color: #e1f3fc;
  box-shadow: 0 0 3px rgba(0, 115, 170, 0.5);
}

.mcfwc-icon-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.mcfwc-icon-option {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

/* Hide default radio */
.mcfwc-icon-option input[type="radio"] {
  display: none;
}

/* Image base style */
.mcfwc-icon-option img {
  width: 40px;
  height: 40px;
  padding: 4px;
  background-color: #f9f9f9;
  border: 2px solid transparent;
  border-radius: 8px;
  transition: all 0.3s ease;
}

/* Style selected icon */
.mcfwc-icon-option input[type="radio"]:checked + img {
  border-color: #0073aa;
  background-color: #e1f3fc;
  box-shadow: 0 0 3px rgba(0, 115, 170, 0.5);
}

/* ========== Scoped Color Picker Styles ========== */
.mcfwc-color-pickers {
  background: #fff;
  padding: 20px;
  border: 1px solid #ccd0d4;
  border-radius: 8px;
  margin-top: 20px;
}

.mcfwc-color-pickers h3 {
  margin-bottom: 20px;
  font-size: 18px;
  color: #23282d;
  border-bottom: 1px solid #e2e4e7;
  padding-bottom: 10px;
}

.mcfwc-color-pickers p {
  margin-bottom: 15px;
}

.mcfwc-color-pickers label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

.mcfwc-color-pickers .mcfwc-color-field {
  width: 160px;
  height: 36px;
  padding: 5px 10px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #ccd0d4;
  background-color: #f9f9f9;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s ease;
}

.mcfwc-color-pickers .mcfwc-color-field:focus {
  border-color: #0073aa;
  outline: none;
  background-color: #fff;
}

/* Optional: Layout improvement for large screens */
@media (min-width: 600px) {
  .mcfwc-color-pickers p {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .mcfwc-color-pickers label {
    min-width: 260px;
    margin-bottom: 0;
  }
}
