.single-product .product_meta {
    position: relative;
}
.aivc-open-composer-wrap {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 100;
}
#aivc_composer_popup {
    display: none;
    position: fixed;
    top: 0; right: 0;
    width: 100%; height: 100%;
    background: #fff;
    z-index: 9999;
    overflow: auto;
    box-shadow: -2px 0 12px rgba(0,0,0,0.1);
}
#aivc_close_composer {
    position: absolute;
    top: 12px; left: 12px;
}
.aivc-frontend-composer {
    display: flex;
    gap: 0;
    padding: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    margin: 0 auto;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    border: 1px solid #f0f0f0;
    overflow: hidden;
}

.aivc-frontend-left, .aivc-frontend-right {
    min-width: 320px;
    background: #fff;
    padding: 23px;
}

.aivc-frontend-right {
    border-left: 1px solid #f0f0f0;
    padding: 32px 0px;
        width: 422px;
    flex-direction: column;
    align-items: center;
    background: #F8F9FA;    
}
.aivc-frontend-left {
    width: 572px;
}
.main-avic-frontend-desc {
    border: 2px solid #919EAB33;
        padding: 24px;
        border-radius: 8px;
}

.aivc-frontend-card {
    border-radius: 16px;
    padding: 0;
    box-shadow: none;
}

.aivc-frontend-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    background: #919EAB14;
    border-radius: 8px;
    padding: 8px 8px;
}

.aivc-frontend-card h2 {
    font-size: 18px;
    font-family: Segoe UI;
    font-weight: 600;
    margin-bottom: 27px;
}

img.ic_question {
    width: 16px;
}

.aivc-frontend-title h2 {
    margin: 0;
    font-size: 1.2em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.aivc-frontend-title {
    display: flex;
    align-items: self-end;
}
.aivc-frontend-pill {
    color: #fff;
    border-radius: 16px;
    padding: 2px 12px;
    font-size: 0.95em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.aivc-frontend-select {
    margin-left: 0px;
    padding: 4px 4px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: #919EAB33;
    width: 37%;
    height: 27px;
}

.aivc-frontend-add {
    background: none;
    color: #000;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
}

.aivc-frontend-label {
    font-family: Segoe UI;
    font-size: 12px;
    display: block;
    margin-top: 18px;
    margin-bottom: 8px;
    font-weight: 500;
}

.aivc-frontend-textarea {
    width: 100%;
    min-height: 126px;
    font-size: 12px;
    margin-bottom: 16px;
    resize: vertical;
    border: none;
}
button#aivc_frontend_save_post {
    background: linear-gradient(108.57deg, #FF9F7D 4.02%, #FF8469 55.99%, #F26343 106%);
    color: #ffff;
    font-size: 12px;
    border: none;
}
a.button.actions {
    background: #637381;
    text-decoration: none;
    text-align: center;
    color: #ffff;
    font-size: 12px;
    align-items: center;
    padding: 8px 0px;
}
.aivc-frontend-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 0px;
}

.aivc-frontend-iconbtn {
    background: #fff;
    border: none;
    border-radius: 8px;
    padding: 0px 0px;
    cursor: pointer;
    font-size: 1.1em;
    transition: border-color 0.2s;
    width: 28px;
    height: 28px;
}
.aivc-frontend-iconbtn:hover {
    border-color: #e1306c;
}

.aivc-frontend-ai {
    background: #fff0f5;
    color: #e1306c;
    border: 1px solid #e1306c;
    border-radius: 2px;
    padding: 2px 16px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
    display: flex;
    align-items: center;

}
.aivc-frontend-ai:hover {
    background: #ffe4ee;
}

.aivc-frontend-help {
    font-size: 0.92em;
    color: #888;
    margin-top: 4px;
}

.aivc-frontend-acc {
    margin-top: 18px;
    margin-bottom: 8px;
    background: #fafbfc;
    border-radius: 12px;
    padding: 14px 18px;
    border: 1px solid #f0f0f0;
}

.aivc-frontend-acc summary {
    font-weight: 600;
    cursor: pointer;
    font-size: 1em;
}

.aivc-frontend-acc-body {
    margin-top: 10px;
}

.aivc-frontend-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.aivc-frontend-row:last-child {
    border-bottom: none;
}

.aivc-frontend-switch {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 10px;
}

.aivc-frontend-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.aivc-frontend-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0;
    right: 0; bottom: 0;
    background: #ccc;
    border-radius: 24px;
    transition: .4s;
}

.aivc-frontend-switch input:checked + .aivc-frontend-slider {
    background: #e1306c;
}

.aivc-frontend-slider:before {
    position: absolute;
    content: "";
    height: 8px;
    width: 8px;
    left: -7px;
    bottom: 1px;
    background: #fff;
    border-radius: 50%;
    transition: .4s;
}

.aivc-frontend-switch input:checked + .aivc-frontend-slider:before {
    transform: translateX(20px);
}

.aivc-frontend-actions {
    margin-top: 22px;
    display: flex;
    gap: 14px;
    justify-content: flex-end;
    padding-top: 111px;
}

.aivc-frontend-actions .button {
    font-size: 12px;
    min-width: 100px;
    border-radius: 8px;
    border: none;
    color: #ffff;
    background: #f66f51;
}

.aivc-frontend-phone {
    margin: 0 auto;
    max-width: 340px;
    width: 100%;
}
.aivc-frontend-phone {
  max-width: 400px;
  margin: auto;
}

.aivc-frontend-screen {
  position: relative;
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 9/16;
}

/* Top bar */
.aivc-frontend-topbar {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  z-index: 10;
}

.top-icon {
  font-size: 20px;
  cursor: pointer;
}

/* Right-side icons */
.aivc-frontend-reels-icons {
  position: absolute;
  right: 10px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  color: #fff;
}

.aivc-frontend-reels-icons .action {
    display: flex;
    flex-flow: column;
    gap:4px;
    align-items: center;
}
.aivc-frontend-reels-icons .action img {
    width: 23px;
}
.aivc-frontend-actions .action {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 14px;
}

.aivc-frontend-actions .dashicons {
  font-size: 22px;
  margin-bottom: 4px;
}

/* Bottom caption */
.aivc-frontend-caption {
  position: absolute;
  bottom: 50px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 10px;
  color: #fff;
  font-size: 14px;
}

.aivc-frontend-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ccc;
  flex-shrink: 0;
}

/* Music bar */
.aivc-frontend-music {
  position: absolute;
  bottom: 10px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 12px;
}

.aivc-frontend-phone-bezel {
    border-radius: 16px;
    padding: 0px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    width: 85%;
    margin: auto;
}

.aivc-frontend-screen {
    background: #fff;
    border-radius: 16px;
    min-height: 340px;
    position: relative;
    padding: 0%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.aivc-frontend-ig-badges {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-flow: column-reverse;
    position: absolute;
    bottom: 12%;
    right: 0;   
}

.aivc-frontend-ig-dot {
    background: #eee;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
}

.aivc-frontend-caption {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    position: absolute;
    left: 2%;
    right: 0%;
    bottom: 35px;
}

.aivc-frontend-avatar {
    width: 34px;
    height: 34px;
    background: #e1306c;
    border-radius: 50%;
    margin-right: 8px;
}

.aivc-frontend-captext {
    font-size: 12px;
    color: #fff;
    border-radius: 8px;
    padding: 10px 0px;
    flex: 1;
}

#aivc_frontend_preview_images_wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: auto;
}

#aivc_frontend_preview_images {
    width: 100%;
    aspect-ratio: 1/2;
    background: #f7f7f7;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#aivc_frontend_preview_dots {
    text-align: center;
    margin-top: 10px;
}

.aivc-frontend-slider-image-checkbox {
    margin-right: 4px;
}

@media (max-width: 900px) {
    .aivc-frontend-composer {
        flex-direction: column;
        gap: 0;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        border: none;
    }
    .aivc-frontend-left, .aivc-frontend-right {
        min-width: 0;
        padding: 18px 8px;
    }
    .aivc-frontend-right {
        border-left: none;
    }
}

.aivc-frontend-global-card {
    border: 2px solid #f6f7f7;
    border-radius: 8px;
    background: #fff;
    margin-top: 18px;
    margin-bottom: 18px;
    padding: 0;
}

.aivc-frontend-global-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px 8px 14px;
    border-bottom: 1px solid #f0f0f0;
}

.aivc-frontend-globa.l-desc {
    font-size: 10px;
        color: #1C252E80;
    font-family: Segoe UI;
    font-weight: 400;
}

.aivc-frontend-global-title {
    font-weight: 600;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: Segoe UI;
}

.aivc-frontend-global-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 10px;
}

.aivc-frontend-global-arrow {
    font-size: 1.2em;
    color: #888;
    margin-left: 8px;
    cursor: pointer;
    transition: transform 0.3s;
    display: inline-block;
}

.aivc-frontend-global-arrow.closed {
    transform: rotate(180deg);
}

.aivc-frontend-global-body {
    transition: max-height 0.3s, opacity 0.3s;
    overflow: hidden;
    max-height: 500px;
    opacity: 1;
}

.aivc-frontend-global-body.closed {
    max-height: 0;
    opacity: 0;
    padding: 0 !important;
}

.aivc-frontend-global-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 12px;
    font-family: Segoe UI;
    font-weight: 400;   
}

.aivc-frontend-global-desc {
    font-size: 10px;
    color: #6B7280;
    margin-top: 6px;
}

.aivc-frontend-switch {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 10px;
}

.aivc-frontend-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.aivc-frontend-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0;
    right: 0; bottom: 0;
    background: #ccc;
    border-radius: 22px;
    transition: .4s;
}

.aivc-frontend-switch input:checked + .aivc-frontend-slider {
    background: #22c55e;
}

.aivc-frontend-slider:before {
    position: absolute;
    content: "";
    height: 8px;
    width: 8px;
    left: -7px;
    bottom: 1px;
    background: #fff;
    border-radius: 50%;
    transition: .4s;
}
label.aivc-frontend-switch {
    margin: 0;
}
div#aivcFrontendGlobalBody {
    padding: 18px;
}

.aivc-frontend-switch input:checked + .aivc-frontend-slider:before {
    transform: translateX(16px);
}

.aivc-frontend-help {
    font-size: 0.95em;
    color: #888;
    margin-left: 4px;
    cursor: pointer;
}
/* Header layout */
.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    border-bottom: 1px solid #B5B5B580;
    padding-bottom: 12px;
    padding: 4px 4px;
    padding-right: 14px;
}

/* Preview badge */
.preview-heading {
    display: inline-block;
    color: #1C252E;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    padding: 8px 16px;
    margin: 0;
    font-family: Segoe UI;
}

/* Right side device icons */
.preview-icons {
  display: flex;
  gap: 0px;
}

.device-icon {
  display: inline-flex;
}

/* Social icons row */
.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    padding: 0px 16px;
    margin-bottom: 23px;
}

.social-icons a img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

button#aivc_frontend_add_emoji, button#aivc_frontend_add_hashtags, button#aivc_frontend_pick_media {
    border-right: 1px solid #f2f2f2;
    border-radius: 0px;
}