/* ========== THEME SETTINGS META BOX SPECIFIC STYLES ========== */
.theme-settings .afc-panel {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.theme-settings .afc-panel-div {
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.theme-settings .afc-panel-div:hover {
    background: #f0f6fc;
    border-color: #c5d9ed;
}

/* ========== CONTROL ROW ========== */
.theme-settings .control-row {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.theme-settings .control-row label {
    width: 235px;
    min-width: 180px;
    margin: 0;
    padding: 8px 0;
    text-align: right;
    font-weight: 600;
    color: #1d2327;
    font-size: 14px;
    flex-shrink: 0;
}

/* ========== POSITION CONTROLS ========== */
.theme-settings .position-controls {
    flex: 1;
    display: flex;
    gap: 10px;
    align-items: center;
}

.theme-settings .position-controls select {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    color: #2c3338;
    line-height: 1.5;
    transition: all 0.2s ease;
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><path d="M5 8l5 5 5-5z" fill="%238c8f94"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 35px;
}

.theme-settings .position-controls select:hover {
    border-color: #787c82;
}

.theme-settings .position-controls select:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
    outline: 2px solid transparent;
}

/* ========== RADIO BUTTON GROUP ========== */
.theme-settings .radio-button-group {
    flex: 1;
    display: flex;
    gap: 20px;
    align-items: center;
}

.theme-settings .radio-option {
	background:white;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 10px !important;
    border-radius: 4px;
	border: 1px solid #8c8f94;
    transition: all 0.2s ease;
	
}

.theme-settings .radio-option:hover {
   /* background: #f0f6fc;*/
}

.theme-settings .radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    position: relative;
    cursor: pointer;
    /* Hide default */
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid #8c8f94;
    border-radius: 50%;
    outline: none;
    transition: all 0.2s ease;
}

.theme-settings .radio-option input[type="radio"]:checked {
    border-color: #007cba;
    background-color: #007cba;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='12' height='12'%3E%3Ccircle cx='12' cy='12' r='4' fill='white'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.theme-settings .radio-option input[type="radio"]:hover {
    border-color: #007cba;
}

.theme-settings .radio-label {
    font-size: 14px;
    color: #2c3338;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
}



/* ========== MULTI-LINE RADIO BUTTON GROUP ========== */

.theme-settings .radio-button-group-devices {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.theme-settings .radio-option-devices {
    background: white;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 5px !important;
    border-radius: 4px;
    border: 1px solid #dcdcde;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.theme-settings .radio-option-devices:hover {
   /* border-color: #007cba;
    background: #f0f6fc;*/
}

.theme-settings .radio-option-devices input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    position: relative;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid #8c8f94;
    border-radius: 50%;
    outline: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.theme-settings .radio-option-devices input[type="radio"]:checked {
    border-color: #007cba;
    background-color: #007cba;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='12' height='12'%3E%3Ccircle cx='12' cy='12' r='4' fill='white'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.theme-settings .radio-option-devices input[type="radio"]:hover {
    border-color: #007cba;
}

.theme-settings .radio-option-devices .radio-label {
    font-size: 14px;
    color: #2c3338;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
    flex: 1;
    /* Center align text vertically */
    display: flex;
    align-items: center;
    height: 100%;
    min-height: 18px; /* Match radio button height */
}

/* Optional: Add selected state */
.theme-settings .radio-option-devices input[type="radio"]:checked + .radio-label {
    color: #007cba;
    font-weight: 600;
}

/* Responsive adjustments */
@media screen and (max-width: 782px) {
    .theme-settings .control-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .theme-settings .control-row label {
        width: 100%;
        text-align: left;
        min-width: auto;
        padding: 0;
    }
    
    .theme-settings .radio-button-group {
        width: 100%;
    }
    
    .theme-settings .radio-option-devices {
        padding: 10px 12px;
    }
}

@media screen and (max-width: 480px) {
    .theme-settings .radio-option-devices {
        padding: 8px 10px;
    }
    
    .theme-settings .radio-option-devices .radio-label {
        font-size: 13px;
    }
}
/* ========== WIDTH CONTROL ========== */
.theme-settings .width-control {
    flex: 1;
    display: flex;
    gap: 10px;
    align-items: center;
}

.theme-settings .width-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    transition: all 0.2s ease;
    min-width: 120px;
}

.theme-settings .width-control select {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    color: #2c3338;
    line-height: 1.5;
    transition: all 0.2s ease;
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><path d="M5 8l5 5 5-5z" fill="%238c8f94"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 35px;
}

.theme-settings .width-input:focus,
.theme-settings .width-control select:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
    outline: 2px solid transparent;
}

/* ========== COLOR CONTROL ========== */
.theme-settings .color-control {
    flex: 1;
}

.theme-settings .color-picker-afc {
    width: 100%;
    max-width: 200px;
    padding: 10px 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    transition: all 0.2s ease;
}

.theme-settings .color-picker-afc:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
    outline: 2px solid transparent;
}

/* ========== SPACING GRID (Margin & Border) ========== */
.theme-settings .spacing-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.theme-settings .spacing-input {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: white;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    padding: 12px;
    transition: all 0.2s ease;
}

.theme-settings .spacing-input:hover {
    border-color: #8c8f94;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.theme-settings .spacing-label {
    font-size: 12px;
    font-weight: 600;
    color: #646970;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.theme-settings .spacing-input input[type="number"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    transition: all 0.2s ease;
}

.theme-settings .spacing-input input[type="number"]:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
    outline: 2px solid transparent;
}

.theme-settings .spacing-unit {
    font-size: 12px;
    color: #646970;
    text-align: center;
    font-weight: 500;
}

/* ========== BORDER PROPERTIES ========== */
.theme-settings .border-properties {
    flex: 1;
    display: flex;
    gap: 10px;
    align-items: center;
}

.theme-settings .border-properties select {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    color: #2c3338;
    line-height: 1.5;
    transition: all 0.2s ease;
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><path d="M5 8l5 5 5-5z" fill="%238c8f94"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 35px;
}

.theme-settings .border-properties .color-picker-afc {
    width: 120px !important;
    height: 38px;
    min-width: 120px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
}

.theme-settings .border-properties select:focus,
.theme-settings .border-properties .color-picker-afc:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
    outline: 2px solid transparent;
}

/* ========== ANIMATION ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.theme-settings .afc-panel-div {
    animation: fadeIn 0.3s ease;
}

/* ========== RESPONSIVE DESIGN ========== */
@media screen and (max-width: 1200px) {
    .theme-settings .border-properties {
        flex-wrap: wrap;
    }
    
    .theme-settings .border-properties select,
    .theme-settings .border-properties .color-picker-afc {
        flex: 1 1 calc(33.333% - 10px);
        min-width: 140px;
    }
}

@media screen and (max-width: 782px) {
    .theme-settings .afc-panel {
        padding: 15px;
    }
    
    .theme-settings .afc-panel-div {
        padding: 15px;
    }
    
    .theme-settings .control-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .theme-settings .control-row label {
        width: 100%;
        text-align: left;
        min-width: auto;
        padding: 0;
    }
    
    .theme-settings .position-controls,
    .theme-settings .width-control,
    .theme-settings .border-properties {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }
    
    .theme-settings .position-controls select,
    .theme-settings .width-control select,
    .theme-settings .width-input,
    .theme-settings .border-properties select,
    .theme-settings .border-properties .color-picker-afc {
        width: 100% !important;
    }
    
    .theme-settings .radio-button-group {
        width: 100%;
        justify-content: flex-start;
    }
    
    .theme-settings .spacing-grid {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }
    
    .theme-settings .color-control {
        width: 100%;
    }
    
    .theme-settings .color-picker-afc {
        max-width: 100%;
    }
}

@media screen and (max-width: 600px) {
    .theme-settings .spacing-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .theme-settings .afc-panel {
        padding: 10px;
    }
    
    .theme-settings .afc-panel-div {
        padding: 12px;
    }
    
    .theme-settings .radio-button-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
/* ========== END THEME SETTINGS META BOX SPECIFIC STYLES ========== */


//* ========== META BOX HEADER STYLING FOR ALL AFC BOXES ========== */
/* Apply to all AFC meta boxes */
/* ========== AFC META BOXES STYLING ========== */
#advanced_floating_content_design_layout_meta_box.postbox,
#advanced_floating_content_meta_box.postbox,
#advanced_floating_content_premium_meta_box.postbox
 {
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    margin-bottom: 6px;
    background: white;
}

/* Closed state */
#advanced_floating_content_design_layout_meta_box.postbox.closed,
#advanced_floating_content_meta_box.postbox.closed,
#advanced_floating_content_premium_meta_box.postbox.closed
 {
    border-bottom: 1px solid #ccd0d4;
    border-radius: 4px;
    margin-bottom: 6px;
    background: white;
}

/* Header styling */
#advanced_floating_content_design_layout_meta_box .postbox-header,
#advanced_floating_content_meta_box .postbox-header,
#advanced_floating_content_premium_meta_box .postbox-header
 {
    background: #f8f9fa;
    border-bottom: 1px solid #e2e4e7;
    padding: 0;
    border-radius: 4px 4px 0 0;
}

/* Title styling */
#advanced_floating_content_design_layout_meta_box .hndle,
#advanced_floating_content_meta_box .hndle,
#advanced_floating_content_premium_meta_box .hndle
 {
    padding: 12px 15px !important;
    font-size: 14px;
    font-weight: 700 !important;
    color: #1d2327;
    cursor: pointer;
    margin: 0;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    letter-spacing: 0.2px;
}

/* Hover effect on title */
#advanced_floating_content_design_layout_meta_box .hndle:hover,
#advanced_floating_content_meta_box .hndle:hover,
#advanced_floating_content_premium_meta_box .hndle:hover {
    color: #007cba;
}

/* Handle actions */
#advanced_floating_content_design_layout_meta_box .handle-actions,
#advanced_floating_content_meta_box .handle-actions,
#advanced_floating_content_premium_meta_box .handle-actions
 {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: 5px;
    padding: 2px 0;
}

/* Move up/down buttons */
#advanced_floating_content_design_layout_meta_box .handle-order-higher,
#advanced_floating_content_meta_box .handle-order-higher,
#advanced_floating_content_premium_meta_box .handle-order-higher,
#advanced_floating_content_design_layout_meta_box .handle-order-lower,
#advanced_floating_content_meta_box .handle-order-lower,
#advanced_floating_content_premium_meta_box .handle-order-lower
 {
    background: transparent;
    border: 1px solid #dcdcde;
    border-radius: 2px;
    padding: 3px;
    cursor: pointer;
    color: #646970;
    width: 29px;
    height: 29px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

/* Move up/down button hover */
#advanced_floating_content_design_layout_meta_box .handle-order-higher:hover,
#advanced_floating_content_meta_box .handle-order-higher:hover,
#advanced_floating_content_premium_meta_box .handle-order-higher:hover,
#advanced_floating_content_design_layout_meta_box .handle-order-lower:hover,
#advanced_floating_content_meta_box .handle-order-lower:hover,
#advanced_floating_content_premium_meta_box .handle-order-lower:hover
 {
    border-color: #007cba;
    color: #007cba;
    background: #f0f6fc;
}

/* Toggle button (expand/collapse) */
#advanced_floating_content_design_layout_meta_box .handlediv,
#advanced_floating_content_meta_box .handlediv,
#advanced_floating_content_premium_meta_box .handlediv
 {
    background: transparent;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: #646970;
    margin-left: 2px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#advanced_floating_content_design_layout_meta_box .handlediv:hover,
#advanced_floating_content_meta_box .handlediv:hover,
#advanced_floating_content_premium_meta_box .handlediv:hover,
 {
    color: #007cba;
    background: #f0f6fc;
    border-radius: 3px;
}

/* Toggle indicator arrow */
#advanced_floating_content_design_layout_meta_box .toggle-indicator,
#advanced_floating_content_meta_box .toggle-indicator,
#advanced_floating_content_premium_meta_box .toggle-indicator,
 {
    display: block;
    width: 16px;
    height: 16px;
    position: relative;
}

#advanced_floating_content_design_layout_meta_box .toggle-indicator:before,
#advanced_floating_content_meta_box .toggle-indicator:before,
#advanced_floating_content_premium_meta_box .toggle-indicator:before
 {
    content: "▼";
    font-size: 11px;
    color: currentColor;
}

/* Closed state arrow */
#advanced_floating_content_design_layout_meta_box.postbox.closed .toggle-indicator:before,
#advanced_floating_content_meta_box.postbox.closed .toggle-indicator:before,
#advanced_floating_content_premium_meta_box.postbox.closed .toggle-indicator:before
 {
    content: "▶";
}

/* When meta box is open */
#advanced_floating_content_design_layout_meta_box.postbox:not(.closed),
#advanced_floating_content_meta_box.postbox:not(.closed),
#advanced_floating_content_premium_meta_box.postbox:not(.closed)
 {
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* When meta box is closed - hide content */
#advanced_floating_content_design_layout_meta_box.postbox.closed .inside,
#advanced_floating_content_meta_box.postbox.closed .inside,
#advanced_floating_content_premium_meta_box.postbox.closed .inside {
    display: none;
}

/* Remove default WordPress arrow indicators */
#advanced_floating_content_design_layout_meta_box .toggle-indicator:after,
#advanced_floating_content_meta_box .toggle-indicator:after,
#advanced_floating_content_premium_meta_box .toggle-indicator:after
 {
    display: none !important;
}

/* Remove focus outlines from toggle button */
#advanced_floating_content_design_layout_meta_box .handlediv:focus,
#advanced_floating_content_meta_box .handlediv:focus,
#advanced_floating_content_premium_meta_box .handlediv:focus {
    outline: none;
    box-shadow: none;
}

/* Remove focus from the toggle indicator span */
#advanced_floating_content_design_layout_meta_box .toggle-indicator:focus,
#advanced_floating_content_meta_box .toggle-indicator:focus,
#advanced_floating_content_premium_meta_box .toggle-indicator:focus {
    outline: none;
}

/* If it's a box-shadow issue */
#advanced_floating_content_design_layout_meta_box .handlediv,
#advanced_floating_content_meta_box .handlediv,
#advanced_floating_content_premium_meta_box .handlediv {
    box-shadow: none !important;
}

/* If it's border-radius causing round corners */
#advanced_floating_content_design_layout_meta_box .toggle-indicator,
#advanced_floating_content_meta_box .toggle-indicator,
#advanced_floating_content_premium_meta_box .toggle-indicator  {
    border-radius: 0 !important;
}

/* If it's the button itself getting a border */
#advanced_floating_content_design_layout_meta_box .handlediv,
#advanced_floating_content_meta_box .handlediv,
#advanced_floating_content_premium_meta_box .handlediv {
    border: none !important;
}

/* Alternative: Target the specific issue with :focus-visible */
#advanced_floating_content_design_layout_meta_box .handlediv:focus-visible,
#advanced_floating_content_meta_box .handlediv:focus-visible,
#advanced_floating_content_premium_meta_box .handlediv:focus-visible
 {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

/* Smooth scrolling for containers */
#poststuff,
.edit-post-layout__content,
#wpbody-content,
.wrap {
    scroll-behavior: smooth;
}


/* AFC Admin Notice Styles */
.afc_banner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #f0f6fc 0%, #e8f2fc 100%);
    border-left: 4px solid #007cba;
    border-radius: 4px;
    margin: 15px 0;
    position: relative;
}

.afc_banner .button_div {
    flex-shrink: 0;
}

.afc_banner .button {
    background: linear-gradient(135deg, #007cba, #005a87);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 124, 186, 0.3);
}

.afc_banner .button:hover {
    background: linear-gradient(135deg, #005a87, #004670);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 124, 186, 0.4);
    color: white;
}

.afc_banner .text {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: #1d2327;
}

.afc_banner .text strong a {
    color: #007cba;
    text-decoration: none;
    font-weight: 700;
}

.afc_banner .text strong a:hover {
    text-decoration: underline;
}

.afc_banner .text span {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #646970;
    font-style: italic;
}

.afc_banner .btn_notification {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 12px;
    background: #f0f0f1;
    color: #3c434a;
    text-decoration: none;
    border-radius: 3px;
    font-size: 13px;
    transition: all 0.2s ease;
    border: 1px solid #dcdcde;
}

.afc_banner .btn_notification:hover {
    background: #e0e0e1;
    color: #2271b1;
    text-decoration: none;
}

/* Make notice less intrusive */
.settings-error.notice.is-dismissible {
    position: relative;
    margin: 15px 20px 15px 2px;
    border-left-color: #007cba;
}

/* Responsive */
@media screen and (max-width: 782px) {
    .afc_banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .afc_banner .button_div {
        width: 100%;
    }
    
    .afc_banner .button {
        width: 100%;
        text-align: center;
    }
}
.afc_banner ul {
    margin: 8px 0 !important;
    padding-left: 20px !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
}

.afc_banner ul li {
    margin-bottom: 4px !important;
    position: relative !important;
}

.afc_banner ul li:before {
    content: "✓";
    color: #007cba;
    font-weight: bold;
    position: absolute;
    left: -15px;
}

/* ========== PRO TEASER STYLES ========== */
.afc-pro-teaser {
    background: linear-gradient(135deg, #f0f6fc 0%, #e8f2fc 100%);
    border: 1px solid #c5d9ed;
    border-radius: 8px;
    padding: 25px;
    margin: 25px 0;
    position: relative;
    overflow: hidden;
}

.afc-pro-teaser:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007cba, #00a0d2);
}

.afc-pro-teaser h3 {
    margin: 0 0 15px 0;
    color: #1d2327;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.afc-pro-teaser h3 .dashicons-star-filled {
    color: #ffb900;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.pro-inline-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffb74d, #ff9800);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 10px;
    vertical-align: middle;
    position: relative;
    top: -2px;
    box-shadow: 0 2px 4px rgba(255, 152, 0, 0.3);
    animation: gentle-pulse 3s infinite ease-in-out;
}

@keyframes gentle-pulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 2px 4px rgba(255, 152, 0, 0.3);
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 3px 6px rgba(255, 152, 0, 0.4);
    }
}

/* Optional: Add a subtle glow on hover */
.pro-inline-badge:hover {
    animation: none;
    transform: scale(1.08);
    box-shadow: 0 4px 8px rgba(255, 152, 0, 0.5);
}

/* For better mobile spacing */
@media screen and (max-width: 782px) {
    .pro-inline-badge {
        display: block;
        margin: 8px 0 0 0;
        width: fit-content;
        top: 0;
    }
    
    h3 {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

.afc-pro-teaser > p {
    margin: 0 0 20px 0;
    font-size: 15px;
    color: #3c434a;
    line-height: 1.5;
}

/* Features Grid */
.pro-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 0 0 25px 0;
}

.pro-feature {
    background: white;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.pro-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #007cba;
}

.pro-feature h4 {
    margin: 0 0 8px 0;
    color: #007cba;
    font-size: 16px;
    font-weight: 600;
}

.pro-feature p {
    margin: 0;
    font-size: 14px;
    color: #646970;
    line-height: 1.5;
}

/* PRO Badge */
.pro-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ffb74d, #ff9800);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* CTA Section */
.pro-teaser-cta {
    text-align: center;
    padding-top: 20px;
    border-top: 1px dashed #c5d9ed;
}

.pro-teaser-cta .button-hero {
    background: linear-gradient(135deg, #007cba, #005a87);
    border: none;
    color: white;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    height: auto;
    line-height: 1.5;
    box-shadow: 0 4px 10px rgba(0, 124, 186, 0.3);
    transition: all 0.3s ease;
}

.pro-teaser-cta .button-hero:hover {
    background: linear-gradient(135deg, #005a87, #004670);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 124, 186, 0.4);
    color: white;
}

.pro-teaser-cta .button-hero .dashicons {
    vertical-align: middle;
    margin-right: 8px;
    font-size: 20px;
}

.pro-teaser-note {
    margin: 15px 0 0 0;
    font-size: 13px;
    color: #8c8f94;
    font-style: italic;
}

/* Responsive */
@media screen and (max-width: 782px) {
    .pro-features-grid {
        grid-template-columns: 1fr;
    }
    
    .afc-pro-teaser {
        padding: 20px;
        margin: 20px 0;
    }
    
    .pro-teaser-cta .button-hero {
        padding: 12px 20px;
        font-size: 15px;
        display: block;
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .afc-pro-teaser {
        padding: 15px;
    }
    
    .afc-pro-teaser h3 {
        font-size: 18px;
    }
}



/* ========== PREMIUM SCREENSHOTS ========== */
.afc-premium-screenshots {
    margin: 20px 0;
}

/* Thumbnail grid */
.screenshot-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.thumbnail-item {
    position: relative;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.thumbnail-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #007cba;
}

.thumbnail-item img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    display: block;
    padding: 10px;
    background: white;
}

.thumbnail-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 124, 186, 0.9);
    color: white;
    padding: 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thumbnail-item:hover .thumbnail-overlay {
    opacity: 1;
}

/* Lightbox */
.afc-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.afc-lightbox.active {
    display: block;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Lightbox image */
.lightbox-image-container {
    max-height: 70vh;
    overflow-y: auto;
    text-align: center;
    padding: 20px;
}

.lightbox-link {
    display: inline-block;
    max-width: 100%;
}

.lightbox-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Navigation buttons */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    color: #007cba;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav:hover {
    background: #007cba;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

/* Close button */
.lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: #d63638;
    transform: scale(1.1);
}

/* Counter */
.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Responsive */
@media screen and (max-width: 782px) {
    .screenshot-thumbnails {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lightbox-content {
        width: 95%;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media screen and (max-width: 480px) {
    .screenshot-thumbnails {
        grid-template-columns: 1fr;
    }
    
    .thumbnail-item img {
        height: 120px;
    }
    
    .lightbox-nav {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .lightbox-close {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}

.row-actions .afc_pro a.afc-pro-link {
    color: #00a32a !important;
    font-weight: 700 !important;
}

.row-actions .afc_pro a.afc-pro-link:hover {
    color: #008a20 !important;
}