/* ==========================================================
   CLASSIC DECORATION — COMPREHENSIVE LIVE INLINE CMS & PENCIL ICONS
   ========================================================== */

/* Top Floating Admin Bar */
.cms-admin-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    background: #14241E;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 999999;
    font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    border-bottom: 2px solid #B9935A;
}

.cms-admin-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cms-admin-badge {
    background: #8C3B4B;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.cms-admin-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cms-bar-btn {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.cms-bar-btn:hover {
    background: #B9935A;
    color: #14241E;
}

.cms-bar-btn-logout {
    background: rgba(201, 59, 43, 0.25);
    color: #FFB4B4;
}

.cms-bar-btn-logout:hover {
    background: #C93B2B;
    color: #ffffff;
}

/* Offset body when admin bar is present */
body.has-cms-admin-bar {
    padding-top: 44px !important;
}

/* Editable Container Highlighting */
.cms-editable-wrapper {
    position: relative !important;
    transition: outline 0.2s ease, background-color 0.2s ease;
}

.cms-editable-wrapper:hover {
    outline: 2px dashed #B9935A !important;
    outline-offset: 3px;
}

/* Floating Pencil Edit Button */
.cms-pencil-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 28px;
    height: 28px;
    background: #8C3B4B;
    color: #ffffff !important;
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
    z-index: 10000;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0.88;
    text-decoration: none;
    padding: 0;
    margin: 0;
    line-height: 1;
}

.cms-pencil-btn:hover {
    background: #B9935A;
    color: #14241E !important;
    transform: scale(1.22);
    opacity: 1;
}

/* Specific styling for small inline elements like trust badges, buttons, menu items */
.cms-pencil-sm {
    width: 22px;
    height: 22px;
    font-size: 10px;
    top: -6px;
    right: -6px;
}

/* Modal Popover Editor */
.cms-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(20, 36, 30, 0.72);
    backdrop-filter: blur(4px);
    z-index: 10000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Work Sans', sans-serif;
}

.cms-modal-box {
    background: #ffffff;
    border-radius: 14px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    border: 1px solid #E8E2D2;
    animation: cmsPop 0.25s ease;
}

@keyframes cmsPop {
    from {
        transform: scale(0.92);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.cms-modal-header {
    background: #1E362C;
    color: #ffffff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}

.cms-modal-header h4 {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Fraunces', serif;
}

.cms-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.cms-modal-close:hover {
    color: #ffffff;
}

.cms-modal-body {
    padding: 24px;
}

.cms-modal-footer {
    padding: 14px 24px;
    background: #FBF8F2;
    border-top: 1px solid #E8E2D2;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
}

/* Show and style all Product Prices properly across all pages */
.product-info .product-price,
.modal-product-info .product-price,
.product-price {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-family: 'Fraunces', 'Work Sans', sans-serif !important;
    font-size: 1.18rem !important;
    font-weight: 700 !important;
    color: #8C3B4B !important;
    margin-top: 6px !important;
    margin-bottom: 8px !important;
}

/* Hide price specifically in Our Floral Collection section on Home Page */
.ltn__product-tab-area .product-price {
    display: none !important;
}

.cms-form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1E362C;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cms-form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #E4DAC4;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #FAFAFA;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.cms-form-control:focus {
    outline: none;
    border-color: #8C3B4B;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(140, 59, 75, 0.12);
}

.cms-image-dropzone {
    border: 2px dashed #B9935A;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    background: #FFFDF9;
    transition: all 0.2s ease;
    margin-bottom: 12px;
}

.cms-image-dropzone:hover {
    background: #F8F1E4;
}

.cms-image-preview {
    max-height: 160px;
    width: 100%;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 12px;
    border: 1px solid #E4DAC4;
}