.sectionly-options-container {
  margin-bottom: 20px;
  font-family: inherit;
  color: #121212;
}

.sectionly-option-field {
  position: relative;
}

.sectionly-option-label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #121212;
}

.sectionly-required {
  color: #bf0711;
  margin-left: 4px;
  font-weight: 500;
}

.sectionly-input,
.sectionly-textarea,
.sectionly-select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #c4cdd5;
  border-radius: 3px;
  font-size: 14px;
  transition: border-color 0.1s ease-in-out;
  background-color: #fff;
  color: #121212;
  line-height: 1.5;
}

.sectionly-input:hover,
.sectionly-textarea:hover,
.sectionly-select:hover {
  border-color: #919eab;
}

.sectionly-input:focus,
.sectionly-textarea:focus,
.sectionly-select:focus {
  border-color: #121212;
  outline: none;
  box-shadow: 0 0 0 1px #121212;
}

.sectionly-help-text {
  margin-top: 4px;
  font-size: 12px;
  color: #637381;
  line-height: 1.4;
}

.sectionly-field-error {
  margin-top: 4px;
  font-size: 12px;
  color: #bf0711;
  line-height: 1.4;
}

.sectionly-error {
  color: #bf0711;
  font-size: 12px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
}

.sectionly-error::before {
  content: "•";
  margin-right: 6px;
  font-size: 16px;
}

.sectionly-error-field {
  border-color: #bf0711 !important;
  box-shadow: 0 0 0 1px #bf0711 !important;
}

.sectionly-loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  border-top-color: #121212;
  animation: sectionly-spin 0.8s infinite linear;
}

@keyframes sectionly-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .sectionly-option-field {
    margin-bottom: 10px;
  }

  .sectionly-input,
  .sectionly-textarea,
  .sectionly-select {
    padding: 8px 10px;
    font-size: 16px; /* Larger font size on mobile devices for better readability */
  }
}

.sectionly-input[type="checkbox"] {
  width: auto; /* Override default width */
  margin-right: 8px;
  vertical-align: middle; /* Align checkbox with label text */
  cursor: pointer;
}

.sectionly-radio-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  /* margin-bottom: 8px; */
}

.sectionly-radio-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  background-color: #fff;
  border: 2px solid #dddddd;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  line-height: 34px;
  font-weight: 400;
  transition: all 0.2s ease;
  text-align: center;
  min-width: 60px;
  color: #000;
  position: relative;
}
.sectionly-radio-selected-display-style {
  font-size: small;
}

.sectionly-radio-button:hover {
  border-color: #7d7d7d;
}

.sectionly-radio-button-selected {
  font-weight: 500;
  background-color: #121212;
  color: #fff;
  border: 2px solid #121212;
}
.sectionly-radio-button .sectionly-additional-price {
  margin-left: 4px;
  font-weight: normal;
  color: #000;
}

.sectionly-radio-button-selected .sectionly-additional-price {
  color: #fff;
}

.sectionly-radio-button-selected:hover {
  border: 2px solid #121212;
}

.sectionly-radio-button-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
}

@media (max-width: 768px) {
  .sectionly-radio-button {
    padding: 8px 12px;
    font-size: 13px;
  }

  .sectionly-radio-button-group {
    flex-direction: column;
    width: 100%;
  }

  .sectionly-radio-button {
    width: 100%;
    justify-content: flex-start;
  }
}

/* File Input Styles */
.sectionly-input[type="file"] {
  padding: 6px 10px; /* Adjust padding slightly for file input */
}

/* Date Input Styles */
.sectionly-input[type="date"] {
  /* Specific styles for date input if needed, often inherits well */
  min-height: 37px; /* Ensure consistent height with other inputs */
}

/* Number Input Styles */
.sectionly-input[type="number"] {
  /* Specific styles for number input if needed */
  min-height: 37px; /* Ensure consistent height */
}

/* Heading Styles */
.sectionly-heading-field {
  /* margin-top: 15px;
  margin-bottom: 15px; */
}

.sectionly-heading {
  font-family: inherit;
  margin: 0;
  padding: 0;
  font-weight: bold;
  font-size: 16px;
  line-height: 1.5;
}

.sectionly-heading-small {
  font-size: 14px;
  font-weight: 500;
  padding-bottom: 6px;
}

.sectionly-heading-large {
  font-size: 24px;
  font-weight: 700;
  padding-bottom: 10px;
}

/* Divider Styles */
.sectionly-divider-field {
  /* margin-top: 15px;
  margin-bottom: 15px; */
}

.sectionly-divider {
  border: 0;
  margin: 0;
  padding: 0;
  width: 100%;
}

/* Responsive styles */
@media (max-width: 768px) {
  .sectionly-heading {
    font-size: 16px;
  }

  .sectionly-heading-small {
    font-size: 14px;
  }

  .sectionly-heading-large {
    font-size: 20px;
  }
}

.sectionly-options-row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -10px;
  margin-right: -10px;
}

[element-id]{
  box-sizing: border-box;
  padding-left: 10px;
  padding-right: 10px;
  margin-bottom: 10px;
}
.sectionly-group-container [element-id] {
  margin-bottom: 5px;
  padding: 0;
}

.sectionly-group-container [element-id]:last-child {
  margin-bottom: 0;
}

.sectionly-options-container sectionly-option-group{
  margin-bottom: 5px;
  width: 100%;
  flex-basis: 100%;
}
.sectionly-width-100 {
  width: 100%;
}

.sectionly-width-75 {
  width: 75%;
}

.sectionly-width-66 {
  width: 66.66%;
}

.sectionly-width-50 {
  width: 50%;
}

.sectionly-width-33 {
  width: 33.33%;
}

.sectionly-width-25 {
  width: 25%;
}

@media (max-width: 768px) {
  .sectionly-width-75,
  .sectionly-width-66,
  .sectionly-width-50,
  .sectionly-width-33,
  .sectionly-width-25 {
    width: 100%;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .sectionly-width-33,
  .sectionly-width-25 {
    width: 50%;
  }
}

.sectionly-input-wrapper {
  display: flex;
  align-items: stretch;
  width: 100%;
  position: relative;
  border: 1px solid #c4cdd5;
  border-radius: 3px;
  background-color: #fff;
}

.sectionly-input-prefix {
  padding: 0 0 0 8px;
  background-color: transparent;
  border: none;
  color: #121212;
  white-space: nowrap;
  font-size: 12px;
  display: flex;
  align-items: center;
  /* border-right: 1px solid var(--color-border, #c4cdd5); */
  min-width: 32px;
  justify-content: center;
  font-weight: 500;
}

.sectionly-input-suffix {
  padding: 0 8px 0 0;
  background-color: transparent;
  border: none;
  color: #637381;
  white-space: nowrap;
  font-size: 12px;
  display: flex;
  align-items: center;
  /* border-left: 1px solid var(--color-border, #c4cdd5); */
}

.sectionly-input-wrapper .sectionly-input,
.sectionly-input-wrapper .sectionly-textarea {
  flex: 1;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.sectionly-input-wrapper .sectionly-input:focus,
.sectionly-input-wrapper .sectionly-textarea:focus {
  position: relative;
  z-index: 1;
  box-shadow: none;
}

.sectionly-input-wrapper:focus-within {
  border-color: #121212;
  box-shadow: 0 0 0 1px #121212;
}

.sectionly-input-prefix + .sectionly-input,
.sectionly-input-prefix + .sectionly-textarea,
.sectionly-input + .sectionly-input-suffix,
.sectionly-textarea + .sectionly-input-suffix,
.sectionly-input-prefix + .sectionly-input + .sectionly-input-suffix,
.sectionly-input-prefix + .sectionly-textarea + .sectionly-input-suffix {
  border-radius: 0;
}

@media (max-width: 768px) {
  .sectionly-input-wrapper {
    flex-wrap: nowrap;
  }

  .sectionly-input-prefix,
  .sectionly-input-suffix {
    padding: 8px;
    font-size: 14px;
  }
}

.sectionly-input-wrapper .sectionly-textarea {
  height: auto;
  min-height: 37px;
}

.sectionly-input-wrapper .sectionly-input-prefix,
.sectionly-input-wrapper .sectionly-input-suffix {
  align-self: stretch;
  display: flex;
  align-items: center;
}

.sectionly-price-preview {
  margin-top: 15px;
  font-family: inherit;
}

.sectionly-additional-fees {
  margin-top: 8px;
  font-size: 0.9em;
  color: #666;
  line-height: 1.4;
}

.sectionly-additional-fees > div {
  margin-bottom: 4px;
  padding: 4px 8px;
  background-color: #f9f9f9;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sectionly-additional-fees > div:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .sectionly-price-preview {
    margin-top: 12px;
  }

  .sectionly-additional-fees {
    font-size: 0.85em;
  }
}

/* Image Picker Styles (formerly image-swatch) */
.sectionly-image-picker-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 10px;
  width: 100%;
}

.sectionly-image-picker-group.sectionly-error-field {
  border: 1px solid #e74c3c;
  border-radius: 4px;
  padding: 5px;
}

.sectionly-image-picker-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease;
  border: 2px solid transparent;
  border-radius: 4px;
  padding: 4px;
  transition: border-color 0.2s;
}

.sectionly-image-picker-container:hover {
  /* transform: translateY(-2px); */
}

.sectionly-image-picker-selected-container .sectionly-image-picker-label {
  font-weight: 600;
  color: #121212;
}

.sectionly-image-picker-item {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
  margin-bottom: 8px;
  border: 2px solid transparent;
}

.sectionly-image-picker-item:hover {
  opacity: 0.9;
}

.sectionly-image-picker-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sectionly-image-picker-selected {
  border-color: #121212;
  border: 2px solid #121212;
}

.sectionly-image-picker-label {
  font-size: 12px;
  text-align: center;
  padding: 2px 4px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}

.sectionly-image-picker-label .sectionly-additional-price {
  font-size: 0.9em;
}


.sectionly-option-label .sectionly-additional-price {
  font-weight: normal;
}

@media screen and (max-width: 768px) {
  .sectionly-image-picker-group {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Group Element Styles */
.sectionly-group-field {
  position: relative;
  /* overflow: hidden; */
  border-bottom: 1px solid #e5e5e5;
}

.sectionly-group-container {
  margin-top: 0;
  transition: border-color 0.1s ease-in-out;
  backface-visibility: hidden;
  transform: translateZ(0);
}


.sectionly-accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 12px 0;
  transition: background-color 0.2s ease;
}

.sectionly-accordion-header:hover {
}

.sectionly-accordion-title {
  font-size: 14px;
  font-weight: 600;
  color: #121212;
  flex: 1;
  display: flex;
  align-items: center;
}

.sectionly-accordion-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  will-change: transform;
}

.sectionly-accordion-content {
  border-top: none;
  transition: height 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  will-change: height;
  transform: translateZ(0);   
  backface-visibility: hidden; 
  -webkit-transform: translate3d(0,0,0);
}

/* Child element styling */
.sectionly-group-container .sectionly-child-element {
  position: relative;
  margin-bottom: 10px;
  display: block;
}

.sectionly-child-element:last-child {
  padding-bottom: 0;
}

/* Responsive styles for group */
@media (max-width: 768px) {
  .sectionly-group-container {
    padding: 10px 5px 5px 5px;
  }
}

.sectionly-error-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #bf0711;
  margin-right: 8px;
  position: relative;
}

.sectionly-error-indicator:before {
  content: "!";
  color: white;
  font-size: 8px;
  font-weight: bold;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.sectionly-components-wrapper {
  padding-bottom: 15px;
}

@media (max-width: 768px) {
  .sectionly-components-wrapper {
    padding-bottom: 10px;
  }
}

.sectionly-additional-price {
  color: #637381;
  font-size: 0.9em;
  font-weight: normal;
  margin-left: 4px;
  display: inline-block;
}

/* Radio button tooltip styles */
.sectionly-radio-button {
  position: relative;
}

.sectionly-tooltip {
  position: absolute;
  background: #212b36;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1000;
}

.sectionly-radio-button:hover .sectionly-tooltip {
  opacity: 1;
}

.sectionly-radio-button-group.sectionly-error-field {
  border: 1px solid #e74c3c;
  border-radius: 4px;
  padding: 5px;
}

.sectionly-selected-value-display {
  margin-bottom: 8px;
  font-weight: 500;
}

.sectionly-note-wrapper {
  display: flex;
  align-items: flex-start;
  padding: 12px;
  background-color: #f9fafb;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 16px;
}

.sectionly-note-icon {
  margin-right: 10px;
  flex-shrink: 0;
  color: #374151;
}

.sectionly-note-icon svg {
  display: block;
}

.sectionly-note-text-content {
  flex-grow: 1;
}

.sectionly-note-title {
  font-weight: 600;
  font-size: 1em;
  color: #111827;
  margin-bottom: 4px;
  line-height: 1.4;
}

.sectionly-note-main-content {
  font-size: 0.95em;
  color: #374151;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .sectionly-note-wrapper {
    padding: 10px;
  }
  .sectionly-note-title {
    font-size: 0.95em;
  }
  .sectionly-note-main-content {
    font-size: 0.9em;
  }
}

/* Learn More Element Styles */
.sectionly-learn-more-field {
  margin-bottom: 16px;
  position: relative;
}

.sectionly-learn-more-description {
  margin: 0;
  line-height: 1.5;
  font-size: 14px;
  color: #333;
}

.sectionly-learn-more-button {
  display: inline-block;
  background: none;
  border: none;
  color: #0066cc;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  transition: color 0.2s ease;
}

.sectionly-learn-more-button:hover {
  color: #004499;
}

/* Drawer Styles */
.sectionly-learn-more-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9990;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sectionly-overlay-visible {
  opacity: 1;
  display: block !important;
}

.sectionly-learn-more-drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 90%;
  max-width: 450px;
  height: 100%;
  background-color: #fff;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 9991;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.sectionly-drawer-open {
  transform: translateX(0);
}

.sectionly-hidden {
  display: none !important;
}

.sectionly-learn-more-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #e1e3e5;
  background-color: #f9fafb;
}

.sectionly-learn-more-drawer-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #212121;
}

.sectionly-learn-more-drawer-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.sectionly-learn-more-drawer-close:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.sectionly-learn-more-drawer-content {
  padding: 16px;
  overflow-y: auto;
  flex-grow: 1;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}

.sectionly-learn-more-drawer-content h1,
.sectionly-learn-more-drawer-content h2,
.sectionly-learn-more-drawer-content h3,
.sectionly-learn-more-drawer-content h4,
.sectionly-learn-more-drawer-content h5,
.sectionly-learn-more-drawer-content h6 {
  margin-top: 1.2em;
  margin-bottom: 0.5em;
  color: #212121;
  font-weight: 600;
}

.sectionly-learn-more-drawer-content h1 { font-size: 1.8em; }
.sectionly-learn-more-drawer-content h2 { font-size: 1.6em; }
.sectionly-learn-more-drawer-content h3 { font-size: 1.4em; }
.sectionly-learn-more-drawer-content h4 { font-size: 1.2em; }
.sectionly-learn-more-drawer-content h5 { font-size: 1.1em; }
.sectionly-learn-more-drawer-content h6 { font-size: 1em; }

.sectionly-learn-more-drawer-content p {
  margin-top: 0;
  margin-bottom: 1em;
}

.sectionly-learn-more-drawer-content ul,
.sectionly-learn-more-drawer-content ol {
  margin-bottom: 1em;
  padding-left: 2em;
}

.sectionly-learn-more-drawer-content li {
  margin-bottom: 0.5em;
}

.sectionly-learn-more-drawer-content img {
  max-width: 100%;
  height: auto;
  margin: 1em 0;
  display: block;
  border-radius: 4px;
}

.sectionly-learn-more-drawer-content a {
  color: #0066cc;
  text-decoration: underline;
}

.sectionly-learn-more-drawer-content a:hover {
  color: #004499;
}

.sectionly-learn-more-drawer-content blockquote {
  border-left: 4px solid #e1e3e5;
  padding-left: 1em;
  margin-left: 0;
  color: #666;
}

@media (max-width: 768px) {
  .sectionly-learn-more-drawer-panel {
    width: 100%;
    max-width: none;
  }
  
  .sectionly-learn-more-drawer-content {
    padding: 12px;
  }
  
  .sectionly-learn-more-drawer-header {
    padding: 12px;
  }
}

.sectionly-group-help-icon {
  margin-left: 8px;
  color: #637381;
  cursor: help;
  position: relative;
  display: inline-flex;
  align-items: center;
}

.sectionly-group-help-icon svg {
  width: 14px;
  height: 14px;
}

.sectionly-group-help-tooltip {
  position: absolute;
  background: #212b36;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: normal;
  line-height: 1.4;
  text-align: center;
  width: max-content;
  max-width: 150px;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  margin-top: 4px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 100;
}

.sectionly-group-help-icon:hover .sectionly-group-help-tooltip {
  opacity: 1;
  visibility: visible;
}

.sectionly-group-help-tooltip::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: #212b36;
}