.mm-variation-notice {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(-5px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fff3cd;
  margin: 1em 0;
  padding: 0;
  border: 1px solid #ffc107;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.mm-variation-notice.show {
  opacity: 1;
  max-height: 400px;
  transform: translateY(0);
  padding: 18px 22px;
}

.mm-variation-notice.hide {
  opacity: 0;
  max-height: 0;
  transform: translateY(-5px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.mm-variation-notice .mm-available-on {
  font-weight: 600;
  color: #856404;
  margin-bottom: 10px;
  font-size: 15px;
}

.mm-variation-notice .mm-notice-content {
  color: #856404;
}

.mm-variation-notice .mm-notice-content p {
  margin: 0 0 8px 0;
}

.mm-variation-notice .mm-notice-content p:last-child {
  margin-bottom: 0;
}

.mm-variation-notice .mm-notice-content.mm-preorder-notice p {
  margin: 0 0 8px 0;
  font-weight: 500;
}

.mm-variation-notice .mm-notice-content.mm-preorder-notice p:last-child {
  margin-bottom: 0;
}

.mm-loading-spinner {
  text-align: center;
  padding: 18px;
  min-height: 60px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.woocommerce-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid #ffeaa7;
  border-top: 3px solid #ffc107;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.loading-text {
  font-size: 13px;
  color: #856404;
  font-weight: 500;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.mm-variation-notice.loading .mm-loading-spinner {
  display: flex !important;
}

.mm-variation-notice.loading .mm-notice-content {
  display: none;
}

.mm-variation-notice:not(.loading) .mm-loading-spinner {
  display: none !important;
}
@media (max-width: 768px) {
  .mm-variation-notice {
    margin: 12px 0;
    font-size: 13px;
    border-radius: 6px;
  }

  .mm-variation-notice.show {
    padding: 14px 18px;
  }

  .mm-variation-notice .mm-available-on {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .mm-variation-notice .mm-notice-content.mm-preorder-notice {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .mm-variation-notice {
    margin: 10px 0;
    font-size: 12px;
  }

  .mm-variation-notice.show {
    padding: 12px 16px;
  }

  .mm-variation-notice .mm-notice-content.mm-preorder-notice {
    font-size: 12px;
  }
}

/* Country Restriction Styles */
.mm-country-restriction-field {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

.mm-country-restriction-field label {
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
  color: #333;
}

/* Modern Multiselect Styles */
.mm-modern-multiselect {
  position: relative;
  width: 100%;
}

.mm-multiselect-trigger {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 12px;
  background: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
  transition: all 0.2s ease;
}

.mm-multiselect-trigger:hover {
  border-color: #007cba;
}

.mm-multiselect-trigger:focus {
  outline: none;
  border-color: #007cba;
  box-shadow: 0 0 0 1px #007cba;
}

.mm-selected-count {
  color: #333;
  font-size: 14px;
}

.mm-dropdown-arrow {
  color: #666;
  font-size: 12px;
  transition: transform 0.2s ease;
}

.mm-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 4px 4px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mm-dropdown-menu label {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  margin: 0;
  font-weight: normal;
  transition: background-color 0.2s ease;
}

.mm-dropdown-menu label:hover {
  background-color: #f8f9fa;
}

.mm-dropdown-menu label:last-child {
  border-bottom: none;
}

.mm-country-checkbox {
  margin-right: 8px;
  margin-bottom: 0;
}

.mm-country-select {
  display: none;
}

/* Admin field description styling */
.mm-country-restriction-field .description {
  margin-top: 8px;
  padding: 10px;
  background: #fff3cd;
  border-left: 3px solid #ffc107;
  border-radius: 4px;
  font-size: 12px;
  color: #856404;
  line-height: 1.6;
}

.mm-country-restriction-field .description strong {
  color: #856404;
  font-size: 13px;
}

/* Restricted variation indicator */
.variations select option:disabled {
  color: #999 !important;
  background-color: #f5f5f5 !important;
  font-style: italic;
}

.variations select option:disabled:before {
  content: "🚫 ";
}

/* Country restriction notice styles */
.mm-country-restriction-notice {
  color: #e2401c !important;
  font-weight: 500;
  margin-top: 8px;
  padding: 8px 12px;
  background: #fdf2f2;
  border: 1px solid #fca5a5;
  border-radius: 4px;
  font-size: 13px;
}

.mm-notice-content.mm-restricted-notice {
  border-left: 4px solid #e2401c;
}

.mm-notice-content.mm-country-restriction-only {
  background: #fdf2f2;
  border: 1px solid #fca5a5;
  border-radius: 4px;
  padding: 12px;
}

.mm-notice-content.mm-country-restriction-only .mm-country-restriction-notice {
  margin-top: 0;
  padding: 0;
  background: none;
  border: none;
}

/* Responsive styles for country restriction */
@media (max-width: 768px) {
  .mm-multiselect-trigger {
    min-height: 36px;
    padding: 6px 10px;
  }

  .mm-selected-count {
    font-size: 13px;
  }

  .mm-dropdown-menu {
    max-height: 150px;
  }

  .mm-dropdown-menu label {
    padding: 6px 10px;
    font-size: 13px;
  }

  .mm-country-restriction-field .description {
    font-size: 11px;
    padding: 8px;
  }

  .mm-country-restriction-notice {
    font-size: 12px;
    padding: 6px 10px;
  }
}

@media (max-width: 480px) {
  .mm-multiselect-trigger {
    min-height: 32px;
    padding: 5px 8px;
  }

  .mm-selected-count {
    font-size: 12px;
  }

  .mm-dropdown-arrow {
    font-size: 10px;
  }

  .mm-dropdown-menu {
    max-height: 120px;
  }

  .mm-dropdown-menu label {
    padding: 5px 8px;
    font-size: 12px;
  }

  .mm-country-checkbox {
    margin-right: 6px;
  }

  .mm-country-restriction-field .description {
    font-size: 10px;
    padding: 6px;
  }

  .mm-country-restriction-notice {
    font-size: 11px;
    padding: 5px 8px;
  }
}
