/*
 Theme/Plugin: FoodOrd
 Description: Admin (backend) styles for Foodord.
 Author: FoodOrd Team
*/

/* Tweaks page layout */
:root {
  --background-color: #f7f7f7;
  --primary-color: #ea004b;
  --primary-hover: #c70040;
  --text-color: #323232;
  --text-hover: #313131;
  --secondary-text: #6b6b6b;
  --button-bg: #ea004b;
  --button-text-color: #ffffff;
  --button-on-hover: #c70040;
  --header-bg: #ffffff;
  --footer-bg: #ffffff;
  --footer-bottom-bg: #ffffff;
  --border-color: #f4f4f4;
}

.notice.foodord-theme-notice {
  display: flex;
  align-items: stretch;
  min-height: 76px;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  border-top: 1px solid #dcdcde;
  border-right: 1px solid #dcdcde;
  border-bottom: 1px solid #dcdcde;
  border-left-color: #2271b1;
}

.foodord-theme-notice__logo-wrap {
  display: flex;
  flex: 0 0 78px;
  align-items: center;
  justify-content: center;
  background: #edf5ff;
}

.foodord-theme-notice__logo {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.foodord-theme-notice__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 9px 14px;
}

.foodord-theme-notice__description,
.foodord-theme-notice__actions {
  margin: 0;
}

.foodord-theme-notice__description {
  color: #2c3338;
  font-size: 13px;
  line-height: 1.4;
}

.foodord-theme-notice__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  margin-top: 7px;
}

.foodord-theme-notice__dismiss {
  color: #50575e;
  text-decoration: none;
}

.foodord-theme-notice__dismiss:hover,
.foodord-theme-notice__dismiss:focus {
  color: #1d2327;
  text-decoration: underline;
}

.foodord-plugin-action-link--pro {
  color: #ea004b;
  font-weight: 700;
}

.foodord-optin-modal {
  width: 100%;
  max-width: 500px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

#foodord-optin-modal::backdrop {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
}

.foodord-optin-modal__content {
  padding: 24px;
}

.foodord-optin-modal__title {
  margin-top: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.foodord-optin-modal__description {
  margin-bottom: 12px;
  color: #555555;
  line-height: 1.5;
}

.foodord-optin-modal__notice {
  margin: 0 0 20px;
  padding: 10px 12px;
  border: 1px solid #ffd0e0;
  border-radius: 6px;
  background: #fff1f7;
  color: #7a0f34;
  font-weight: 600;
  line-height: 1.45;
}

.foodord-optin-modal__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 12px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #f9f9f9;
}

.foodord-optin-modal__status-label {
  font-weight: 500;
}

.foodord-optin-modal__status-value {
  font-weight: 600;
}

.foodord-optin-modal__status-value--enabled {
  color: #00a32a;
}

.foodord-optin-modal__status-value--disabled {
  color: #666666;
}

.foodord-optin-modal__form {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.foodord-optin-modal__allow-button,
.foodord-optin-modal__allow-button:hover,
.foodord-optin-modal__allow-button:focus {
  border-color: #16a34a;
  background: #16a34a;
  color: #ffffff;
}

@media (max-width: 600px) {
  .notice.foodord-theme-notice {
    margin-right: 10px;
  }

  .foodord-theme-notice__logo-wrap {
    flex-basis: 62px;
  }

  .foodord-theme-notice__logo {
    width: 34px;
    height: 34px;
  }

  .foodord-theme-notice__content {
    padding: 8px 10px;
  }
}

.foodord-tweaks-wrap .wrc-card {
  margin-top: 16px;
  padding: 1rem;
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
}

/* Generic card styling for admin forms */
.wrc-admin-content .wrc-card {
  margin-top: 24px;
  background: #ffffff;
  border: 1px solid #dcdcde;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 6px 18px rgba(18, 38, 63, 0.06);
}

.foodord-styling-page .foodord-styling-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 16px 10px 0;
}

.foodord-styling-page .foodord-styling-field label {
  font-weight: 600;
}

.foodord-styling-page .foodord-styling-field .small-text {
  width: 90px;
}

.foodord-styling-page .foodord-styling-field .wp-picker-container {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.foodord-styling-page .foodord-styling-field .wp-color-result {
  margin: 0;
}

.wrc-settings-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 24px;
}

.wrc-admin-content .wrc-card.wrc-delivery-options-container {
  padding: 0;
}

.wrc-mode-section {
  display: none;
}

.wrc-mode-section.is-mode-active {
  display: block;
}

.wrc-delivery-mode-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.wrc-mode-option {
  position: relative;
  background: #ffffff;
  border: 1px solid #dcdcde;
  border-radius: 10px;
  padding: 16px;
  padding-left: 46px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wrc-mode-option.is-selected {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px rgba(34, 113, 177, 0.2);
}


.wrc-mode-option__radio {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wrc-mode-option__radio input[type="radio"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #b6b6b6;
  background-color: #ffffff;
  margin: 0;
  pointer-events: none;
  display: inline-block;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wrc-mode-option__radio input[type="radio"]::before,
.wrc-mode-option__radio input[type="radio"]::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  margin: 0;
}

.wrc-mode-option__radio input[type="radio"]::before {
  width: 10px;
  height: 10px;
  background-color: transparent;
  transform: translate(-50%, -50%) scale(0);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.wrc-mode-option__radio input[type="radio"]::after {
  display: none;
}

.wrc-mode-option__radio input[type="radio"]:checked {
  border-color: #2271b1;
}

.wrc-mode-option__radio input[type="radio"]:checked::before {
  background-color: #2271b1;
  transform: translate(-50%, -50%) scale(1);
}

.wrc-mode-option__radio input[type="radio"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.25);
  border-color: #2271b1;
}

.wrc-mode-option__title {
  margin: 0;
  font-weight: 600;
  color: var(--text-color);
}

.wrc-mode-option__desc {
  margin: 0;
  color: var(--secondary-text);
  line-height: 1.4;
}

.wrc-radius-info {
  margin-top: 24px;
  margin-bottom: 16px;
}

.wrc-radius-store-address {
  margin: 0;
  font-size: 14px;
  color: var(--secondary-text);
}

.wrc-radius-store-address__label {
  font-weight: 600;
  color: var(--text-color);
  margin-right: 6px;
}

.wrc-radius-zones {
  background: #f7f7f7;
  border: 1px solid #dcdcde;
  border-radius: 10px;
  padding: 16px;
}

.wrc-radius-description {
  margin: 0 0 12px;
  color: var(--secondary-text);
}

.wrc-radius-zone-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 16px;
  padding: 0;
}

.wrc-radius-zone-item {
  background: #ffffff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 12px rgba(18, 38, 63, 0.04);
}

.wrc-radius-zone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wrc-radius-zone-title {
  font-weight: 600;
  color: var(--text-color);
}

.wrc-radius-zone-remove {
  background: transparent;
  border: 1px solid transparent;
  color: #b32d2e;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.wrc-radius-zone-remove:hover,
.wrc-radius-zone-remove:focus {
  border-color: #b32d2e;
  color: #8a1f22;
  outline: none;
}

.wrc-radius-zone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px 16px;
}

.wrc-radius-zone-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wrc-radius-zone-label {
  font-weight: 500;
  color: var(--secondary-text);
}

.wrc-radius-zone-input {
  width: 100%;
  border-radius: 6px;
  border: 1px solid #c3c4c7;
  padding: 6px 10px;
}

.wrc-radius-zone-input:focus {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px rgba(34, 113, 177, 0.2);
  outline: none;
}

.wrc-radius-zone-empty {
  margin: 0;
  color: var(--secondary-text);
  font-style: italic;
}

.wrc-add-radius-zone {
  margin-bottom: 0;
}

.wrc-radius-map {
  position: relative;
  width: 100%;
  height: 320px;
  border: 1px solid #dcdcde;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f4f5;
}

.wrc-radius-map__placeholder,
.wrc-radius-map__notice {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--secondary-text);
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  max-width: 90%;
}

.wrc-radius-map.is-ready .wrc-radius-map__placeholder {
  display: none;
}

.wrc-radius-map__legend {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(18, 38, 63, 0.12);
}

.wrc-radius-map__legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--secondary-text);
}

.wrc-radius-map__legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.wrc-radius-map__legend-label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.wrc-radius-map__legend-value {
  font-weight: 600;
  color: var(--text-color);
}

@media (max-width: 782px) {
  .wrc-radius-zones {
    padding: 14px;
  }

  .wrc-radius-zone-grid {
    grid-template-columns: 1fr;
  }

  .wrc-radius-map {
    height: 260px;
  }
}

@media (max-width: 600px) {
  .wrc-delivery-mode-options {
    grid-template-columns: 1fr;
  }
}

.wrc-admin-content .wrc-card-header {
  margin-bottom: 16px;
}

.wrc-delivery-options-container .wrc-card-header {
  margin-bottom: 0;
  padding: 18px 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #e7e7e7;
  border-radius: 10px 10px 0 0;
}

.wrc-admin-content .wrc-card-header .wrc-section-title {
  margin: 0 0 6px;
}

.wrc-delivery-options-container .wrc-card-header .wrc-section-title {
  margin-bottom: 4px;
}

.wrc-delivery-options-container .wrc-card-header .description {
  margin: 0;
  color: var(--secondary-text);
}

.wrc-delivery-options-container .wrc-card-body {
  padding: 22px;
}

.wrc-admin-content .wrc-card-body .wrc-form {
  display: grid;
  gap: 14px 18px;
}

.wrc-admin-content .wrc-card-body .wrc-field {
  display: contents;
}

.wrc-admin-content .wrc-card-body .wrc-label {
  align-self: center;
}

.wrc-admin-content .wrc-card-body .wrc-control {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 240px;
}

.wrc-admin-content .wrc-card-body .wrc-help {
  margin: 0;
}

/* Radius mode: keep long helper text on one line by allowing wider controls */
.wrc-radius-form .wrc-control {
  max-width: 520px;
}

.wrc-admin-content .wrc-card-body .wrc-help.wrc-help--nowrap {
  white-space: nowrap;
}

@media (max-width: 782px) {
  .wrc-admin-content .wrc-card-body .wrc-help.wrc-help--nowrap {
    white-space: normal;
  }
}

@media (max-width: 782px) {
  .wrc-admin-content .wrc-card-body .wrc-form {
    grid-template-columns: 1fr;
  }
}

.wrc-card--preorder {
  border-left: 4px solid #2271b1;
  position: relative;
}

.wrc-card--preorder .wrc-card-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Toppings Step 2: Responsive and spacing overrides */
.foodord-toppings-wrap .topping-items-form {
  gap: 4rem;
}

.foodord-toppings-wrap .topping-items-form .wrc-field .regular-text {
  width: 300px;
  max-width: 100%;
  border-radius: 6px;
}

/* Tablet/boxed admin layouts */
@media (max-width: 960px) {
  .foodord-toppings-wrap .topping-items-form {
    display: grid;
    gap: 1rem;
    width: 100%;
  }

  .foodord-toppings-wrap .topping-items-form .wrc-field .regular-text {
    width: 100%;
    max-width: 100%;
  }
}

/* Form grid */
.foodord-tweaks-wrap .wrc-form {
  display: grid;
  gap: 14px 16px;
}

.foodord-tweaks-wrap .wrc-field {
  display: contents;
}

.foodord-tweaks-wrap .wrc-label {
  align-self: center;
}

.foodord-tweaks-wrap .wrc-control {
  display: flex;
  flex-direction: column;
}

.foodord-tweaks-wrap .foodord-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.foodord-tweaks-wrap .wrc-help {
  margin: 6px 0 0 0;
}

/* Inputs */
.foodord-tweaks-wrap input[type="text"].regular-text {
  max-width: 220px;
  border-radius: 6px;
}

.foodord-tweaks-wrap input[type="color"] {
  width: 44px;
  height: 32px;
  padding: 0;
  border: 1px solid #dcdcde;
  border-radius: 6px;
  background: #fff;
}

.foodord-tweaks-wrap input[type="text"].foodord-hex:focus,
.foodord-tweaks-wrap input[type="color"]:focus {
  outline: none;
  border-color: #2271b1;
  box-shadow: 0 0 0 1px rgba(34, 113, 177, 0.25);
}

.foodord-tweaks-wrap input.foodord-hex.foodord-invalid {
  border-color: #d63638;
  box-shadow: 0 0 0 1px rgba(214, 54, 56, 0.35);
}

/* Better spacing for submit */
.foodord-tweaks-wrap p.submit {
  margin-top: 12px;
}

/* Utility: custom top margin for cards when needed */
.foodord-tweaks-wrap .wrc-card--mt-20 {
  margin-top: 20px;
}

/* Specific styles for individual tweaks cards */
.foodord-tweaks-wrap .wrc-card--product-images {
  margin-top: 20px;
}

.foodord-tweaks-wrap .wrc-card--scroll-navigation {
  margin-top: 20px;
}

/* Checkbox highlight classes (JS toggled) */
.foodord-tweaks-wrap label.foodord-highlight {
  transition: background-color 0.3s ease;
}

.foodord-tweaks-wrap label.foodord-highlight--positive {
  background-color: rgba(0, 128, 0, 0.05);
}

.foodord-tweaks-wrap label.foodord-highlight--negative {
  background-color: rgba(128, 0, 0, 0.05);
}

/* Admin scope root (use this class when enqueueing admin UI components) */
.wrc-admin {
  box-sizing: border-box;
}

.foodord-toppings-wrap {
  --topping-label-offset: 25px;
}

/* Step Indicator Container */
.foodord-toppings-container {
  margin-top: 20px;
  background: #fff;
  padding: 20px;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
}

/* Individual Step Containers */
.foodord-step-container {
  margin-top: 20px;
  background: #fff;
  padding: 0;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
}

.foodord-step-container .step-content {
  padding: 24px;
}

/* Step Indicator */
.foodord-steps-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  flex-wrap: wrap;
  gap: 10px;
}

.foodord-steps-indicator .step {
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 5px 20px;
  border-radius: 10px;
  background: #fff;
  border: 2px solid #dcdcde;
  white-space: nowrap;
}

.foodord-steps-indicator .step.active {
  background: #2271b1;
  border-color: #2271b1;
  color: #ffffff;
}

.foodord-steps-indicator .step.completed {
  background: #00a32a;
  border-color: #00a32a;
  color: #ffffff;
}

.foodord-steps-indicator .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  margin-right: 10px;
  flex-shrink: 0;
}

.foodord-steps-indicator .step-divider {
  width: 60px;
  height: 2px;
  background: #dcdcde;
  margin: 0 15px;
  flex-shrink: 1;
}

/* Responsive for tablets */
@media (max-width: 768px) {

  .foodord-toppings-container,
  .foodord-step-container .step-content {
    padding: 16px;
  }

  .foodord-steps-indicator {
    padding: 16px;
  }

  .foodord-steps-indicator .step {
    padding: 8px 16px;
  }

  .foodord-steps-indicator .step-number {
    width: 25px;
    height: 25px;
    margin-right: 8px;
  }

  .foodord-steps-indicator .step-divider {
    width: 40px;
    margin: 0 10px;
  }
}

/* Responsive for mobile */
@media (max-width: 480px) {
  .foodord-toppings-container {
    padding: 12px;
    margin-top: 16px;
    border-radius: 6px;
  }

  .foodord-step-container {
    margin-top: 16px;
    border-radius: 6px;
  }

  .foodord-step-container .step-content {
    padding: 12px;
  }

  .foodord-steps-indicator {
    flex-direction: column;
    padding: 12px;
    gap: 8px;
  }

  .foodord-steps-indicator .step {
    width: 100%;
    justify-content: center;
    padding: 10px;
  }

  .foodord-steps-indicator .step-divider {
    width: 2px;
    height: 20px;
    margin: 0;
  }

  /* Step content responsive */
  .step-content {
    padding: 12px 0;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .foodord-toppings-container {
    padding: 10px;
  }

  .foodord-step-container .step-content {
    padding: 10px;
  }

  .foodord-steps-indicator .step-title {
    display: none;
  }

  .foodord-steps-indicator .step {
    padding: 8px;
    min-width: auto;
  }

  .foodord-steps-indicator .step-number {
    margin-right: 0;
  }
}


/* Topping Groups Content */
.topping-groups-content {
  padding: 0;
}

/* Group Type Styles */
.foodord-group-type-container {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  padding: 24px;
  margin: 20px 0;
}

.group-type-header {
  margin-bottom: 20px;
}

.foodord-group-type-container h3 {
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.foodord-group-type-container h3 .dashicons {
  width: 20px;
  height: 20px;
}

.foodord-group-type-container .description {
  margin: 0;
}

.group-type-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.group-type-option {
  position: relative;
  background: #fff;
  border: 2px solid #dcdcde;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.group-type-option:hover {
  border-color: #2271b1;
  background-color: #f9fafb;
}

.group-type-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.group-type-option .option-content {
  display: flex;
  align-items: center;
  padding: 16px;
  gap: 12px;
  position: relative;
  padding-right: 88px;
}

.group-type-option .option-icon {
  width: 36px;
  height: 36px;
  background: #f0f0f1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.group-type-option .option-icon .dashicons {
  width: 20px;
  height: 20px;
}

.group-type-option .option-details {
  flex: 1;
  min-width: 0;
}

.group-type-option__toggle {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.group-type-option__toggle-text {
  margin-bottom: 6px;
}

.group-type-option__toggle-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 26px;
  border-radius: var(--foodord-toggle-radius, 4px);
  border: 1px solid #b6b6b8;
  background: #f0f0f1;
  padding: 0;
  cursor: pointer;
  --foodord-toggle-travel: 21px;
  --foodord-toggle-radius: 4px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.group-type-option__toggle-button:focus-visible {
  outline: 2px solid #3858e9;
  outline-offset: 2px;
}

.group-type-option__toggle-track {
  position: relative;
  display: inline-block;
  width: 100%;
  height: 100%;
  border-radius: var(--foodord-toggle-radius, 4px);
  background: #dcdcde;
  transition: background-color 0.2s ease;
}

.group-type-option__toggle-handle {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: var(--foodord-toggle-radius, 4px);
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0) rotate(0deg);
  transform-origin: center center;
  transition: transform 0.28s cubic-bezier(0.33, 1, 0.68, 1);
}

.group-type-option__toggle-button.is-active {
  border-color: #3858e9;
  background: #3858e9;
}

.group-type-option__toggle-button.is-active .group-type-option__toggle-track {
  background: #3858e9;
}

.group-type-option__toggle-button.is-active .group-type-option__toggle-handle {
  transform: translate3d(var(--foodord-toggle-travel), 0, 0) rotate(180deg);
}

.group-type-option .option-details strong {
  display: block;
  margin-bottom: 2px;
}

/* Selected state */
.group-type-option:has(input:checked) {
  border-color: #2271b1;
  background-color: #f0f7ff;
}

.group-type-option:has(input:checked) .option-icon {
  background: #2271b1;
  color: #ffffff;
}

.group-type-option.selected {
  border-color: #2271b1;
  background-color: #f0f7ff;
}

.group-type-option.selected .option-icon {
  background: #2271b1;
}

/* Next Button Actions */
.group-type-actions {
  margin-top: 30px;
  text-align: right;
}

#group-type-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #2271b1;
  color: #ffffff;
  border-radius: 4px;
  box-shadow: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

#group-type-next:hover:not(:disabled) {
  background: #135e96;
  border-color: #135e96;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(34, 113, 177, 0.3);
}

#group-type-next:active:not(:disabled) {
  color: #ffffff;
  transform: translateY(0);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.15);
}

#group-type-next .dashicons {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
  margin: 0;
  color: currentColor;
  font-size: 16px;
  line-height: 1;
  vertical-align: middle;
  width: 16px;
  height: 16px;
}

#group-type-next .dashicons::before {
  display: block;
  color: currentColor;
  font-size: inherit;
  line-height: 1;
}

#group-type-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #dcdcde;
  border-color: #dcdcde;
  color: #646970;
}

/* Step Content Visibility */
.step-content--hidden {
  display: none;
}

@media (max-width: 960px) {
  .foodord-group-type-container {
    padding: 20px;
  }

  .group-type-options {
    grid-template-columns: 1fr;
  }

  .group-type-option .option-content {
    align-items: flex-start;
    gap: 16px;
    padding-right: 104px;
  }

  .group-type-option .option-icon {
    margin-top: 2px;
  }

  .group-type-option__toggle {
    right: 12px;
  }
}

/* Topping Items Styles */
.topping-items-content {
  padding: 0;
}

.topping-items-content h3 {
  margin: 0 0 10px 0;
}

/* Two-column form layout for step 2 */
.topping-items-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  width: 100%;
}

.topping-items-form .wrc-field {
  display: flex;
  flex-direction: column;
}

.topping-checkbox-limits {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
  margin-top: 8px;
}

.topping-checkbox-limits .wrc-field--checkbox-limit {
  flex: 0 1 220px;
  min-width: 220px;
}

.topping-checkbox-limits .wrc-field--checkbox-limit .small-text {
  width: 100%;
  border-radius: 6px;
}

.wrc-number-input-control {
  position: relative;
  display: flex;
  align-items: center;
}

.wrc-number-input-control .wrc-number-input {
  width: 100%;
  padding-right: 46px;
}

.topping-checkbox-limit-controls {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 4px;
  width: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.topping-checkbox-limit-control {
  flex: 1;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topping-checkbox-limit-control .dashicons {
  width: 14px;
  height: 14px;
  font-size: 14px;
}

.topping-checkbox-limit-control:focus,
.topping-checkbox-limit-control:focus-visible {
  outline: none;
  background-color: transparent;
}

.topping-checkbox-limit-control[disabled],
.topping-checkbox-limit-control.disabled {
  opacity: 0.4;
  cursor: default;
}

.topping-items-form label {
  margin: 0 0 6px 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.topping-items-form .description {
  margin: 2px 0 0 0;
}

.topping-items-panel .wrc-field--categories {
  width: 100%;
  margin-top: 10px;
}

/* Toggle Button Styles for Tweaks Settings */
.foodord-tweaks-wrap .foodord-toggle-row,
.wrc-admin-content .foodord-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.foodord-tweaks-wrap .foodord-toggle-switch,
.wrc-admin-content .foodord-toggle-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  cursor: pointer;
  --foodord-toggle-travel: 21px;
  --foodord-toggle-knob: 19px;
  --foodord-toggle-radius: 4px;
}

.foodord-tweaks-wrap .foodord-toggle-switch input,
.wrc-admin-content .foodord-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
  outline: none;
}

.foodord-tweaks-wrap .foodord-toggle-slider,
.wrc-admin-content .foodord-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #dcdcde;
  transition: background-color 0.28s ease, border-color 0.28s ease;
  border-radius: var(--foodord-toggle-radius, 4px);
  border: 1px solid #dcdcde;
}

.foodord-tweaks-wrap .foodord-toggle-slider:before,
.wrc-admin-content .foodord-toggle-slider:before {
  position: absolute;
  content: "";
  height: var(--foodord-toggle-knob, 19px);
  width: var(--foodord-toggle-knob, 19px);
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: var(--foodord-toggle-radius, 4px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0) rotate(0deg);
  transform-origin: center center;
  transition: transform 0.28s cubic-bezier(0.33, 1, 0.68, 1);
}

.foodord-tweaks-wrap .foodord-toggle-switch input:checked+.foodord-toggle-slider,
.wrc-admin-content .foodord-toggle-switch input:checked+.foodord-toggle-slider {
  background-color: #3858e9;
  border-color: #3858e9;
}

.foodord-tweaks-wrap .foodord-toggle-switch input:focus+.foodord-toggle-slider,
.wrc-admin-content .foodord-toggle-switch input:focus+.foodord-toggle-slider {
  box-shadow: none;
  outline: none;
}

.foodord-tweaks-wrap .foodord-toggle-switch input:checked+.foodord-toggle-slider:before,
.wrc-admin-content .foodord-toggle-switch input:checked+.foodord-toggle-slider:before {
  transform: translate3d(var(--foodord-toggle-travel, 21px), 0, 0) rotate(180deg);
}

.foodord-tweaks-wrap .foodord-toggle-label,
.wrc-admin-content .foodord-toggle-label {
  flex: 1;
}

/* Hover effects */
.foodord-tweaks-wrap .foodord-toggle-switch:hover .foodord-toggle-slider,
.wrc-admin-content .foodord-toggle-switch:hover .foodord-toggle-slider {
  background-color: #b8b8b8;
}

.foodord-tweaks-wrap .foodord-toggle-switch input:checked:hover+.foodord-toggle-slider,
.wrc-admin-content .foodord-toggle-switch input:checked:hover+.foodord-toggle-slider {
  background-color: #2d47d8;
}

@media (prefers-reduced-motion: reduce) {

  .foodord-tweaks-wrap .foodord-toggle-slider:before,
  .wrc-admin-content .foodord-toggle-slider:before,
  .wrc-toggle-slider:before,
  .group-type-option__toggle-handle {
    transition-duration: 0.01ms;
  }

  .foodord-tweaks-wrap .foodord-toggle-switch input:checked+.foodord-toggle-slider:before,
  .wrc-admin-content .foodord-toggle-switch input:checked+.foodord-toggle-slider:before,
  .wrc-toggle-switch-control input:checked+.wrc-toggle-slider:before,
  .group-type-option__toggle-button.is-active .group-type-option__toggle-handle {
    transform: translate3d(var(--foodord-toggle-travel, 21px), 0, 0) rotate(0deg);
  }
}

.topping-items-panel .wrc-category-selector {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  margin: 30px 0 0 0;
  border: 1px solid #dcdcde;
  border-radius: 6px;
  background: #f6f7f7;
}

.topping-items-panel .wrc-category-selector:focus-within {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px rgba(34, 113, 177, 0.15);
}

.topping-items-panel .wrc-category-selector__subtitle {
  margin: 0;
}

.topping-items-panel .wrc-product-specific-topping-tip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 16px 0 0;
  padding: 14px 16px;
  border: 1px solid #72aee6;
  border-left: 4px solid #2271b1;
  border-radius: 6px;
  background: linear-gradient(90deg, #f0f6fc 0%, #f6f7f7 100%);
  box-shadow: 0 1px 2px rgba(18, 38, 63, 0.08);
  color: #1d2327;
}

.topping-items-panel .wrc-product-specific-topping-tip__icon {
  display: inline-flex;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2271b1;
}

.topping-items-panel .wrc-product-specific-topping-tip__icon .dashicons {
  width: 18px;
  height: 18px;
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

.topping-items-panel .wrc-product-specific-topping-tip__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding-top: 2px;
}

.topping-items-panel .wrc-product-specific-topping-tip__title {
  color: #1d2327;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.topping-items-panel .wrc-product-specific-topping-tip__text {
  color: #50575e;
  font-size: 13px;
  line-height: 1.5;
}

.topping-items-panel .wrc-product-specific-topping-tip__link.button {
  flex: 0 0 auto;
  align-self: center;
  margin-left: auto;
  height: auto;
  min-height: 30px;
  padding: 4px 12px;
  line-height: 1.4;
  white-space: nowrap;
}

.topping-items-panel .wrc-product-specific-topping-tip__link.button:hover,
.topping-items-panel .wrc-product-specific-topping-tip__link.button:focus {
  text-decoration: none;
}

.topping-items-panel .wrc-category-selector__options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
}

.topping-items-panel .wrc-category-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 5px;
  background: #fff;
  border: 1px solid #dcdcde;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.topping-items-panel .wrc-category-option:hover {
  border-color: #2271b1;
}

.topping-items-panel .wrc-category-option input[type="checkbox"] {
  margin: 0;
}

.topping-items-panel .wrc-field--categories .description {
  margin-bottom: 15px;
}

@media (max-width: 782px) {
  .topping-items-panel .wrc-product-specific-topping-tip {
    flex-wrap: wrap;
    gap: 10px;
  }

  .topping-items-panel .wrc-product-specific-topping-tip__link.button {
    align-self: flex-start;
    margin-left: 44px;
    width: calc(100% - 44px);
    text-align: center;
  }
}

.topping-items-actions {
  margin-top: 30px;
  text-align: left;
}

#topping-items-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #2271b1;
  color: #ffffff;
  border-radius: 4px;
  box-shadow: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  border: 1px solid #2271b1;
}

#topping-items-back:hover {
  background: #135e96;
  border-color: #135e96;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(34, 113, 177, 0.3);
}

#topping-items-back:active {
  color: #ffffff;
  transform: translateY(0);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.15);
}

#topping-items-back .dashicons {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
  margin: 0;
  color: currentColor;
  font-size: 16px;
  line-height: 1;
  vertical-align: middle;
  width: 16px;
  height: 16px;
}

#topping-items-back .dashicons::before {
  display: block;
  color: currentColor;
  font-size: inherit;
  line-height: 1;
}

/* Preorder field visibility */
.wrc-field--preorder-hidden {
  display: none;
}

.wrc-subtitle {
  margin: 35px 0 -15px 0;
}

.add-topping-action {
  margin-top: 15px;
  text-align: left;
}

.foodord-toppings-wrap .add-new-topping {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #f6f7f7;
  border: 1px solid #dcdcde;
  border-radius: 4px;
  color: #1d2327;
  box-shadow: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  padding: 6px 12px;
  height: auto;
}

.foodord-toppings-wrap .add-new-topping:hover {
  background: #f0f0f1;
  border-color: #8c8f94;
  color: #1d2327;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.foodord-toppings-wrap .add-new-topping:active {
  color: #1d2327;
  transform: translateY(0);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.foodord-toppings-wrap .add-new-topping:disabled,
.foodord-toppings-wrap .add-new-topping[disabled] {
  opacity: 0.5;
  color: #646970;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.foodord-toppings-wrap .add-new-topping .dashicons {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
  margin: 0;
  color: currentColor;
  font-size: 16px;
  line-height: 1;
  vertical-align: middle;
  width: 16px;
  height: 16px;
}

.foodord-toppings-wrap .add-new-topping .dashicons::before {
  display: block;
  color: currentColor;
  font-size: inherit;
  line-height: 1;
}

.topping-row {
  display: flex;
  gap: 4rem;
  margin: 15px 0;
  align-items: flex-start;
}

.topping-row .wrc-field {
  display: flex;
  flex-direction: column;
}

.topping-row .regular-text {
  width: 300px;
  max-width: 100%;
}

@media (max-width: 960px) {
  .topping-row {
    flex-direction: column;
    gap: 1rem;
  }

  .topping-row .regular-text {
    width: 100%;
    max-width: 100%;
  }
}

/* Topping Items Sortable Styles */
.topping-items-sortable {
  margin-top: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fff;
  padding: 0;
  overflow: hidden;
}

.topping-item-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  column-gap: 18px;
  row-gap: 18px;
  margin: 0;
  padding: 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  position: relative;
}

.topping-item-row--without-tax {
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
}

.topping-item-row+.topping-item-row {
  border-top: 1px solid #f0f0f0;
}

.topping-item-row:hover {
  background: #f8f9fa;
}

.topping-item-fields {
  display: contents;
}

.wrc-field--label,
.wrc-field--price,
.wrc-field--tax-class {
  width: 100%;
}

.wrc-field--label .wrc-label,
.wrc-field--price .wrc-label,
.wrc-field--tax-class .wrc-label {
  display: block;
  margin-bottom: 5px;
}

.wrc-field--label .regular-text,
.wrc-field--price .regular-text,
.wrc-field--tax-class .wrc-select {
  width: 100%;
  padding: 0 0 0 10px;
  border-radius: 6px;
}

.wrc-field--tax-class .wrc-select {
  min-height: 40px;
}

.wrc-optional {
  color: #646970;
  font-weight: 400;
}

.wrc-currency-input {
  position: relative;
  display: inline-block;
  width: 100%;
}

.wrc-currency-input::after {
  content: attr(data-currency);
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  text-transform: uppercase;
  pointer-events: none;
}

.wrc-currency-input .wrc-number-input {
  width: 100%;
  padding-right: 72px;
}

.wrc-number-input::-webkit-outer-spin-button,
.wrc-number-input::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

.wrc-number-input[type="number"] {
  appearance: textfield;
}

.topping-items-sortable .topping-item-row[data-topping-index]:not([data-topping-index="0"]) .topping-item-fields .wrc-label {
  display: none;
}

.topping-items-panels {
  display: block;
}

.topping-items-panel {
  margin-bottom: 24px;
}

.topping-panel-header {
  margin-bottom: 16px;
}

.topping-panel-header .description {
  margin: 6px 0 0 0;
}

.topping-panel-controls {
  margin: 0 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.topping-hide-price-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.topping-hide-price-control input[type="checkbox"] {
  margin: 0;
}

.topping-panel-controls .description {
  margin: 0;
}

.topping-item-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: center;
  flex-wrap: nowrap;
  margin-top: 0;
}

.topping-item-row[data-topping-index="0"] > .topping-item-actions {
  align-self: start;
  margin-top: var(--topping-label-offset);
}

.topping-item-actions .topping-default-control {
  justify-self: flex-start;
}

.topping-item-actions .remove-topping-item {
  flex: 0 0 32px;
}

.foodord-toppings-wrap #topping-items-sortable .topping-item-actions {
  margin-top: 0;
}


.topping-default-heading {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) repeat(2, 32px) auto;
  column-gap: 12px;
  align-items: end;
  margin-bottom: 8px;
}

.topping-default-heading__label {
  grid-column: 6;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 60px;
  text-align: center;
}

.topping-default-heading--without-tax {
  grid-template-columns: repeat(2, minmax(0, 1fr)) repeat(2, 32px) auto;
}

.topping-default-heading--without-tax .topping-default-heading__label {
  grid-column: 5;
}


.topping-default-control {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  height: 32px;
}

.topping-default-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 6px;
  border-radius: 4px;
  cursor: pointer;
}

.topping-default-checkbox {
  display: block;
  flex: 0 0 18px;
  margin: 0;
  width: 18px;
  height: 18px;
  transform: translateY(1px);
}

@media (max-width: 960px) {
  .topping-item-row {
    grid-template-columns: 1fr;
  }

  .topping-item-fields {
    grid-template-columns: 1fr;
  }

  .topping-default-heading {
    grid-template-columns: 1fr;
  }

  .topping-default-heading__label {
    grid-column: auto;
    justify-content: flex-start;
  }

  .topping-default-heading--without-tax .topping-default-heading__label {
    grid-column: auto;
  }

  .topping-item-actions {
    justify-content: flex-start;
    margin-top: 0;
    align-self: center;
    gap: 10px;
  }

  .topping-item-row[data-topping-index="0"] > .topping-item-actions {
    align-self: start;
    margin-top: var(--topping-label-offset);
  }
}

.drag-handle {
  background: none;
  border: none;
  cursor: grab;
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  user-select: none;
  flex: 0 0 32px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.drag-handle:active {
  cursor: grabbing;
}

.drag-handle:hover {
  background: none;
}

.drag-handle:focus {
  outline: 2px solid #2271b1;
  outline-offset: 2px;
}

/* 6 dots vertical drag icon */
.drag-dots {
  pointer-events: none;
  position: relative;
  display: inline-block;
  width: 14px;
  height: 20px;
  color: #646970;
}

.drag-dots::before,
.drag-dots::after {
  content: "";
  position: absolute;
  top: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 6px 0 currentColor, 0 12px 0 currentColor;
}

.drag-dots::before {
  left: 2px;
}

.drag-dots::after {
  right: 2px;
}

.drag-handle:hover .drag-dots,
.drag-handle:focus .drag-dots,
.drag-handle:active .drag-dots {
  color: #1d2327;
}

/* Remove topping button */
.remove-topping-item {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  width: 32px;
  height: 32px;
  user-select: none;
  transition: all 0.2s ease;
}

.remove-topping-item .dashicons {
  width: 18px;
  height: 18px;
  color: #dc3545;
  opacity: 0.7;
}

.remove-topping-item:disabled,
.remove-topping-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.remove-topping-item:disabled:hover,
.remove-topping-item.disabled:hover {
  background: none;
}

/* Sortable states */
.topping-item-placeholder {
  margin: 0;
  padding: 18px;
  border: 2px dashed #8c8f94;
  border-radius: 0;
  background: rgba(34, 113, 177, 0.05);
  visibility: visible;
}

@media screen and (max-width: 960px) {
  .foodord-toppings-wrap #topping-items-sortable.ui-sortable .topping-item-row {
    display: grid;
    grid-template-columns: 1fr 80px;
    /* fields + actions (drag + remove) */
    column-gap: 12px;
    row-gap: 12px;
    align-items: center;
  }

  .foodord-toppings-wrap #topping-items-sortable.ui-sortable .topping-item-fields {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 12px;
    width: 100%;
  }

  .foodord-toppings-wrap #topping-items-sortable.ui-sortable .wrc-field--label .regular-text,
  .foodord-toppings-wrap #topping-items-sortable.ui-sortable .wrc-field--price .regular-text,
  .foodord-toppings-wrap #topping-items-sortable.ui-sortable .wrc-field--tax-class .wrc-select {
    width: 100%;
    max-width: 100%;
  }

  .foodord-toppings-wrap #topping-items-sortable.ui-sortable .topping-item-actions {
    display: inline-flex;
    grid-column: 2;
    align-self: center;
    justify-self: center;
    margin-top: 0;
    order: 0;
    flex-direction: row;
    gap: 5px;
  }

  .foodord-toppings-wrap #topping-items-sortable.ui-sortable .topping-item-row[data-topping-index="0"] > .topping-item-actions {
    align-self: start;
    margin-top: var(--topping-label-offset);
  }
}

.wrc-save-fixed {
  display: none;
  padding-top: 1rem;
}

/* Modal Styles */
.foodord-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
}

.foodord-modal.is-open {
  display: flex;
}

.foodord-modal__content {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: foodord-modal-appear 0.3s ease;
}

@keyframes foodord-modal-appear {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.foodord-modal__header {
  padding: 24px 24px 0 24px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 0;
  position: relative;
}

.foodord-modal__title {
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}


.foodord-modal__body {
  padding: 24px;
}

.foodord-modal__message {
  margin: 0 0 24px 0;
}

.foodord-modal__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 0 24px 24px 24px;
  text-align: right;
}

.foodord-modal__button {
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 80px;
}

.foodord-modal__button--cancel {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
}

.foodord-modal__button--cancel:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
}

.foodord-modal__button--confirm {
  background: var(--button-bg);
  color: #ffffff;
  border: 1px solid #ea004b;
}

.foodord-modal__button--confirm:hover {
  background: var(--button-on-hover);
  border-color: #dc2626;
}

.foodord-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.foodord-modal__close:hover {
  background: #f3f4f6;
}

/* Opening Hours Styles (Minimal) */
.wrc-hours-container {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  margin-top: 16px;
}

.wrc-hours-header {
  padding: 14px 16px;
  border-bottom: 1px solid #e7e7e7;
}

.wrc-hours-header h2 {
  margin: 0;
}

.wrc-hours-content {
  padding: 16px;
}

.wrc-day-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  column-gap: 30px;
  row-gap: 8px;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid #eeeeee;
  border-radius: 6px;
  background: #fff;
}

.wrc-day-row+.wrc-day-row {
  margin-top: 10px;
}

.wrc-day-row:hover {
  border-color: #c3c4c7;
}

.wrc-time-inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 12px;
  row-gap: 0;
}

.wrc-time-group {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid #dcdcde;
  border-radius: 6px;
  background: #fff;
  width: 100%;
}

.wrc-time-input {
  width: 100%;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 4px 0;
  outline: none;
}

.wrc-period-separator {
  padding-left: 15px;
}

.wrc-closed-checkbox {
  justify-self: end;
  margin-right: 6px;
}

.wrc-closed-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 1024px) {
  .wrc-hours-content {
    padding: 14px;
  }

  .wrc-day-row {
    grid-template-columns: 120px 1fr auto;
    gap: 30px;
    padding: 8px 10px;
  }

  .wrc-time-inputs {
    grid-template-columns: 1fr auto 1fr;
    column-gap: 10px;
  }

  .wrc-time-group {
    grid-template-columns: 1fr auto 1fr;
    gap: 4px;
    padding: 3px 6px;
  }

  .wrc-time-input {
    width: 100%;
    min-width: 0;
  }

  .wrc-closed-checkbox {
    justify-self: end;
  }
}

@media (max-width: 782px) {
  .wrc-day-row {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .wrc-time-inputs {
    grid-template-columns: 1fr;
    row-gap: 8px;
    white-space: normal;
  }

  .wrc-period-separator {
    display: none;
  }

  .wrc-closed-checkbox {
    justify-self: start;
  }
}

/* Custom Hours Container Styles */
.wrc-custom-hours-container {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  margin-top: 20px;
}

.wrc-custom-hours-header {
  padding: 14px 0 0 14px;
  border-bottom: 1px solid #e7e7e7;
  background: #f8f9fa;
  border-radius: 8px 8px 0 0;
}

.wrc-custom-hours-header h2 {
  margin: 0;
}

.wrc-custom-hours-content {
  padding: 20px 16px;
}

/* Delivery Options Container Styles */
.wrc-delivery-options-container {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  margin-top: 20px;
}

.wrc-delivery-options-header {
  padding: 14px 16px;
  border-bottom: 1px solid #e7e7e7;
  background: #f8f9fa;
  border-radius: 8px 8px 0 0;
}

.wrc-delivery-options-header h2 {
  margin: 0;
}

.wrc-delivery-options-container .description {
  margin-top: 10px;
}

.wrc-delivery-options-content {
  padding: 20px 16px;
}

/* Delivery Fee UI */
.wrc-delivery-fee-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* Segmented control styles */
.wrc-segmented {
  display: inline-flex;
  border: 1px solid #dcdcde;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.wrc-segmented input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.wrc-segmented label {
  padding: 8px 12px;
  cursor: pointer;
  background: #fff;
  border-right: 1px solid #dcdcde;
  user-select: none;
}

.wrc-segmented label:last-of-type {
  border-right: 0;
}

/* Checked states using input + label pairing */
.wrc-segmented input[type="radio"]:checked+label {
  background: #2271b1;
  border-color: #2271b1;
}

.wrc-segmented label:hover {
  background: #f6f7f7;
}

/* Fixed amount visibility (no JS) */
.wrc-fixed-amount {
  display: none;
  align-items: center;
  gap: 8px;
}

.wrc-delivery-fee-row:has(#wrc-fee-fixed:checked) .wrc-fixed-amount {
  display: inline-flex;
}

/* Location based fee UI */
.wrc-location-based {
  display: none;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  background: #f8f9fa;
  border: 1px dashed #dcdcde;
  border-radius: 8px;
  padding: 16px;
  transition: opacity 0.2s ease;
  box-sizing: border-box;
  overflow: hidden;
}

.wrc-location-based.is-active {
  display: flex;
}

.wrc-location-description {
  margin: 0;
}

.wrc-location-list {
  display: flex;
  flex-direction: column;
}

.wrc-location-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: #fff;
  border: 1px solid #e6e7e8;
  border-radius: 6px;
  padding: 12px;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.wrc-location-row .wrc-location-actions {
  grid-column: 1 / -1;
  justify-self: end;
  margin-top: 8px;
  width: auto;
}

.wrc-location-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wrc-location-label {
  margin: 0;
}

.wrc-location-input {
  border: 1px solid #c3c4c7;
  border-radius: 4px;
  padding: 6px 10px;
  background-color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wrc-location-input:focus {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
  outline: none;
}

.wrc-location-actions {
  display: flex;
  align-items: flex-start;
}


.wrc-location-remove {
  border: none;
  background: transparent;
  color: crimson;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}

.wrc-location-remove:hover,
.wrc-location-remove:focus {
  outline: none;
}

.wrc-location-empty {
  margin: 0;
  text-align: center;
}

.wrc-add-location {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Compact number input */
.wrc-delivery-options-content .wrc-number-input.small-text {
  max-width: 140px;
}

@media (max-width: 782px) {
  .wrc-delivery-fee-row {
    gap: 10px;
  }

  .wrc-delivery-options-content .wrc-number-input.small-text {
    max-width: 120px;
  }

  .wrc-location-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .wrc-location-row .wrc-location-actions {
    grid-column: 1;
    justify-self: end;
    margin-top: 12px;
  }
}

/* Add Custom Hour Button - More specific selectors */
.wrc-custom-hours-content .wrc-add-custom-hour.button.button-secondary {
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #f6f7f7;
  border: 1px solid #dcdcde;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: none;
  height: auto;
  vertical-align: baseline;
}

.wrc-custom-hours-content .wrc-add-custom-hour.button.button-secondary:hover {
  background: #f0f0f1;
  border-color: #8c8f94;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wrc-custom-hours-content .wrc-add-custom-hour.button.button-secondary:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wrc-custom-hours-content .wrc-add-custom-hour.button.button-secondary:focus {
  outline: none;
  box-shadow: none;
}

.wrc-custom-hours-list {
  min-height: 60px;
  border: 1px dashed #c3c4c7;
  border-radius: 6px;
  background: #fafafa;
  padding: 16px;
  text-align: center;
  font-style: italic;
}

.wrc-custom-hours-list.wrc-empty-state {
  border: 1px dashed #c3c4c7;
  background: #fafafa;
  text-align: center;
}

.wrc-empty-message {
  margin-top: 1.3rem;
  font-style: italic;
}

/* Custom Hours Time Inputs in Modal */
.wrc-custom-time-inputs {
  margin-top: 10px;
  padding: 16px;
  border: 1px solid #dcdcde;
  border-radius: 6px;
  background: #f7f7f7;
  display: none;
}

.wrc-time-row {
  margin-bottom: 20px;
}

.wrc-time-row:last-child {
  margin-bottom: 0;
}

.wrc-time-row label {
  display: block;
  margin-bottom: 6px;
}

.wrc-custom-time-inputs .wrc-time-group {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 16px;
  border: 1px solid #dcdcde;
  border-radius: 4px;
  background: #fff;
  max-width: 100%;
  justify-content: center;
  box-sizing: border-box;
  position: relative;
  z-index: 5;
}

.wrc-custom-time-inputs .wrc-time-input {
  border: none;
  background: transparent;
  padding: 4px 6px;
  outline: none;
  width: 100px;
  text-align: center;
  flex-shrink: 0;
  margin: 0 8px;
  position: relative;
  z-index: 10;
}

.wrc-custom-time-inputs .wrc-time-separator {
  flex-shrink: 0;
}

/* Modal Form Fields */
#wrc-custom-hours-form .wrc-field,
#wrc-pickup-custom-hours-form .wrc-field {
  margin-bottom: 16px;
}

#wrc-custom-hours-form .wrc-field label,
#wrc-pickup-custom-hours-form .wrc-field label {
  display: block;
  margin-bottom: 4px;
}

#wrc-custom-hours-form .wrc-field input[type="date"],
#wrc-custom-hours-form .wrc-field input[type="text"],
#wrc-pickup-custom-hours-form .wrc-field input[type="date"],
#wrc-pickup-custom-hours-form .wrc-field input[type="text"] {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #dcdcde;
  border-radius: 4px;
}

#wrc-custom-hours-form .wrc-field input[type="checkbox"],
#wrc-pickup-custom-hours-form .wrc-field input[type="checkbox"] {
  margin-right: 8px;
}

/* Toggle Switch Styles */
.wrc-field--toggle {
  margin-bottom: 20px;
}

.wrc-toggle-container {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  width: 100%;
}


.wrc-toggle-switch {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.wrc-toggle-switch-control {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  margin-top: 4px;
  --foodord-toggle-travel: 21px;
  --foodord-toggle-knob: 19px;
  --foodord-toggle-radius: 4px;
}

.wrc-toggle-label {
  margin-bottom: 2px;
  text-align: center;
  padding-right: 1rem;
}

.wrc-toggle-switch-control input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
}

.wrc-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #dcdcde;
  transition: background-color 0.28s ease;
  border-radius: var(--foodord-toggle-radius, 4px);
}

.wrc-toggle-slider:before {
  position: absolute;
  content: "";
  height: var(--foodord-toggle-knob, 19px);
  width: var(--foodord-toggle-knob, 19px);
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: var(--foodord-toggle-radius, 4px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0) rotate(0deg);
  transform-origin: center center;
  transition: transform 0.28s cubic-bezier(0.33, 1, 0.68, 1);
}

.wrc-toggle-switch-control input:checked+.wrc-toggle-slider {
  background-color: #3858e9;
}

.wrc-toggle-switch-control input:checked+.wrc-toggle-slider:before {
  transform: translate3d(var(--foodord-toggle-travel, 21px), 0, 0) rotate(180deg);
}

.wrc-toggle-switch-control input:focus+.wrc-toggle-slider {
  outline: none;
  box-shadow: none;
}

/* Custom Hour Entries */
.wrc-custom-hour-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fff;
  margin-bottom: 8px;
  transition: border-color 0.2s ease;
}

.wrc-custom-hour-entry:hover {
  border-color: #c3c4c7;
}

.wrc-custom-hour-info {
  flex: 1;
}

.wrc-custom-hour-info strong {
  display: block;
  margin-bottom: 4px;
}

.wrc-custom-date {
  display: inline-block;
  background: #f0f0f1;
  padding: 2px 8px;
  border-radius: 3px;
  margin-right: 8px;
}

.wrc-custom-hour-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
}

.wrc-edit-custom-hour {
  background: transparent;
  border: 1px solid transparent;
  color: #3858e9;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.wrc-edit-custom-hour:hover,
.wrc-edit-custom-hour:focus {
  border-color: #3858e9;
  color: #2544d8;
  outline: none;
}

.wrc-remove-custom-hour {
  background: transparent;
  border: 1px solid transparent;
  color: #b32d2e;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 4px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.wrc-remove-custom-hour:hover,
.wrc-remove-custom-hour:focus {
  border-color: #b32d2e;
  color: #8a1f22;
  outline: none;
}

@media (max-width: 782px) {
  .wrc-custom-hours-container {
    margin-top: 16px;
  }

  .wrc-custom-hours-content {
    padding: 16px 12px;
  }

  .wrc-custom-hours-header {
    padding: 12px 12px;
  }

  .wrc-custom-time-inputs {
    padding: 12px;
  }

  .wrc-time-row {
    margin-bottom: 10px;
  }

  .wrc-custom-time-inputs .wrc-time-group {
    width: 100%;
    justify-content: center;
  }

  .wrc-custom-hour-entry {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .wrc-custom-hour-actions {
    align-self: flex-end;
    margin-left: 0;
  }
}

/* Accordion for Location Based entries */
.wrc-accordion-item {
  background: #fff;
  border: 1px solid #fff;
  border-radius: 8px;
}

.wrc-accordion-item+.wrc-accordion-item {
  margin-top: 12px;
}

.wrc-accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  text-align: left;
}

.wrc-accordion-chevron {
  margin-left: auto;
  transition: transform 0.2s ease;
}

.wrc-accordion-chevron::before {
  content: "\25BE";
  font-size: 18px;
}

.wrc-accordion-item:not(.is-open) .wrc-accordion-chevron {
  transform: rotate(-90deg);
}

.wrc-accordion-body {
  display: block;
  padding: 12px;
  border-top: 1px solid #e6e7e8;
  border-radius: 0 0 8px 8px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.wrc-accordion-item:not(.is-open) .wrc-accordion-body {
  display: none;
}

/* Ensure inner location row looks good inside accordion */
.wrc-accordion-body .wrc-location-row {
  border: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Time To Deliver Container Styles */
.wrc-time-to-deliver-container {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  margin-top: 20px;
}

.wrc-time-to-deliver-header {
  padding: 14px 16px;
  border-bottom: 1px solid #e7e7e7;
  background: #f8f9fa;
  border-radius: 8px 8px 0 0;
}

.wrc-time-to-deliver-header h2 {
  margin: 0;
}

.wrc-time-to-deliver-content {
  padding: 20px 16px;
}

.wrc-time-to-deliver-content .wrc-time-deliver-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.wrc-time-to-deliver-content .wrc-time-deliver-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fcfdff;
}

.wrc-time-to-deliver-content .wrc-time-deliver-cell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.wrc-time-to-deliver-content .wrc-time-deliver-cell + .wrc-time-deliver-cell {
  border-top: 1px solid #e2e8f0;
  padding-top: 12px;
}

.wrc-time-to-deliver-content .wrc-field-label {
  margin-bottom: 0;
  font-weight: 500;
  color: #1d2327;
}

.wrc-time-to-deliver-content .wrc-control {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wrc-time-to-deliver-content .wrc-help {
  margin: 0;
}

@media (max-width: 782px) {
  .wrc-time-to-deliver-content .wrc-time-deliver-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Time To Pickup Container Styles */
.wrc-time-to-pickup-container {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  margin-top: 20px;
}

.wrc-time-to-pickup-header {
  padding: 14px 16px;
  border-bottom: 1px solid #e7e7e7;
  background: #f8f9fa;
  border-radius: 8px 8px 0 0;
}

.wrc-time-to-pickup-header h2 {
  margin: 0;
}

.wrc-time-to-pickup-content {
  padding: 20px 16px;
}

.wrc-time-to-pickup-content .wrc-time-pickup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.wrc-time-to-pickup-content .wrc-time-pickup-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fcfdff;
}

.wrc-time-to-pickup-content .wrc-time-pickup-cell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.wrc-time-to-pickup-content .wrc-time-pickup-cell + .wrc-time-pickup-cell {
  border-top: 1px solid #e2e8f0;
  padding-top: 12px;
}

.wrc-time-to-pickup-content .wrc-field-label {
  margin-bottom: 0;
  font-weight: 500;
  color: #1d2327;
}

.wrc-time-to-pickup-content .wrc-control {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wrc-time-to-pickup-content .wrc-help {
  margin: 0;
}

@media (max-width: 782px) {
  .wrc-time-to-pickup-content .wrc-time-pickup-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Opening Hours Container Styles */
.wrc-opening-hours-container {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  margin-top: 20px;
}

.wrc-opening-hours-header {
  padding: 14px 0 0 14px;
  border-bottom: 1px solid #e7e7e7;
  background: #f8f9fa;
  border-radius: 8px 8px 0 0;
}

.wrc-opening-hours-header h2 {
  margin: 0;
}

.wrc-opening-hours-content {
  padding: 20px 16px;
}

/* Pre-order Container Styles */
.wrc-preorder-container {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  margin-top: 20px;
}

.wrc-preorder-header {
  padding: 14px 16px;
  border-bottom: 1px solid #e7e7e7;
  background: #f8f9fa;
  border-radius: 8px 8px 0 0;
}

.wrc-preorder-header h2 {
  margin: 0;
}

.wrc-preorder-container .description {
  margin: 10px 0 0;
}

.wrc-preorder-content {
  padding: 20px 16px;
}

.wrc-preorder-content .wrc-preorder-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.wrc-preorder-content .wrc-preorder-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fcfdff;
}

.wrc-preorder-content .wrc-preorder-cell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.wrc-preorder-content .wrc-preorder-cell + .wrc-preorder-cell {
  border-top: 1px solid #e2e8f0;
  padding-top: 12px;
}

.wrc-preorder-content .wrc-field-label {
  margin-bottom: 0;
  font-weight: 500;
  color: #1d2327;
}

.wrc-preorder-content .wrc-control {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wrc-preorder-content .wrc-control .wrc-input {
  max-width: 240px;
}

.wrc-preorder-content .wrc-help {
  margin: 0;
}

@media (max-width: 782px) {
  .wrc-preorder-content .wrc-preorder-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Back to Top Container Styles */
.wrc-back-to-top-container {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  margin-top: 20px;
}

.wrc-back-to-top-header {
  padding: 14px 0 0 14px;
  border-bottom: 1px solid #e7e7e7;
  background: #f8f9fa;
  border-radius: 8px 8px 0 0;
}

.wrc-back-to-top-header h2 {
  margin: 0;
}

.wrc-card-sub {
  margin-top: 10px;
}

.wrc-back-to-top-content {
  padding: 0;
  background: var(--wr-surface-muted);
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-top: 1px solid var(--wr-border-soft);
  border-radius: 0;
}

.wrc-back-to-top-content>.wr-pages-bg-wrapper {
  background: var(--wr-container);
  border: 1px solid var(--wr-border-soft);
  border-radius: 0;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.wrc-back-to-top-content>.wr-pages-bg-wrapper.wr-pages-bg-wrapper-three-col {
  grid-template-columns: repeat(3, 1fr);
}

.wrc-back-to-top-content .wr-pages-bg-color-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wrc-back-to-top-content .wr-pages-bg-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5a6072;
}

@media (max-width: 1200px) {
  .wrc-back-to-top-content .wr-pages-bg-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 782px) {
  .wrc-back-to-top-container {
    max-width: 100%;
    box-sizing: border-box;
  }

  .wrc-back-to-top-header {
    padding: 14px;
  }

  .wrc-back-to-top-content .wr-pages-bg-wrapper {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 14px;
  }
}

/* Product Images Container Styles */
.wrc-product-images-container {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  margin-top: 20px;
}

.wrc-product-images-header {
  padding: 14px 16px;
  border-bottom: 1px solid #e7e7e7;
  background: #f8f9fa;
  border-radius: 8px 8px 0 0;
}

.wrc-product-images-header h2 {
  margin: 0;
}

.wrc-product-images-header .wrc-card-sub {
  margin: 10px 0 0;
}

.wrc-product-images-content {
  padding: 20px 16px;
}

.wrc-product-images-content .wrc-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.wrc-product-images-content .wrc-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fcfdff;
}

.wrc-product-images-content .wrc-label,
.wrc-product-images-content .wrc-field-label {
  margin-bottom: 0;
  align-self: flex-start;
  font-weight: 500;
  color: #1d2327;
}

.wrc-product-images-content .wrc-control {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wrc-product-images-content .wrc-help {
  margin: 0;
}

/* Allergy Info Container Styles */
.wrc-allergy-info-container {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  margin-top: 20px;
}

.wrc-allergy-info-header {
  padding: 14px 16px;
  border-bottom: 1px solid #e7e7e7;
  background: #f8f9fa;
  border-radius: 8px 8px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.wrc-allergy-info-header h2 {
  margin: 0;
}

.wrc-section-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wrc-allergy-info-header .wrc-card-sub {
  margin: 0;
}

.wrc-allergy-info-header .wrc-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wrc-allergy-info-content {
  padding: 20px 16px;
}

.wrc-form--single {
  display: block;
}

.wrc-form--single .wrc-field {
  display: block;
}

.wrc-form--single .wrc-control {
  width: 100%;
}

/* Cart Topping Labels Container Styles */
.wrc-topping-labels-container {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  margin-top: 20px;
}

.wrc-topping-labels-header {
  padding: 14px 16px;
  border-bottom: 1px solid #e7e7e7;
  background: #f8f9fa;
  border-radius: 8px 8px 0 0;
}

.wrc-topping-labels-header h2 {
  margin: 0;
}

.wrc-topping-labels-header .wrc-card-sub {
  margin: 10px 0 0;
}

.wrc-topping-labels-content {
  padding: 20px 16px;
}

.wrc-topping-labels-content .wrc-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.wrc-topping-labels-content .wrc-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fcfdff;
}

.wrc-topping-labels-content .wrc-label,
.wrc-topping-labels-content .wrc-field-label {
  margin-bottom: 0;
  align-self: flex-start;
  font-weight: 500;
  color: #1d2327;
}

.wrc-topping-labels-content .wrc-control {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wrc-topping-labels-content .wrc-help {
  margin: 0;
}

/* Scroll Navigation Container Styles */
.wrc-scroll-navigation-container {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  margin-top: 20px;
}

.wrc-scroll-navigation-header {
  padding: 14px 16px;
  border-bottom: 1px solid #e7e7e7;
  background: #f8f9fa;
  border-radius: 8px 8px 0 0;
}

.wrc-scroll-navigation-header h2 {
  margin: 0;
}

.wrc-scroll-navigation-header .wrc-card-sub {
  margin: 10px 0 0;
}

.wrc-scroll-navigation-content {
  padding: 20px 16px;
}

.wrc-scroll-navigation-content .wrc-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.wrc-scroll-navigation-content .wrc-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fcfdff;
}

.wrc-scroll-navigation-content .wrc-label,
.wrc-scroll-navigation-content .wrc-field-label {
  margin-bottom: 0;
  align-self: flex-start;
  font-weight: 500;
  color: #1d2327;
}

.wrc-scroll-navigation-content .wrc-control {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wrc-scroll-navigation-content .wrc-help {
  margin: 0;
}

/* Ajax Add to Cart Container Styles */
.wrc-ajax-add-to-cart-container {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  margin-top: 20px;
}

.wrc-ajax-add-to-cart-header {
  padding: 14px 0 0 14px;
  border-bottom: 1px solid #e7e7e7;
  background: #f8f9fa;
  border-radius: 8px 8px 0 0;
}

.wrc-ajax-add-to-cart-header h2 {
  margin: 0;
}

.wrc-ajax-add-to-cart-content {
  padding: 20px 16px;
}

/* Checkout Country/Region Container Styles */
.wrc-checkout-country-container {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  margin-top: 20px;
}

.wrc-checkout-country-header {
  padding: 14px 16px;
  border-bottom: 1px solid #e7e7e7;
  background: #f8f9fa;
  border-radius: 8px 8px 0 0;
}

.wrc-checkout-country-header h2 {
  margin: 0;
}

.wrc-checkout-country-header .wrc-card-sub {
  margin: 10px 0 0;
}

.wrc-checkout-country-content {
  padding: 20px 16px;
}

.wrc-checkout-country-content .wrc-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.wrc-checkout-country-content .wrc-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fcfdff;
}

.wrc-checkout-country-content .wrc-label,
.wrc-checkout-country-content .wrc-field-label {
  margin-bottom: 0;
  align-self: flex-start;
  font-weight: 500;
  color: #1d2327;
}

.wrc-checkout-country-content .wrc-control {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wrc-checkout-country-content .wrc-help {
  margin: 0;
}

/* Pickup Hours Container Styles */
.wrc-pickup-hours-container {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  margin-top: 20px;
}

.wrc-pickup-hours-header {
  padding: 14px 0 0 14px;
  border-bottom: 1px solid #e7e7e7;
  background: #f8f9fa;
  border-radius: 8px 8px 0 0;
}

.wrc-pickup-hours-header h2 {
  margin: 0;
}

.wrc-pickup-hours-content {
  padding: 20px 16px;
}

/* Pickup Pre-order Container Styles */
.wrc-pickup-preorder-container {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  margin-top: 20px;
}

.wrc-pickup-preorder-header {
  padding: 14px 16px;
  border-bottom: 1px solid #e7e7e7;
  background: #f8f9fa;
  border-radius: 8px 8px 0 0;
}

.wrc-pickup-preorder-header h2 {
  margin: 0;
}

.wrc-pickup-preorder-content {
  padding: 20px 16px;
}

.wrc-pickup-preorder-content .wrc-pickup-preorder-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.wrc-pickup-preorder-content .wrc-pickup-preorder-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fcfdff;
}

.wrc-pickup-preorder-content .wrc-pickup-preorder-cell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.wrc-pickup-preorder-content .wrc-pickup-preorder-cell + .wrc-pickup-preorder-cell {
  border-top: 1px solid #e2e8f0;
  padding-top: 12px;
}

.wrc-pickup-preorder-content .wrc-field-label {
  margin-bottom: 0;
  font-weight: 500;
  color: #1d2327;
}

.wrc-pickup-preorder-content .wrc-control {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wrc-pickup-preorder-content .wrc-control .wrc-input {
  max-width: 240px;
}

.wrc-pickup-preorder-content .wrc-help {
  margin: 0;
}

@media (max-width: 782px) {
  .wrc-pickup-preorder-content .wrc-pickup-preorder-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Topping Groups Container Styles */
.wrc-topping-groups-container {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  margin-top: 20px;
}

.wrc-topping-groups-header {
  padding: 14px 0 0 14px;
  border-bottom: 1px solid #e7e7e7;
  background: #f8f9fa;
  border-radius: 8px 8px 0 0;
}

.wrc-topping-groups-header h3 {
  margin: 0;
}

.wrc-topping-groups-content {
  padding: 20px 16px;
}

/* Topping Items Container Styles */
.wrc-topping-items-container {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  margin-top: 20px;
}

.wrc-topping-items-header {
  padding: 14px 0 0 14px;
  border-bottom: 1px solid #e7e7e7;
  background: #f8f9fa;
  border-radius: 8px 8px 0 0;
}

.wrc-topping-items-header h3 {
  margin: 0;
}

.wrc-topping-items-content {
  padding: 20px 16px;
}

/* Toppings List Container Styles */
.wrc-toppings-list-container {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  margin-top: 20px;
}

.wrc-toppings-list-header {
  padding: 14px 16px;
  border-bottom: 1px solid #e7e7e7;
  background: #f8f9fa;
  border-radius: 8px 8px 0 0;
}

.wrc-toppings-list-header h4 {
  margin: 0;
}

.wrc-toppings-list-content {
  padding: 20px 16px;
}

/* Average Delivery Time Container Styles */
.wrc-average-delivery-time-container {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  margin-top: 20px;
}

.wrc-average-delivery-time-header {
  padding: 14px 16px;
  border-bottom: 1px solid #e7e7e7;
  background: #f8f9fa;
  border-radius: 8px 8px 0 0;
}

.wrc-average-delivery-time-header h2 {
  margin: 0;
}

.wrc-average-delivery-time-container .description {
  margin: 10px 0 0;
}

.wrc-average-delivery-time-content {
  padding: 20px 16px;
}

.wrc-average-delivery-time-content .wrc-average-delivery-time-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.wrc-average-delivery-time-content .wrc-average-delivery-time-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fcfdff;
}

.wrc-average-delivery-time-content .wrc-average-delivery-time-cell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.wrc-average-delivery-time-content .wrc-field-label {
  margin-bottom: 0;
  font-weight: 500;
  color: #1d2327;
}

.wrc-average-delivery-time-content .wrc-control {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wrc-average-delivery-time-content .wrc-control .wrc-input {
  max-width: 240px;
}

.wrc-average-delivery-time-content .wrc-help {
  margin: 0;
}

@media (max-width: 782px) {
  .wrc-average-delivery-time-content .wrc-average-delivery-time-grid {
    grid-template-columns: 1fr;
  }
}

/* Average Pickup Time Container Styles */
.wrc-average-pickup-time-container {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  margin-top: 20px;
}

.wrc-average-pickup-time-header {
  padding: 14px 16px;
  border-bottom: 1px solid #e7e7e7;
  background: #f8f9fa;
  border-radius: 8px 8px 0 0;
}

.wrc-average-pickup-time-header h2 {
  margin: 0;
}

.wrc-average-pickup-time-container .wrc-card-sub {
  margin: 10px 0 0;
}

.wrc-average-pickup-time-content {
  padding: 20px 16px;
}

.wrc-average-pickup-time-content .wrc-average-pickup-time-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.wrc-average-pickup-time-content .wrc-average-pickup-time-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fcfdff;
}

.wrc-average-pickup-time-content .wrc-average-pickup-time-cell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.wrc-average-pickup-time-content .wrc-field-label {
  margin-bottom: 0;
  font-weight: 500;
  color: #1d2327;
}

.wrc-average-pickup-time-content .wrc-control {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wrc-average-pickup-time-content .wrc-control .wrc-input {
  max-width: 240px;
}

.wrc-average-pickup-time-content .wrc-help {
  margin: 0;
}

@media (max-width: 782px) {
  .wrc-average-pickup-time-content .wrc-average-pickup-time-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   RTL Mode Container Styles
   =================================== */
.wrc-rtl-container,
.wrc-upsell-container,
.wrc-theme-mode-container,
.wrc-store-mode-container {
  margin-top: 20px;
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.wrc-rtl-header,
.wrc-upsell-header,
.wrc-theme-mode-header,
.wrc-store-mode-header {
  padding: 14px 0 0 14px;
  border-bottom: 1px solid #e7e7e7;
  background: #f8f9fa;
  border-radius: 8px 8px 0 0;
}

.wrc-rtl-header h2,
.wrc-upsell-header h2,
.wrc-theme-mode-header h2,
.wrc-store-mode-header h2 {
  margin: 0;
}

.wrc-rtl-header .wrc-card-sub,
.wrc-upsell-header .wrc-card-sub,
.wrc-theme-mode-header .wrc-card-sub,
.wrc-store-mode-header .wrc-card-sub {
  margin-top: 10px;
  margin-bottom: 15px;
}

.wrc-rtl-content,
.wrc-upsell-content,
.wrc-theme-mode-content,
.wrc-store-mode-content {
  padding: 20px;
}

.wrc-rtl-content .wrc-form,
.wrc-upsell-content .wrc-form,
.wrc-theme-mode-content .wrc-form,
.wrc-store-mode-content .wrc-form {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: 14px 18px;
}

.wrc-rtl-content .wrc-field,
.wrc-upsell-content .wrc-field,
.wrc-theme-mode-content .wrc-field,
.wrc-store-mode-content .wrc-field {
  display: contents;
}

.wrc-rtl-content .wrc-label,
.wrc-upsell-content .wrc-label,
.wrc-theme-mode-content .wrc-label,
.wrc-store-mode-content .wrc-label {
  align-self: center;
  font-weight: 500;
  color: #1d2327;
}

.wrc-rtl-content .wrc-control,
.wrc-upsell-content .wrc-control,
.wrc-theme-mode-content .wrc-control,
.wrc-store-mode-content .wrc-control {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wrc-rtl-content .wrc-help,
.wrc-upsell-content .wrc-help,
.wrc-theme-mode-content .wrc-help,
.wrc-store-mode-content .wrc-help {
  margin: 0;
  color: #646970;
  font-size: 13px;
}

.wrc-store-mode-content .wrc-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wrc-store-mode-content .wrc-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fcfdff;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.wrc-store-mode-content .wrc-label {
  align-self: flex-start;
}

.wrc-store-mode-content .wrc-field:has(.foodord-toggle-switch input[type="checkbox"]:checked) {
  background: #ecfdf5;
  border-color: #86efac;
}

.wrc-store-mode-content .wrc-field:has(.foodord-toggle-switch input[type="checkbox"]:checked) .wrc-label {
  color: #166534;
}

.wrc-store-mode-content .wrc-field:has(.foodord-toggle-switch input[type="checkbox"]:checked) .wrc-help {
  color: #15803d;
}

.wrc-store-mode-content .wrc-field:has(.foodord-toggle-switch input[type="checkbox"]:not(:checked)) {
  background: #fff3f4;
  border-color: #f5c2c7;
}

.wrc-store-mode-content .wrc-field:has(.foodord-toggle-switch input[type="checkbox"]:not(:checked)) .wrc-help {
  color: #9f1239;
}

/* Upsell Recommendations section aligned with grouped Tweaks layout */
.wrc-upsell-header {
  padding: 14px 16px;
}

.wrc-upsell-header .wrc-card-sub {
  margin: 10px 0 0;
}

.wrc-upsell-content {
  padding: 20px 16px;
}

.wrc-upsell-content .wrc-form {
  grid-template-columns: 1fr;
  gap: 14px;
}

.wrc-upsell-content .wrc-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fcfdff;
}

.wrc-upsell-content .wrc-label {
  margin-bottom: 0;
  align-self: flex-start;
}

.wrc-upsell-content .wrc-control {
  gap: 6px;
}

@media (max-width: 782px) {
  .wrc-rtl-content .wrc-form,
  .wrc-upsell-content .wrc-form,
  .wrc-theme-mode-content .wrc-form,
  .wrc-store-mode-content .wrc-form {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   WordPress Color Picker Styling for Back to Top
   =================================== */
.wrc-back-to-top-content .wp-picker-container {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.wrc-back-to-top-content .wp-picker-container .wp-color-result {
  position: relative;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid #d2d8e3;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
  background-color: transparent;
  cursor: pointer;
  box-sizing: border-box;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wrc-back-to-top-content .wp-picker-container .wp-color-result .color-alpha,
.wrc-back-to-top-content .wp-picker-container .wp-color-result .color-result {
  border-radius: inherit;
}

.wrc-back-to-top-content .wp-picker-container .wp-color-result:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
}

.wrc-back-to-top-content .wp-picker-container .wp-color-result-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrc-back-to-top-content .wp-picker-container .wp-picker-input-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: transparent;
}

.wrc-back-to-top-content .wp-picker-container .wp-picker-input-wrap input[type="text"] {
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #d2d8e3;
  box-shadow: none;
  background: #ffffff;
  min-width: 96px;
  box-sizing: border-box;
  font-size: 13px;
}

.wrc-back-to-top-content .wp-picker-container .wp-picker-input-wrap input[type="text"]:focus {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
  outline: 2px solid transparent;
}

.wrc-back-to-top-content .wp-picker-container .wp-picker-input-wrap .button {
  border-radius: 8px;
  border: 1px solid rgba(34, 113, 177, 0.18);
  background: rgba(34, 113, 177, 0.06);
  color: #134b88;
  padding: 0 12px;
  height: 32px;
  font-weight: 500;
  transition: background 0.2s ease, border-color 0.2s ease;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  line-height: 1;
  font-size: 13px;
  text-shadow: none;
  box-shadow: none;
}

.wrc-back-to-top-content .wp-picker-container .wp-picker-input-wrap .button:hover {
  background: rgba(34, 113, 177, 0.12);
  border-color: rgba(34, 113, 177, 0.26);
  color: #134b88;
}

.wrc-back-to-top-content .wp-picker-container .wp-picker-input-wrap .button:focus {
  background: rgba(34, 113, 177, 0.12);
  border-color: rgba(34, 113, 177, 0.26);
  outline: 2px solid transparent;
  box-shadow: 0 0 0 1px rgba(34, 113, 177, 0.2);
}

.wrc-back-to-top-content .wp-picker-holder {
  margin-top: 8px;
  border: 1px solid #e4e7ef;
  border-radius: 10px;
  box-shadow: none;
  overflow: hidden;
}

.wrc-back-to-top-content .iris-picker {
  border: none;
}

@media (max-width: 640px) {
  .wrc-back-to-top-content .wp-picker-container {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }

  .wrc-back-to-top-content .wp-picker-container .wp-picker-input-wrap {
    width: 100%;
    flex-wrap: wrap;
  }

  .wrc-back-to-top-content .wp-picker-container .wp-picker-input-wrap input[type="text"] {
    flex: 1 1 120px;
    min-width: 0;
  }
}

/* ===================================
   License Page Styles
   =================================== */
.wrc-license-container {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  margin-top: 20px;
}

.wrc-license-header {
  padding: 14px 0 0 14px;
  border-bottom: 1px solid #e7e7e7;
  background: #f8f9fa;
  border-radius: 8px 8px 0 0;
}

.wrc-license-header h2 {
  margin: 0;
}

.wrc-license-header .wrc-card-sub {
  margin-top: 10px;
  margin-bottom: 15px;
}

.wrc-license-content {
  padding: 20px;
}

.wrc-license-content .wrc-form {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: 14px 18px;
}

.wrc-license-content .wrc-field {
  display: contents;
}

.wrc-license-content .wrc-label {
  align-self: center;
  font-weight: 500;
  color: #1d2327;
}

.wrc-license-content .wrc-control {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wrc-license-content .wrc-input {
  max-width: 450px;
}

.wrc-license-key-input {
  letter-spacing: 2px;
  font-family: monospace;
  font-size: 14px;
  min-width: 350px;
}

.wrc-license-content .wrc-help {
  margin: 0;
  color: #646970;
  font-size: 13px;
}

/* License Status Indicators */
.wrc-license-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 13px;
}

.wrc-license-status .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

/* Information List */
@media (max-width: 782px) {
  .wrc-license-content .wrc-form {
    grid-template-columns: 1fr;
  }

  .wrc-license-content .wrc-input {
    max-width: 100%;
  }
}

/* =========================================
   FoodOrd Styling Page Redesign
   ========================================= */

.foodord-header-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.wrc-admin-title {
  font-size: 24px;
  font-weight: 700;
  color: #1e1e1e;
  margin: 0;
}

/* Section Headers */
.foodord-section-header {
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 10px;
}

.foodord-section-header .wrc-section-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 5px;
  color: #2c3338;
}

.foodord-section-header .wrc-admin-description {
  font-size: 14px;
  color: #646970;
  margin: 0;
}

/* Grid Layout */
.foodord-styling-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

/* Style Card */
.foodord-style-card {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.foodord-style-card:hover {
  border-color: #2271b1;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.foodord-style-card__header {
  background: #f8f9fa;
  padding: 12px 16px;
  border-bottom: 1px solid #eaeaea;
}

.foodord-style-card__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #1d2327;
}

.foodord-style-card__selector {
  display: block;
  font-size: 11px;
  color: #a0a0a0;
  font-family: monospace;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.foodord-style-card__body {
  padding: 16px;
}

/* Control Groups */
.foodord-controls-group {
  margin-bottom: 16px;
}

.foodord-controls-group:last-child {
  margin-bottom: 0;
}

.foodord-group-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #646970;
  margin-bottom: 8px;
  font-weight: 600;
}

/* Flex Row for Colors */
.foodord-controls-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  align-items: start;
}

.foodord-controls-row .foodord-control-item {
  min-width: 0;
}

/* Grid for Typography */
.foodord-controls-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Individual Control Items */
.foodord-control-item {
  display: flex;
  flex-direction: column;
}

.foodord-control-item label {
  font-size: 12px;
  color: #50575e;
  margin-bottom: 4px;
}

.foodord-control-item input[type="number"],
.foodord-control-item select {
  width: 100%;
  max-width: 100%;
  height: 30px;
  font-size: 13px;
  border-color: #dcdcde;
  border-radius: 4px;
}

/* Color Picker Overrides */
.foodord-styling-page .foodord-control-color .foodord-color-picker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 100%;
}

.foodord-styling-page .foodord-control-color .wp-picker-container {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin: 0;
}

.foodord-styling-page .foodord-control-color .wp-picker-input-wrap {
  display: none;
}

.foodord-styling-page .foodord-control-color .wp-color-result {
  position: relative;
  margin: 0;
  width: 44px;
  min-width: 44px;
  height: 30px;
  padding: 0;
  box-sizing: border-box;
  border-radius: 4px;
  box-shadow: none;
  border: 1px solid #dcdcde;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.foodord-styling-page .foodord-control-color .wp-color-result .wp-color-result-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.foodord-styling-page .foodord-control-color .wp-color-result:focus {
  outline: none;
  border-color: #2271b1;
  box-shadow: 0 0 0 1px rgba(34, 113, 177, 0.25);
}

.foodord-styling-page .foodord-control-color .foodord-color-code-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 30px;
  margin: 0;
  padding: 0 10px;
  border-radius: 4px;
  border: 1px solid #dcdcde;
  box-shadow: none;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: #1d2327;
}

.foodord-styling-page .foodord-control-color .foodord-color-code-input:focus {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px rgba(34, 113, 177, 0.25);
  outline: 2px solid transparent;
}

@media (max-width: 782px) {
  .foodord-controls-grid {
    grid-template-columns: 1fr;
  }
}



/* Save Bar */
.wrc-settings-actions-bar {
  margin-top: 40px;
  display: flex;
  justify-content: flex-start;
}

/* FoodOrd Pro teaser badge in WP admin menu */
.foodord-admin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.6;
}

.foodord-admin-badge--pro {
  background-color: #6b6b6b;
  color: #ffffff;
}

.foodord-admin-dashboard-compat-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid #eadfca;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff8ec 0%, #ffffff 58%, #f4f8ff 100%);
  box-sizing: border-box;
}

.foodord-admin-dashboard-compat-banner__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #1d2327;
  color: #ffffff;
  font-size: 19px;
  line-height: 1;
  flex: 0 0 auto;
}

.foodord-admin-dashboard-compat-banner__content {
  min-width: 0;
  flex: 1 1 auto;
}

.foodord-admin-dashboard-compat-banner__title {
  margin: 0 0 4px;
  color: #1d2327;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.foodord-admin-dashboard-compat-banner__text {
  max-width: 980px;
  margin: 0;
  color: #4c5664;
  font-size: 13px;
  line-height: 1.55;
}

.foodord-admin-dashboard-compat-banner__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid #d8dce6;
  border-radius: 6px;
  background: #ffffff;
  color: #1d2327;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  flex: 0 0 auto;
}

.foodord-admin-dashboard-compat-banner__button:hover,
.foodord-admin-dashboard-compat-banner__button:focus {
  border-color: #c8cedb;
  background: #f7f8fb;
  color: #11161c;
  outline: none;
  box-shadow: none;
}

.foodord-admin-dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: calc(100% + 40px);
  margin: 0 -20px 16px;
  padding: 24px 28px;
  border: 1px solid #e6e8ee;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  background: #ffffff;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

.foodord-admin-dashboard-hero__brand {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  flex: 1 1 auto;
}

.foodord-admin-dashboard-hero__logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: 20px;
  flex: 0 0 auto;
}

.foodord-admin-dashboard-hero__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  margin-right: 96px;
}

.foodord-admin-dashboard-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  box-sizing: border-box;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.foodord-admin-dashboard-hero__button--with-icon {
  gap: 8px;
}

.foodord-admin-dashboard-hero__button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.foodord-admin-dashboard-hero__button-icon svg {
  display: block;
  width: 16px;
  height: 16px;
}

.foodord-admin-dashboard-external {
  gap: 8px;
}

.foodord-admin-dashboard-external__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.foodord-admin-dashboard-external__icon svg {
  display: block;
  width: 14px;
  height: 14px;
}

.foodord-admin-dashboard-hero__button:focus {
  outline: none;
  box-shadow: none;
}

.foodord-admin-dashboard-hero__button--ghost {
  border-color: #d8dce6;
  background: #ffffff;
  color: #1d2327;
}

.foodord-admin-dashboard-hero__button--ghost:hover {
  border-color: #c8cedb;
  background: #f7f8fb;
  color: #11161c;
}

.foodord-admin-dashboard-hero__button--primary {
  border-color: #ea005f;
  background: #ea005f;
  color: #ffffff;
}

.foodord-admin-dashboard-hero__button--primary:visited,
.foodord-admin-dashboard-hero__button--primary:focus,
.foodord-admin-dashboard-hero__button--primary:active {
  border-color: #ea005f;
  background: #ea005f;
  color: #ffffff;
}

@media (hover: hover) and (pointer: fine) {
  .foodord-admin-dashboard-hero__button--primary:hover:not(:focus):not(:focus-visible):not(:active) {
    border-color: #cf0053;
    background: #cf0053;
    color: #ffffff;
  }
}

.foodord-admin-dashboard-hero__button--primary:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 2px;
}

@media (max-width: 960px) {
  .foodord-admin-dashboard-compat-banner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .foodord-admin-dashboard-compat-banner__button {
    margin-left: 54px;
  }

  .foodord-admin-dashboard-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .foodord-admin-dashboard-hero__actions {
    margin-right: 0;
    width: 100%;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .foodord-admin-dashboard-compat-banner {
    padding: 16px 20px;
  }

  .foodord-admin-dashboard-compat-banner__button {
    width: 100%;
    margin-left: 0;
  }

  .foodord-admin-dashboard-hero {
    width: calc(100% + 20px);
    margin: 0 -10px 16px;
    padding: 20px;
  }

  .foodord-admin-dashboard-hero__brand {
    width: 100%;
  }

  .foodord-admin-dashboard-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .foodord-admin-dashboard-hero__button {
    width: 100%;
  }
}

body.foodord-admin-dashboard-screen #screen-meta-links {
  position: absolute;
  top: 0;
  right: 20px;
  z-index: 30;
  float: none;
  margin: 0;
}

body.foodord-admin-dashboard-screen #screen-meta {
  position: relative;
  z-index: 29;
  margin: 0;
}

body.foodord-admin-dashboard-screen .screen-meta-toggle {
  position: relative;
  z-index: 30;
}

body.foodord-admin-dashboard-screen #wpbody-content {
  position: relative;
  padding-top: 0;
}

body.foodord-admin-dashboard-screen #wpbody-content > .wrap {
  margin-top: 0;
}

.foodord-admin-dashboard-section {
  margin-top: 20px;
  padding: 24px;
  border: 1px solid #e6e8ee;
  border-radius: 12px;
  background: #ffffff;
}

.foodord-admin-dashboard-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.foodord-admin-dashboard-section__intro {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.foodord-admin-dashboard-section__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border: 1px solid #e7eaf1;
  border-radius: 16px;
  background: #f8f9fc;
  color: #4c63ff;
  font-size: 22px;
  line-height: 1;
}

.foodord-admin-dashboard-section__copy {
  min-width: 0;
}

.foodord-admin-dashboard-section__title {
  margin: 0;
  color: #11161c;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
}

.foodord-admin-dashboard-section__description {
  margin: 4px 0 0;
  color: #697181;
  font-size: 14px;
  line-height: 1.6;
}

.foodord-admin-dashboard-section__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid #d9ddf1;
  border-radius: 6px;
  box-sizing: border-box;
  background: #ffffff;
  color: #273041;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.foodord-admin-dashboard-section__action:hover {
  border-color: #c7cee7;
  background: #f8f9fc;
  color: #161c28;
}

.foodord-admin-dashboard-videos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.foodord-admin-dashboard-overview {
  position: relative;
  display: block;
  margin-top: 18px;
  padding-right: 298px;
}

.foodord-admin-dashboard-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.foodord-admin-dashboard-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 28px;
  border: 1px solid #e6e8ee;
  border-radius: 12px;
  background: #ffffff;
}

.foodord-admin-dashboard-panel__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border: 1px solid #e7eaf1;
  border-radius: 18px;
  background: #f8f9fc;
  color: #4c63ff;
  font-size: 22px;
}

.foodord-admin-dashboard-panel__title {
  margin: 0;
  color: #11161c;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.18;
}

.foodord-admin-dashboard-panel__text {
  margin: 4px 0 0;
  color: #697181;
  font-size: 14px;
  line-height: 1.4;
}

.foodord-admin-dashboard-panel__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 48px;
  margin-top: 24px;
  padding: 0 22px;
  border: 1px solid #d9ddf1;
  border-radius: 6px;
  box-sizing: border-box;
  background: #ffffff;
  color: #273041;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  word-break: break-word;
}

.foodord-admin-dashboard-promo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-sizing: border-box;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  color: #ffffff;
  width: 280px;
  max-width: 280px;
}

.foodord-admin-dashboard-promo::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 100%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.foodord-admin-dashboard-promo > * {
  position: relative;
  z-index: 1;
}

.foodord-admin-dashboard-promo__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 12px;
  border-radius: 6px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  background: transparent;
  z-index: 0;
}

.foodord-admin-dashboard-promo__badge::before {
  content: "";
  position: absolute;
  z-index: -2;
  left: -50%;
  top: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    transparent,
    rgba(255, 255, 255, 1),
    transparent 20%
  );
  animation: foodord-border-rotate 2s linear infinite;
}

.foodord-admin-dashboard-promo__badge::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 1px;
  background: linear-gradient(90deg, #ea004b 0%, #ff4d85 100%);
  border-radius: 5px;
}

@keyframes foodord-border-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.foodord-admin-dashboard-promo__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-top: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 28px;
  transition: transform 0.3s ease;
}

.foodord-admin-dashboard-promo:hover .foodord-admin-dashboard-promo__icon {
  transform: translateY(-5px) rotate(5deg);
}

.foodord-admin-dashboard-promo__title {
  margin: 20px 0 0;
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.2;
}

.foodord-admin-dashboard-promo__title-accent {
  display: inline-block;
  background: linear-gradient(92deg, #f9a8d4 0%, #f472b6 35%, #c4b5fd 68%, #93c5fd 100%);
  background-clip: text;
  color: transparent;
}

.foodord-admin-dashboard-promo__text {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  line-height: 1.4;
}

.foodord-admin-dashboard-promo__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 28px;
  padding: 0 24px;
  border-radius: 6px;
  box-sizing: border-box;
  background: #ffffff;
  color: #0f172a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.foodord-admin-dashboard-promo__button:hover {
  background: #ea004b;
  color: #ffffff;
  transform: scale(1.02);
}

.foodord-admin-dashboard-promo__list {
  display: grid;
  gap: 4px;
  margin: 28px 0 28px;
  padding: 0;
  list-style: none;
}

.foodord-admin-dashboard-promo__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  line-height: 1.4;
}

.foodord-admin-dashboard-promo__check {
  margin-top: 1px;
  color: #10b981;
  font-size: 18px;
}

.foodord-admin-dashboard-promo__art-wrap {
  width: min(100%, 220px);
  margin: auto auto 0;
  padding-top: 0;
}

.foodord-admin-dashboard-promo__art {
  display: block;
  width: 100%;
  height: auto;
}

.foodord-admin-dashboard-panel__button:hover {
  border-color: #c7cee7;
  background: #f8f9fc;
  color: #161c28;
}

.foodord-admin-dashboard-video-card {
  overflow: hidden;
  border: 1px solid #e7eaf1;
  border-radius: 18px;
  background: #ffffff;
}

.foodord-admin-dashboard-video-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #f3f5fa;
}

.foodord-admin-dashboard-video-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.foodord-admin-dashboard-video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(18, 24, 39, 0.78);
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.foodord-admin-dashboard-video-card__play:hover {
  background: rgba(18, 24, 39, 0.88);
}

.foodord-admin-dashboard-video-card__play-icon {
  display: block;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid #ffffff;
}

.foodord-admin-dashboard-video-card__body {
  padding: 18px 18px 20px;
}

.foodord-admin-dashboard-video-card__title {
  margin: 0;
  color: #11161c;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.foodord-admin-dashboard-video-card__text {
  margin: 10px 0 0;
  color: #697181;
  font-size: 14px;
  line-height: 1.65;
}

.foodord-admin-dashboard-section--videos {
  margin-top: 0;
  margin-bottom: 18px;
}

.foodord-admin-dashboard-section--review {
  margin-top: 0;
}

.foodord-admin-dashboard-section--review .foodord-admin-dashboard-section__head {
  margin-bottom: 0;
}

.foodord-admin-dashboard-section--review .foodord-admin-dashboard-section__icon {
  background: #f8f9fc;
  color: #4c63ff;
}

.foodord-admin-video-modal[hidden] {
  display: none;
}

.foodord-admin-video-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
}

.foodord-admin-video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 19, 27, 0.72);
}

.foodord-admin-video-modal__dialog {
  position: relative;
  width: min(960px, calc(100vw - 40px));
  margin: 48px auto;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
}

.foodord-admin-video-modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #e7eaf1;
}

.foodord-admin-video-modal__title {
  margin: 0;
  color: #11161c;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.foodord-admin-video-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #d9ddf1;
  border-radius: 12px;
  background: #ffffff;
  color: #273041;
  cursor: pointer;
}

.foodord-admin-video-modal__frame-wrap {
  aspect-ratio: 16 / 9;
  background: #000000;
}

.foodord-admin-video-modal__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

body.foodord-admin-video-modal-open {
  overflow: hidden;
}

@media (max-width: 1080px) {
  .foodord-admin-dashboard-videos {
    grid-template-columns: 1fr;
  }

  .foodord-admin-dashboard-overview {
    display: grid;
    grid-template-columns: 1fr;
    padding-right: 0;
  }

  .foodord-admin-dashboard-panels {
    grid-template-columns: 1fr;
    margin-bottom: 0;
  }

  .foodord-admin-dashboard-promo,
  .foodord-admin-dashboard-section--videos,
  .foodord-admin-dashboard-section--review,
  .foodord-admin-dashboard-panels {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    grid-column: auto;
    grid-row: auto;
    max-width: 100%;
    margin-top: 20px;
  }

  .foodord-admin-dashboard-promo,
  .foodord-admin-dashboard-panels {
    width: 100%;
  }

  .foodord-admin-dashboard-section--videos {
    margin-bottom: 0;
  }
}

@media (max-width: 782px) {
  .foodord-admin-dashboard-hero__actions {
    width: 100%;
    margin-right: 0;
    flex-wrap: wrap;
    gap: 10px;
  }

  .foodord-admin-dashboard-hero__button {
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
    padding: 0 14px;
    font-size: 13px;
  }

  .foodord-admin-dashboard-section {
    padding: 18px;
    border-radius: 18px;
  }

  .foodord-admin-dashboard-section__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .foodord-admin-dashboard-section__title {
    font-size: 18px;
  }

  .foodord-admin-dashboard-section__action {
    width: 100%;
    padding: 0 16px;
    font-size: 13px;
  }

  .foodord-admin-dashboard-panel {
    padding: 20px;
  }

  .foodord-admin-dashboard-panel__title {
    font-size: 18px;
  }

  .foodord-admin-dashboard-panel__button {
    width: 100%;
  }

  .foodord-admin-dashboard-promo {
    padding: 24px;
    border-radius: 20px;
  }

  .foodord-admin-dashboard-promo__title {
    font-size: 19px;
  }

  .foodord-admin-dashboard-promo__icon {
    width: 52px;
    height: 52px;
    font-size: 24px;
    margin-top: 20px;
  }

  .foodord-admin-dashboard-promo__button {
    width: 100%;
    min-height: 48px;
  }

  .foodord-admin-video-modal__dialog {
    width: calc(100vw - 24px);
    margin: 24px auto;
  }
}

@media (max-width: 420px) {
  .foodord-admin-dashboard-hero__button {
    flex-basis: 100%;
    width: 100%;
  }
}
