 #mcpb-builder-container {
  position: relative;
  max-height: 80vh; 
  overflow-y: auto;
}

.mcpb-container {
  position: sticky;
  top: 0;
  background: #fff;
  padding: 10px;
  display: flex;
  gap: 10px;
  z-index: 100;
}

.mcpb-container{
    display: flex;
    gap: 10px;
}
#mcpb-add-block,
#mcpb-add-container {
    display: block;
    margin-bottom: 10px;
    position: sticky;
    top: 0;
    z-index: 1000;
}


#mcpb-block-list .mcpb-block {
    border: 1px dashed #aaa;
    margin-bottom: 5px;
    background: #fff;
    padding: 10px;
    cursor: grab;
}

.mcpb-block-header {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
}

.mcpb-block-fields input {
    display: block;
    margin-top: 5px;
    width: 100%;
    padding: 5px;
}

#mcpb-block-palette {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #ccc;
    padding: 15px;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#mcpb-block-palette button {
    display: block;
    margin: 5px 0;
    width: 100%;
    padding: 15px;
}
.mcpb-select-media {
    margin-top: 5px;
    padding: 5px 10px;
}
.mcpb-block-preview {
    margin-top: 5px;
}

.mcpb-block-preview img,
.mcpb-block-preview video {
    padding: 5px;
    max-width: 100%;
}
/* Position slick arrows on the left/right */
.mcpb-slider .slick-prev,
.mcpb-slider .slick-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 99;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
}

/* left arrow */
.mcpb-slider .slick-prev {
    left: -40px !important;
    /* push further out or use 10px to keep inside */
}

/* right arrow */
.mcpb-slider .slick-next {
    right: -40px !important;
}



/* Modal styling */

.mcpb-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.36);
}

/* Modal box */
/* Hide modal by default */
#mcpb-block-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.mcpb-modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 20px;
    width: 800px;
    border-radius: 8px;
    position: relative;
}

.mcpb-close {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 20px;
    cursor: pointer;
}
/* Header */
.mcpb-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.mcpb-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}


/* Groups title inside modal */
.mcpb-palette-group-title {
    margin: 14px 0 8px;
    font-size: 13px;
    color: #333;
}

/* grid for element tiles */
.mcpb-palette-grid {
    display: grid;
    width: 800px;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 10px;

}

/* element tile */

.mcpb-palette-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #ECEBFF;
    cursor: pointer;
}
.mcpb-palette-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(96, 99, 179, 0.12);
}


/* label */
.mcpb-palette-label {
    font-size: 13px;
    color: #222;
    padding-top: 5px;
}
.mcpb-child-palette{
    margin-top: 20px;
}


/* ===== STYLE PANEL (Bottom Panel) ===== */

#mcpb-style-panel {
    background-color: #ECEBFF;
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px 25px;
    z-index: 9999;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    width: 90%;
    max-width: 1200px;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: auto;
    white-space: nowrap;
    cursor: move;
}

#mcpb-style-close {
    cursor: pointer;
}

/* === PAGE BUILDER LAYOUT === */
#mcpb-builder-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

/* Left Side (Blocks + Add Button) */
#mcpb-builder-left {
    flex: 1;
    min-width: 78%;
}

/* Right Side (Style Sidebar) */
#mcpb-style-sidebar {
    flex: 1;
    min-width: 10%;
    background: #ECEBFF;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 10px;
    max-height: 80vh;
    overflow-y: auto;
}

/* Header */
#mcpb-style-panel-header {
    font-weight: 600;
    color: #fff;
    background: #6a5acd;
    margin-bottom: 10px;
    font-size: 15px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
     padding: 8px 12px;
    margin-bottom: 15px;
    font-weight: bold;
    border-radius: 8px 8px 0 0;
    cursor: move;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Fields Layout */
#mcpb-style-fields .mcpb-style-group {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

#mcpb-style-fields .mcpb-style-label {
    display: block;
    font-weight: 500;
    margin-bottom: 3px;
}

.mcpb-style-input {
    width: 100%;
    box-sizing: border-box;
}

/* ===== Each style group (Margin / Padding) ===== */
.mcpb-style-group {
    display: inline-flex;
    flex-direction: column;
    background: #dcd6ff;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #c3bcff;
    min-width: 140px;
    flex-shrink: 0;
}

/* Title inside Margin/Padding */
.mcpb-group-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 6px;
}

/* Grid for margin/padding inputs (each row) */
.mcpb-style-buttons-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 4px;
}

/* === Individual purple button style === */
.mcpb-style-button {
    display: flex;
    align-items: center;
    background-color: #7d4fff;
    border-radius: 6px;
    overflow: hidden;
    min-width: 70px;
    height: 30px;
}

.mcpb-style-label {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.8em;
    padding: 4px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mcpb-button-input {
    flex-grow: 1;
    border: none;
    background: transparent;
    color: #fff;
    text-align: right;
    padding: 3px 5px;
    font-size: 0.85em;
    width: 40px;
}

/* Normal style fields (color, border, etc.) inline */
.mcpb-style-label-line {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    flex-shrink: 0;
}

.mcpb-style-label-line input,
.mcpb-style-label-line select {
    width: 150px;
    text-align: left;
    border: none;
    outline: none;
    border-radius: 6px;
    background: #c9c2ff;
    color: #222;
    padding: 6px;
    font-size: 12px;
}

.mcpb-style-label-line input:focus,
.mcpb-style-label-line select:focus {
    background: #bdb6ff;
    box-shadow: 0 0 0 2px #6a5acd55;
}

/* Scrollbar for overflow */
#mcpb-style-panel::-webkit-scrollbar {
    height: 6px;
}

#mcpb-style-panel::-webkit-scrollbar-thumb {
    background: #aaa;
    border-radius: 4px;
}

#mcpb-style-panel::-webkit-scrollbar-track {
    background: #e4e4e4;
}

/* card */
.mcpb-card-child{
    padding: 10px;
}
.mcpb-card-heading-text,
.mcpb-card-paragraph-text,
.mcpb-card-button-text{
    margin: 0px 20px;
}


.mcpb-form-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
    /* Space between label and input */
}


/* Hide the close button initially in block */
.mcpb-close-button {
    border: none !important;
    background: transparent !important;
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

/* Show close button when hovering on block */
.mcpb-block:hover .mcpb-close-button {
    opacity: 1;
}

/* Optional: add a little hover effect */
.mcpb-close-button:hover {
    color: red;
}
.mcpb-button {
    
    text-decoration: none;
    color: black;
    
}

.mcpb-form-field-sidebar,
.mcpb-accordion-item-field-sidebar,
.mcpb-social-icon-field{
    margin-bottom: 10px;
}
.mcpb-form-field-sidebar>div ,
.mcpb-accordion-item-field-sidebar>div,
.mcpb-social-icon-field>div{
    margin-bottom: 10px;
}

/* .mcpb-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.mcpb-accordion-header label {
    flex: 1;
    margin-right: 10px;
} */
.mcpb-button-fields .mcpb-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.mcpb-button-fields label {
    margin-bottom: 5px;
}
.mcpb-card-child-menu{
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    padding: 20px;
    z-index: 999;
}
.mcpb-card-child-menu .mcpb-add-card-type{
    margin-bottom: 10px;
    padding: 8px;
    color: #0a4b78;
    padding-left: 30px;
    padding-right: 30px;
        
}
.mcpb-field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.mcpb-icon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 6px;
}

.mcpb-icon-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    background: #fff;
}

.mcpb-icon-option i {
    font-size: 18px;
    margin-bottom: 4px;
}

.mcpb-icon-option span {
    font-size: 12px;
    color: #333;
}

.mcpb-icon-option:hover {
    background: #f0f0f0;
}

.mcpb-icon-option.selected {
    border-color: #007cba;
    background: #e6f2ff;
}
/* .mcpb-social-icons-preview i,
.mcpb-social-icon i {
  color: black; 
} */
.mcpb-social-icons-preview i {
    color: inherit;
}
.mcpb-icon{
    display: flex;
    justify-content: space-between;
}
.mcpb-prop-section{
    padding: 10px;
}
.mcpb-layout-section {
    margin: 25px 0px;
}

.mcpb-layout-options {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
}

.mcpb-layout-option {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    /* width: 90px; */
    cursor: pointer;
    transition: 0.2s;
}

.mcpb-layout-option img {
    width: 120px;
    height: 40px;
    display: block;
    margin: 0 auto 5px;
}

.mcpb-layout-option:hover {
    border-color: #0073aa;
    background: #f0f8ff;
}
/* .mcpb-block-preview .container {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 6px;
} */

.mcpb-block-preview .row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mcpb-block-preview [class^="col-"] {
    /* background: #fff; */
    min-height: 60px;
    gap: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.mcpb-block.selected {
    border: 2px solid #605dc7 !important;
    background: #eef6ff !important;
}
.mcpb-container-child.selected {
    border: 2px solid #605dc7 !important;
    background: #eef6ff !important;
}


.shield-cart-popup {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);

    background: #605dc7;
    color: #fff;

    padding:15px;

    border-radius: 999px;

    display: flex;
    align-items: center;
    gap: 14px;

    font-size: 12px;
    font-weight: 600;

    z-index: 999999;

    box-shadow:
        0 12px 30px rgba(99, 91, 255, 0.35);

    animation: shieldPopupFade 0.35s ease;

    min-width: 300px;

    justify-content: center;
}

.shield-popup-icon {
    width: 18px;
    height: 18px;

    border-radius: 50%;

    background: #31C46C;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}

.shield-popup-icon i {
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    line-height: 1;
}

@keyframes shieldPopupFade {

    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}



/* Default title color */
.shield-carousel-container .shield-title {
    color: black; 
    transition: color 0.3s ease; 
}

/* Hover color */
.shield-carousel-container .shield-title:hover {
    color: #605dc7;
}


.shield-image img {
    padding: 10px; 
    box-sizing: border-box; 
}