/*.bookiflex_page_bookiflex-settings .cf-container__tabs--tabbed-vertical .cf-container__tabs-list .cf-container__tabs-item,*/
.post-type-bflex-cancel-policy .cf-container__tabs--tabbed-vertical .cf-container__tabs-list .cf-container__tabs-item,
.post-type-bflex-rate-plan .cf-container__tabs--tabbed-vertical .cf-container__tabs-list .cf-container__tabs-item,
.post-type-bflex-rental-unit .cf-container__tabs--tabbed-vertical .cf-container__tabs-list .cf-container__tabs-item {
  border-left: 5px solid transparent;
}

/*.bookiflex_page_bookiflex-settings .cf-container__tabs-list .cf-container__tabs-item.cf-container__tabs-item--current,*/
.post-type-bflex-cancel-policy .cf-container__tabs-list .cf-container__tabs-item.cf-container__tabs-item--current,
.post-type-bflex-rate-plan .cf-container__tabs-list .cf-container__tabs-item.cf-container__tabs-item--current,
.post-type-bflex-rental-unit .cf-container__tabs-list .cf-container__tabs-item.cf-container__tabs-item--current {
  border-left-color: #009e59;
}

.post-type-bflex-rate-plan .cf-complex__tabs-item.cf-complex__tabs-item--tabbed-vertical,
.post-type-bflex-cancel-policy .cf-complex__tabs-item.cf-complex__tabs-item--tabbed-vertical {
  border-left: 5px solid transparent;
}

.post-type-bflex-rate-plan .cf-complex__tabs-item.cf-complex__tabs-item--tabbed-vertical.cf-complex__tabs-item--current,
.post-type-bflex-cancel-policy .cf-complex__tabs-item.cf-complex__tabs-item--tabbed-vertical.cf-complex__tabs-item--current {
  border-left-color: #009e59;
}

/** Settings **/
#carbon_fields_container_bflex_settings {
  border: none;
  box-shadow: none;
  background: transparent;
}

/** Setting tabs **/
#carbon_fields_container_bflex_settings .cf-container__tabs.cf-container__tabs--tabbed-vertical {
  background: transparent;
  border-right: none;
  margin-right: 10px;
}

#carbon_fields_container_bflex_settings .cf-container__tabs-list .cf-container__tabs-item {
  border-bottom: none;
  border-radius: 10px;
  margin-bottom: 10px;
}

#carbon_fields_container_bflex_settings .cf-container__tabs-list .cf-container__tabs-item--current {
  background: #009e59;
}


#carbon_fields_container_bflex_settings .cf-container__tabs-list .cf-container__tabs-item--current button {
  color: #fff !important;
}

/** Setting sections **/
#carbon_fields_container_bflex_settings .cf-container__fields {
  border-radius: 10px;
  background: transparent;
}

#carbon_fields_container_bflex_settings .cf-container__fields .cf-field {
  border-right: none;
  background: #FFFFFF;
}

#carbon_fields_container_bflex_settings .cf-container__fields .cf-field.description-settings-block {
  border-radius: 10px;
  background: #fbfbfc;
}

#carbon_fields_container_bflex_settings .cf-container__fields .cf-field.block-description {
  color: #6B7280;
}

#carbon_fields_container_bflex_settings .cf-separator {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
//background: transparent;
  border: none;
  margin-top: 10px;
}

#carbon_fields_container_bflex_settings .cf-separator:first-child {
  margin-top: 0;
}

.cf-container .cf-field.cf-separator {
  background: #f6f7f7;
  padding-top: 0;
  padding-bottom: 0;
}

.cf-container .cf-field.cf-separator h3 {
  color: #1F2937;
  font-weight: 600;
}

.cf-container .cf-field.cf-hidden {
  border: none;
  padding: 0;
}

.cf-container .cf-field.cf-hidden .cf-field__head {
  display: none;
}


/* Radio Card Field */
.bflex-radio-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.bflex-radio-cards--vertical {
  grid-template-columns: 1fr;
}

.bflex-radio-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
  flex: 1 1 200px;
  min-width: 200px;
}

.bflex-radio-card:hover {
  border-color: #009e59;
  background-color: #f2faf6;
}

.bflex-radio-card--active {
  border-color: #009e59;
  background-color: #e6f5ee;
}

.bflex-radio-card__indicator {
  width: 20px;
  height: 20px;
  border: 2px solid #999;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  transition: border-color 0.2s;
}

.bflex-radio-card--active .bflex-radio-card__indicator {
  border-color: #009e59;
}

.bflex-radio-card--active .bflex-radio-card__indicator::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 10px;
  height: 10px;
  background: #009e59;
  border-radius: 50%;
}

.bflex-radio-card__title {
  font-weight: 600;
  font-size: 14px;
  color: #1e1e1e;
}

.bflex-radio-card__description {
  font-size: 13px;
  color: #757575;
  margin-top: 4px;
  line-height: 1.4;
}


/* Section Notice */
.bflex-section-notice {
  padding: 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #6B7280;
  font-size: 13px;
  line-height: 1.5;
}

.bflex-section-notice p {
  margin: 0;
}

.bflex-section-notice__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #009e59;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.bflex-section-notice__link:hover {
  color: #007a45;
}

.bflex-section-notice__link .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}


/* CPT List Table: Thumbnail Column */
.column-bflex_thumbnail {
  width: 100px;
}

.column-bflex_thumbnail img {
  border-radius: 4px;
  object-fit: cover;
  width: 80px;
  height: 80px;
}

.bflex-thumbnail-placeholder {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f1;
  border-radius: 4px;
  color: #a7aaad;
  font-size: 28px;
}

/* Base */
/**
 * Hide some WP blocks
 */
.post-type-bflex-rental-unit .misc-pub-visibility,
.post-type-bflex-cancel-policy .misc-pub-visibility,
.post-type-bflex-payment-type .misc-pub-visibility,
.post-type-bflex-rate-plan .misc-pub-visibility,
.post-type-bflex-rate-plan .postbox-container .level-1
{
  display: none;
}

/* Hide tabs */
.carbon-tab:has([data-field-name="conditional_field"]) {
  display: none;
}

.carbon-container:has([data-field-name="main_select"] option[value="target_value"]:checked),
.carbon-tab:has([data-field-name="conditional_field"]) {
  display: block;
}

/* Pro notice */
.crb-pro-notice {
  background: #f9fafb;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  padding: 12px 16px;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #334155;
}

.crb-pro-notice .crb-pro-title {
  color: #0f172a;
}

.crb-pro-notice .crb-pro-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.crb-pro-notice .crb-pro-link:hover {
  text-decoration: underline;
}

#fs_pricing_app {
  --fs-ds-theme-primary-accent-color: #009e59;
  --fs-ds-theme-package-popular-background: #39d994;
  --fs-ds-theme-primary-accent-color-hover: rgba(0, 158, 89, 0.9);
}

#fs_pricing_app .fs-button:hover:not(:disabled) {
  --fs-ds-theme-button-primary-background-hover-color: rgba(0, 158, 89, 0.9);
  --fs-ds-theme-button-primary-border-hover-color: rgba(0, 158, 89, 0.9);
}

#fs_pricing_app .fs-button:focus:not(:disabled) {
  --fs-ds-theme-button-border-focus-color: rgba(0, 158, 89, 0.9);
}

/* Notification log table */
.wp-list-table th.column-actions {
  width: 225px;
}
