@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

#migy_shortcode_copied_notice {
    display: none;
    color: #f0ac0e;
    margin-top: 5px;
}

/* Tab style */
.migy-content-and-style-tabs {
    padding-bottom: 14px;
    margin-bottom: 20px;
}

.migy-sub-head strong {
    font-weight: 800;
}

.migy-content-and-style-tabs ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    border: 2px solid #f0ac0e;
    background: #f0ac0e;
    border-bottom: 0;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
}

.migy-content-and-style-tabs ul li {
    display: inline-block;
    padding: 10px 20px;
    margin: 0;
    text-align: center;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    background: #f56616;
    margin: 0 1px;
}

.migy-content-and-style-tabs ul li.migy-tab-active {
    background: #fff;
    color: #000;
}


.migy-tab-data-styles,
.migy-tab-data-shortcode {
    display: none;
}

/* Repeatable style */
.migy-repeater-container {
    background: #f8f8f8;
    padding: 20px;
    margin: 10px 0;
}

.migy-field-item {
    background: #fff;
    padding: 10px 20px;
    margin: 7px 0;
    box-shadow: 0px 0px 5px #ddd;
    border-bottom: 2px solid #f56616;
}

.migy-repeater-action-buttons {
    display: flex;
    justify-content: flex-start;
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
    padding-bottom: 8px;
    position: relative;
}

/* add */

.migy-repeater-action-buttons>div {
    position: absolute;
    right: 0;
}

/* end */
.toggle-button.dashicons {
    cursor: pointer;
    margin-right: 20px;
    padding: 0 !important;
    transition: 0.6s;
}

.toggle-button.arrow-down-style {
    transform: rotate(180deg);
}



.migy-repeater-action-buttons a {
    color: #ea1515;
    text-decoration: none;
}

.migy-repeater-action-buttons span {
    color: #777;
    cursor: move;
    padding-right: 20px;
    font-size: 20px;
    line-height: 20px;
}

.migy-add-more-wrapper a#migy-add-field {
    text-decoration: none;
    padding: 10px;
    border: 2px solid #f56616;
    display: block;
    text-align: center;
    color: #fff;
    font-weight: 500;
    font-size: 15px;
    background: #f56616;
}

.migy-gallery-image-upload.button.button-large.migy-image-upload {
    background: #000000;
    color: #fff;
    border-color: #a01616;
}

/* Filter type tab */
.migy-gallery-settings-heading {
    width: 100%;
    text-align: center;
    font-size: 20px;
    text-transform: capitalize;
    color: #444;
    line-height: 24px;
    margin: 20px 0;
}

.migy-gallery-settings-heading.left-align {
    text-align: left;
}


.migy-filter-type-tabs {
    display: flex;
    border: 1px solid #f0ac0e;
    background-color: #eee;
    width: 60%;
    margin: 0 auto;
    margin-bottom: 26px;
}

.migy-filter-type-tab {
    display: block;
    width: 50%;
    background-color: #f5f5f5;
    text-align: center;
    border-right: 1px solid #f56616;
    box-sizing: border-box;
    cursor: pointer;
    padding: 10px;
    text-transform: capitalize;
    font-size: 15px;
}

.migy-filter-type-tab:last-child {
    border-right: none;
}

.migy-filter-type-tab:hover {
    background-color: #ddd;
}

.migy-filter-type-tabs input[type="radio"] {
    display: none;
}

.migy-filter-type-tabs input[type="radio"]:checked+.migy-filter-type-tab {
    background-color: #f56616;
    ;
    color: #fff;
}


.hidden-if-image-gallery {
    display: none;
}

.migy-gallery-fields-wrapper ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    column-gap: 10px;
    justify-content: space-between;
}

.migy-gallery-fields-wrapper ul li {
    width: calc(50% - 10px);
    margin-bottom: 17px;
}

.migy-gallery-perview-image {
    width: 250px;
    height: 250px;
    /* position: absolute; */
    left: 35px;
    top: -7px;
    right: 0;
    object-fit: cover;
}

.migy-gallery-form-control {
    height: 32px;
    border: 1px solid #ccc !important;
    width: 100%;
    border-radius: 3px;
}

.migy-gallery-form-control:focus {
    outline: 0 !important;
    box-shadow: none !important;
}

label.migy-gallery-form-control-lebel {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
}

.migy-image-field-wrappper input.migy-image-url {
    width: calc(100% - 70px);
}


a.button.button-primary.button-large.migy-image-upload {
    margin-bottom: 6px;
}

.pad-bottom-0 {
    padding-bottom: 0;
}

.border-bottom-0 {
    border-bottom: 0;
    margin-bottom: 0;
}

.migy-border-focus {
    border-color: #ff1414 !important;
    box-shadow: 0px 0px 5px #ff1414 !important;
}

.ui-state-highlight {
    border: 2px dashed #6f6f6f;
}

input.migy_display_shortcode {
    background: #fff;
    color: #444;
    border-color: #f56616;
    width: 100%;
    padding: 5px 10px;
}

.migy-style-meta-table tr {
    margin-bottom: 15px;
    display: block;
}

.migy-style-meta-table tr td:first-child {
    min-width: 180px;
}

.migy-style-meta-table .migy-form-field {
    width: 120px;
}


/* Pro fields CSS Start */
li.migy_disabled_field {
    opacity: 0.7;
}

.migy_disabled_field label.migy-gallery-form-control-lebel {
    position: relative;
}

.migy_disabled_field label.migy-gallery-form-control-lebel:after {
    position: absolute;
    content: '(pro)';
    color: red;
    margin-left: 7px;
}

li.migy_disabled_field input.migy-gallery-form-control {
    pointer-events: none;
}

#menu-posts-migy_image_gallery .wp-submenu-wrap li:last-child {
    font-weight: 600;
    background: #f51f3d;
    color: #fff;
    margin: 3px 10px 0;
    display: block;
    text-align: center;
    border-radius: 3px;
    transition: all .3s;
}

#menu-posts-migy_image_gallery .wp-submenu-wrap li:last-child a {
    color: rgb(240, 246, 252);
}

.wrap.migy-templates-wrap .banner-image {
    display: block;
    padding: 15px 60px;
}

.migy-notice-banner-wrap img {
    width: 100%;
}

.wrap.migy-templates-wrap .banner-image img {
    width: 100%;
    margin-top: 10px;
}

.migy-notice-banner-wrap {
    position: relative;
}

.migy-notice-heading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
}

.migy-notice-banner-wrap h1 {
    font-family: "Bebas Neue";
    font-weight: 400;
    font-size: 59px;
    color: #F0AC0E;
    margin-bottom: 16px;
}

.migy-notice-banner-wrap h4 {
    font-family: "Montserrat";
    font-size: 18px;
    font-weight: 600;
    background-color: #F0AC0E;
    color: #fff;
    padding: 10px 40px;
    border-radius: 9px;
    margin-bottom: 0 !important;
    box-shadow: 0px 4px 9px #00000054;
    position: relative;
    z-index: 1;
}

.migy-notice-banner-wrap .migy-notice-btn a:hover {
    color: #FFF;
}

.migy-notice-banner-wrap .migy-notice-btn a {
    font-family: 'Bebas Neue';
    text-decoration: none;
    font-size: 59px;
    background: linear-gradient(90deg, #F78024, #FFA202);
    color: #fff;
    padding: 38px 25px;
    display: block;
    border-radius: 0px 0px 6px 6px;
    position: relative;
}

.migy-notice-banner-wrap .migy-notice-btn a::before {
    position: absolute;
    content: '' !important;
    top: 0;
    left: 0;
    width: 0px;
    transform: translateX(-9px);
    border-bottom: 20px solid transparent;
    border-right: 10px solid #F78024;
}

.migy-notice-banner-wrap .migy-notice-btn a::after {
    position: absolute;
    content: '' !important;
    top: 0;
    right: 0;
    width: 0px;
    transform: translateX(9px);
    border-bottom: 20px solid transparent;
    border-left: 10px solid #FFA202;
}

.notice.is-dismissible.migy {
    padding-right: 0;
    border: none;
    box-shadow: unset;
    padding: unset;
}

.migy-product-price-wrap {
    position: absolute;
    top: 0;
    right: 20px;
    background-repeat: no-repeat;
    width: 100px;
    height: 145px;
    background-size: contain;
}

.migy-product-banner-wrap {
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    height: 75%
}

.price-text {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

.migy-product-banner-wrap h2 {
    margin: 0;
    color: #fff;
}

@media (max-width: 1599px) and (min-width: 1400px) {
    .migy-notice-banner-wrap h1 {
        font-size: 50px;
        margin-bottom: 0px;
    }

    .migy-notice-banner-wrap h4 {
        font-size: 15px;
    }

    .migy-notice-banner-wrap .migy-notice-btn a {
        font-size: 49px;
        padding: 30px 25px;
    }

    .migy-btn a.documentationbtn {
        margin-top: 20px;
    }
}

@media (max-width: 1399px) and (min-width: 1200px) {
    .migy-notice-banner-wrap h1 {
        font-size: 32px;
        margin-bottom: 0;
    }

    .migy-notice-banner-wrap h4 {
        font-size: 10px;
        padding: 5px 28px;
    }

    .migy-notice-banner-wrap .migy-notice-btn a {
        padding: 20px 10px 15px;
        font-size: 32px;
    }

    .migy-notice-banner-wrap .migy-notice-btn a::before {
        transform: translateX(-5px);
    }

    .migy-notice-banner-wrap .migy-notice-btn a::after {
        transform: translateX(5px);
    }

    .migy-btn a.documentationbtn {
        margin-top: 20px;
    }
}

@media (max-width: 1199px) and (min-width: 992px) {
    .migy-notice-banner-wrap h1 {
        font-size: 26px;
        margin-bottom: 0;
    }

    .migy-notice-banner-wrap h4 {
        font-size: 9px;
        padding: 2px 14px;
        border-radius: 4px;
    }

    .migy-notice-banner-wrap .migy-notice-btn a {
        font-size: 28px;
        padding: 15px 10px 12px;
    }

    .migy-notice-banner-wrap .migy-notice-btn a::before {
        transform: translateX(-5px);
    }

    .migy-notice-banner-wrap .migy-notice-btn a::after {
        transform: translateX(5px);
    }

    .migy-btn {
        display: flex;
        flex-direction: column;
        gap: 10px;
        justify-content: center;
        align-items: center;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .migy-notice-banner-wrap h1 {
        font-size: 22px;
        margin-bottom: 0;
    }

    .migy-notice-banner-wrap h4 {
        font-size: 9px;
        padding: 2px 22px;
    }

    .migy-notice-banner-wrap .migy-notice-btn a {
        font-size: 25px;
        padding: 10px 12px 5px;
    }

    .migy-notice-banner-wrap .migy-notice-btn a::before {
        transform: translateX(-5px);
    }

    .migy-notice-banner-wrap .migy-notice-btn a::after {
        transform: translateX(5px);
    }

    .migy-box {
        width: 50%;
    }

    .migy-btn a.documentationbtn {
        margin-top: 10px;
    }
}

@media (max-width: 767px) {
    .migy-notice-banner-wrap h1 {
        font-size: 22px;
        margin-bottom: 0;
    }

    .migy-notice-banner-wrap h4 {
        font-size: 9px;
        padding: 2px 22px;
    }

    .migy-notice-banner-wrap .migy-notice-btn a {
        font-size: 25px;
        padding: 10px 12px 5px;
    }

    .migy-notice-banner-wrap .migy-notice-btn a::before {
        transform: translateX(-5px);
    }

    .migy-notice-banner-wrap .migy-notice-btn a::after {
        transform: translateX(5px);
    }

    .migy-box {
        width: 50%;
    }

    .migy-wrap {
        padding: 26px 0px;
    }

    .migy-template-title {
        text-align: center;
    }

    .migy-btn {
        display: flex;
        flex-direction: column;
        gap: 10px;
        justify-content: center;
        align-items: center;
    }
}

@media (max-width: 575px) {
    .migy-box {
        width: 100%;
    }

}

/*Pro fields CSS End*/



/* 03/09/25 */

#migy-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #00000080;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#migy-popup-content {
    background: linear-gradient(90deg, #F78024, #FFA202);
    padding: 30px;
    border-radius: 6px;
    max-width: 600px;
    text-align: center;
    width: 100%;
    position: relative;
}

#migy-popup-content .migy-popup-template-btn,
#migy-popup-content .migy-popup-bundle-btn {
    color: black;
    background: white;
    border: none;
    border-radius: 30px;
    font-size: 20px;
    padding: 0px 50px;
}

#migy-popup-content .migy-popup-template-btn:hover,
#migy-popup-content .migy-popup-bundle-btn:hover {
    color: white;
    background: black;
}

.migy-popup-wrap {
    display: flex;
    gap: 25px;
    justify-content: center;
}

#migy-popup-content img {
    width: 100%;
}

#migy-popup-content .migy-popup-bundle-btn {
    background: #fff;
    color: #000;
}

#migy-popup-content .migy-popup-bundle-btn:hover {
    background: #000;
    color: #fff;
}

#migy-popup-content h2 {
    font-size: 25px;
    margin-bottom: 40px;
}

#migy-popup-content .migy-popup-dismiss {
    rotate: 45deg;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 40px;
    cursor: pointer;
    color: #fff;
}

.migy-premium-floating-btn {
    background: linear-gradient(90deg, #F78024, #FFA202) !important;
    border: none !important;
    border-radius: 2px !important;
    font-size: 18px !important;
    padding: 0px 16px !important;
}


/* =============================================
   Style Settings Tab - Professional UI (Polished)
   ============================================= */

.migy-tab-data-styles {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.migy-tab-data-styles .migy-gallery-settings-heading {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 3px solid #F78024;
    display: inline-block;
    letter-spacing: -0.2px;
    position: relative;
}

.migy-tab-data-styles .migy-gallery-settings-heading::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #FFA202;
    border-radius: 2px;
}

/* Grid Layout */
.migy-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 32px;
}

/* Setting Items */
.migy-setting-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fafbfc;
    padding: 16px 18px;
    border-radius: 12px;
    transition: all 0.2s ease;
    border: 1px solid #eef2f6;
}

.migy-setting-item:hover {
    border-color: #FFA202;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.migy-setting-item.full-width {
    grid-column: span 2;
}

/* Labels */
.migy-setting-label strong {
    color: #1e293b;
    font-size: 13px;
    font-weight: 700;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-left: 0;
}

/* Form Controls */
.migy-setting-control {
    width: 100%;
}

.migy-form-field {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #1e293b;
    background: #ffffff;
    transition: all 0.25s ease;
    font-weight: 500;
}

.migy-form-field:focus {
    outline: none;
    border-color: #F78024;
    box-shadow: 0 0 0 3px rgba(247, 128, 36, 0.12);
}

/* Select Dropdown */
select.migy-form-field {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23F78024" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    padding-right: 42px;
    font-weight: 500;
}

/* Color Input */
input[type="color"].migy-form-field {
    width: 55px;
    height: 42px;
    padding: 4px;
    cursor: pointer;
    border-radius: 10px;
    min-width: 55px;
}

/* Number Input */
input[type="number"].migy-form-field {
    max-width: 100%;
    padding-right: 8px;
}

/* Color Group - 4 items row */
.migy-color-group-control {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.migy-color-item {
    flex: 1;
    min-width: 90px;
}

.migy-color-item label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.migy-color-item input {
    width: 100%;
}

/* Font Group */
.migy-font-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.migy-font-item {
    flex: 1;
    min-width: 160px;
}

.migy-font-item label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.migy-font-item select {
    width: 100%;
}

/* Size Group */
.migy-size-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.migy-size-item {
    flex: 1;
    min-width: 130px;
}

.migy-size-item label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.migy-size-item input {
    width: 100%;
    max-width: 100%;
}

/* Special styling for opacity input group */
.migy-color-item:has(input#migy_meta_bg_opacity) {
    max-width: 140px;
}

/* Hover effects */
.migy-form-field:hover {
    border-color: #FFA202;
    background: #fffef8;
}

/* Placeholder styling */
.migy-form-field::placeholder {
    color: #94a3b8;
    font-weight: 400;
    font-size: 13px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .migy-settings-grid {
        gap: 20px;
    }

    .migy-color-group-control {
        gap: 10px;
    }
}

@media (max-width: 992px) {
    .migy-tab-data-styles {
        padding: 20px;
    }

    .migy-settings-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .migy-setting-item.full-width {
        grid-column: span 1;
    }

    .migy-color-group-control,
    .migy-font-group,
    .migy-size-group {
        flex-direction: column;
        gap: 12px;
    }

    .migy-color-item,
    .migy-font-item,
    .migy-size-item {
        width: 100%;
    }

    .migy-setting-item {
        padding: 14px 16px;
    }
}

/* Update Button Styling */
.migy-tab-data-styles~.update-button,
.postbox .update-button {
    background: linear-gradient(135deg, #F78024 0%, #FFA202 100%);
    border: none;
    color: white;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
    font-size: 14px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(247, 128, 36, 0.2);
}

.migy-tab-data-styles~.update-button:hover,
.postbox .update-button:hover {
    background: linear-gradient(135deg, #e06a18 0%, #e89102 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(247, 128, 36, 0.3);
}

.migy-tab-data-styles~.update-button:active,
.postbox .update-button:active {
    transform: translateY(0px);
}

/* Optional: Add subtle animations */
.migy-setting-item {
    transition: all 0.25s ease-in-out;
}

.migy-form-field {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Improve readability for select options */
select.migy-form-field option {
    padding: 8px;
    font-weight: normal;
}

/* Make color pickers more visible */
input[type="color"].migy-form-field::-webkit-color-swatch-wrapper {
    padding: 0;
}

input[type="color"].migy-form-field::-webkit-color-swatch {
    border: none;
    border-radius: 8px;
}

/* Add focus ring for better accessibility */
.migy-form-field:focus-visible {
    outline: none;
    border-color: #F78024;
    box-shadow: 0 0 0 3px rgba(247, 128, 36, 0.2);
}

/* Loading state for update button */
.migy-tab-data-styles~.update-button.loading {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}