/**
 * The following styles get applied inside the editor only.
 *
 * Replace them with your own styles or remove the file completely.
 */

.wp-block-create-block-gutenberg-media-carousel {
	border: 1px dotted #f00;
}
.color {
	font-size: 11px;
	font-weight: 500;
	line-height: 1.4;
	text-transform: uppercase;
	display: inline-block;
	margin-bottom: calc(8px);
	padding: 0px;
}

.slider-boxwrap {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

.arrowclass .components-radio-control__option {
	display: flex;
	align-items: center;
	gap: 5px;
}
.arrowclass .components-radio-control__option label {
	max-width: 100%;
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 5px;
	position: relative;
	width: 50px;
	height: 50px;
	width: 100%;
}
.arrowclass label .svg-arrow {
    display: flex;
    gap: 10px;
}
.arrowclass .svg-arrow .prev-btn, .arrowclass .svg-arrow .next-btn {
    width: 20px;
    height: 20px;
    cursor: pointer;
}
.arrowclass .components-radio-control__option label img {
	max-width: 30px !important;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}

.slider-boxwrap .mcfgb-gallery-single {
	position: relative;
	cursor: pointer;
}

.slider-boxwrap .mcfgb-gallery-single {
	width: 48% !important;
	margin: 2% 0;
}

input.ytb-url,
input.caption,
input.caption-video {
	height: 37px;
	width: -webkit-fill-available;
    margin: 5px 0;
    padding: 0 10px;
    border-radius: 5px;
    max-width: 100%;
}

textarea.description,
textarea.description-video {
	width: -webkit-fill-available;
    margin: 5px 0;
    padding: 8px 10px;
    border-radius: 5px;
    max-width: 100%;
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
}
// .mcfgb-gallery-single input {
//     width: 100%;
//     margin: 5px 0;
// }
.slider-boxwrap .mcfgb-gallery-single img,
.slider-boxwrap .mcfgb-gallery-single video {
	height: 220px;
	max-width: 100%;
	width: 100%;
	object-fit: cover;
	transition: 0.3s ease all;
	box-shadow: 0px 0px 10px #8f8f8f;
}

.arrowclass input[type="radio"] {
	display: none;
}

.arrowclass .components-flex {
	flex-direction: row;
    justify-content: space-between;
}
img.type_image {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

/* Responsive Controls Styling */
.responsive-controls input[type="number"] {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    width: 60px !important;
    text-align: center;
}

.responsive-controls input[type="number"]:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
    outline: none;
}

.responsive-controls .device-icon {
    color: #646970;
    margin-right: 8px;
}

.responsive-controls .device-label {
    font-size: 12px;
    color: #646970;
    min-width: 60px;
    font-weight: 500;
}

/* Border Radius Control Styles */
.mcfgb-radius-control {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 8px;
}
.mcfgb-radius-control input[type="number"] {
  width: 55px;
  border-radius: 0;
  border-right: 0;
  text-align: center;
  height: 32px;
  border: 1px solid #ccd0d4;
  font-size: 13px;
  transition: border-color 0.2s ease;
}

.mcfgb-radius-control input[type="number"]:invalid {
  border-color: #d63638;
  box-shadow: 0 0 0 1px #d63638;
}

.mcfgb-radius-control input[type="number"]:focus {
  border-color: #0073aa;
  box-shadow: 0 0 0 1px #0073aa;
  outline: none;
}
.mcfgb-radius-control input[type="number"]:first-child {
  border-radius: 4px 0 0 4px;
}
.mcfgb-radius-control input[type="number"]:last-of-type {
  border-radius: 0 4px 4px 0;
  border-right: 1px solid #ccd0d4;
}
.mcfgb-radius-control button {
  background: #fff;
  border: 1px solid #0073aa;
  border-radius: 0 4px 4px 0;
  margin-left: 4px;
  height: 32px;
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, color 0.2s;
}
.mcfgb-radius-control button.linked {
  background: #0073aa;
  color: #fff;
}
.mcfgb-radius-control button:not(.linked) {
  background: #f7f7f7;
  border: 1px solid #000;
}
.mcfgb-radius-control button:not(.linked) svg {
  fill: #000;
}
.mcfgb-radius-control button svg {
  display: block;
  margin: 0 auto;
  fill: #fff;
}
.mcfgb-radius-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #555;
  margin-top: 4px;
}

/* Apply border radius in editor preview */
.wp-block-create-block-gutenberg-media-carousel .mcfgb-gallery-single img,
.wp-block-create-block-gutenberg-media-carousel .mcfgb-gallery-single video,
.wp-block-create-block-gutenberg-media-carousel .mcfgb-gallery-single iframe,
.slider-boxwrap .mcfgb-gallery-single img,
.slider-boxwrap .mcfgb-gallery-single video,
.slider-boxwrap .mcfgb-gallery-single iframe {
  border-radius: var(--mcfgb-border-radius, 0px);
}

/* Apply border radius to video thumbnail wrappers in editor */
.slider-boxwrap .mcfgb-gallery-single .video-thumbnail-container,
.slider-boxwrap .mcfgb-gallery-single .video-thumbnail-wrapper {
  border-radius: var(--mcfgb-border-radius, 0px);
  overflow: hidden;
}

/* Arrow Responsive Visibility Classes for Editor */
.mcfgb-hide-arrows-desktop {
  @media (min-width: 1025px) {
    display: none !important;
  }
}
.mcfgb-hide-arrows-tablet {
  @media (min-width: 768px) and (max-width: 1024px) {
    display: none !important;
  }
}
.mcfgb-hide-arrows-mobile {
  @media (max-width: 767px) {
    display: none !important;
  }
}

/* Enhanced Tooltip Styles for Arrow Type Options */
.arrowclass .svg-arrow[data-tooltip] {
  position: relative;
  cursor: help;
  transition: all 0.3s ease;
}

.arrowclass .svg-arrow[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 1000;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.arrowclass .svg-arrow[data-tooltip]:hover::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
  margin-bottom: 3px;
  z-index: 1000;
}

/* Active arrow type styling */
.arrowclass input[type="radio"]:checked + label .svg-arrow {
  background: rgba(0, 115, 170, 0.1);
  border: 2px solid #0073aa;
  border-radius: 6px;
  padding: 4px;
}

// .arrowclass input[type="radio"]:checked + label .svg-arrow::after {
//   content: "✓ Active";
//   position: absolute;
//   top: -8px;
//   right: -8px;
//   background: #0073aa;
//   color: white;
//   font-size: 10px;
//   padding: 2px 6px;
//   border-radius: 10px;
//   font-weight: bold;
// }

/* Custom arrow upload tooltips */
.arrowclass span[data-tooltip] {
  cursor: help;
  border-bottom: 1px dotted #666;
  position: relative;
}

.arrowclass span[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  z-index: 1000;
  margin-bottom: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.arrowclass span[data-tooltip]:hover::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
  margin-bottom: 2px;
  z-index: 1000;
}

/* Main arrow type label tooltip */
.arrowclass .components-radio-control__label span[data-tooltip] {
  cursor: help;
  border-bottom: 1px dotted #0073aa;
  color: #0073aa;
}
