.ac-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    font-family: 'Arial', sans-serif;
}

.ac-sidebar {
    flex: 1;
    min-width: 300px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.ac-preview-area {
    flex: 2;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ac-control-group {
    margin-bottom: 20px;
}

.ac-control-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 14px;
}

/* Inputs */
#ac-input-text, select, textarea, #ac-user-name, #ac-user-email {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
	margin: 10px 0px;
}

/* Swatches */
.ac-swatch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 10px;
}

.ac-wall-swatch {
    width: 60px;
    height: 60px;
    background-size: cover;
    border: 2px solid transparent;
    cursor: pointer;
    border-radius: 4px;
}

.ac-wall-swatch.selected {
    border-color: #0073aa;
    box-shadow: 0 0 5px rgba(0,115,170,0.5);
}

/* Color Circles */
.ac-color-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ac-color-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: transform 0.2s;
}

.ac-color-btn:hover, .ac-color-btn.selected {
    transform: scale(1.2);
    border-color: #333;
}

/* Chips for Sizes */
.ac-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ac-chip {
    padding: 5px 12px;
    background: #eee;
    border: 1px solid #ddd;
    border-radius: 15px;
    cursor: pointer;
    font-size: 13px;
}

.ac-chip.selected {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Toggle Buttons */
.ac-toggle-group {
    display: flex;
}
.ac-btn-opt {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    background: #ababab;
    cursor: pointer;
}
.ac-btn-opt.active {
    background: #0073aa;
    color: white;
}


/* Inquiry Form */
#ac-inquiry-form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .ac-wrapper { flex-direction: column; }
}
/* ... Keep existing Sidebar styles ... */

/* Scaler container to handle shrinking */
#ac-text-scaler {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%; /* Leave some padding */
    height: 90%;
    /* Key for scaling to work */
    max-width: 100%;
    max-height: 100%;
}



/* Summary Box inside Printable Area */
.ac-summary-box {
    background: #fdfdfd;
    border-top: 1px dashed #ccc;
    padding-top: 10px;
}
.ac-summary-box h4 { margin: 0 0 5px 0; }
.ac-summary-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 12px;
    color: #555;
}
.ac-summary-box li { margin: 0; }
.ac-summary-box li strong { color: #333; }
/* ... Keep your existing Sidebar styles ... */

/* UTILITY CLASSES */
.ac-hidden {
    display: none !important;
}

/* PREVIEW AREA */
.ac-preview-area {
    flex: 2;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ac-printable-area {
    background: #fff;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.ac-preview-window {
    width: 100%;
    height: 400px;
    background-color: #ccc;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}


.ac-address-display {
    font-size: 100px; 
    font-weight: bold;
    display: flex;
    /* Default Horizontal */
    flex-direction: row; 
    gap: 10px; /* Space between letters horizontally */
    
    transition: all 0.2s ease;
    line-height: 1;
    align-items: center;
    justify-content: center;
}

/* Ensure spans behave nicely */
.ac-address-display span {
    display: block; /* Allows transforms/flex to work well */
    min-width: 0.2em; /* Ensures spaces have width */
}

/* VERTICAL ORIENTATION FIXES */
.ac-address-display.is-vertical {
    flex-direction: column !important;
    gap: 0px !important; /* Tighten gap for vertical */
}

/* Specific adjustment for vertical stacking line-height */
.ac-address-display.is-vertical span {
    line-height: 0.85; /* Bring stacked numbers closer together */
    margin-bottom: 5px; /* Optional manual spacing */
}

/* 3D TEXT ENHANCEMENTS */
.ac-address-display {
    /* Existing properties... */
    font-size: 100px;
    font-weight: bold;
    display: flex;
    flex-direction: row;
    gap: 15px;
    line-height: 1;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    
    /* NEW: Metallic/Plastic Sheen */
    /* This creates a subtle gradient on the text itself */
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 50%, rgba(0,0,0,0.1) 100%);
    background-size: 100%;
    -webkit-background-clip: text;
    background-clip: text;
    
    /* Note: text-fill-color is usually needed for gradients, 
       but for dynamic colors set via JS, we rely on the JS color + text-shadow.
       The property below ensures the JS color applies correctly. */
    -webkit-text-fill-color: currentColor; 
}

/* Ensure spans inherit the 3D look correctly */
.ac-address-display span {
    display: block;
    min-width: 0.2em;
    /* This ensures the gradient overlay stays fixed on the letter */
    background-attachment: fixed; 
}

/* SUMMARY BOX */
.ac-summary-box {
    background: #fdfdfd;
    border-top: 1px dashed #ccc;
    padding-top: 10px;
}
.ac-summary-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 16px;
    color: #555;
    flex-direction: column;
}
.ac-summary-box ul li{
    list-style: none;
}
#ac-btn-download{
	padding: 10px 20px;
}
#ac-btn-inquiry-toggle{
	padding: 10px 20px;
}
#ac-btn-send{
	padding: 10px 20px;
}
/* --- CUSTOM TOOLTIPS --- */

/* Base positioning for elements with tooltips */
[data-tooltip] {
    position: relative;
}

/* The Tooltip Body (Text) */
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%; /* Position above element */
    left: 50%;
    transform: translateX(-50%) translateY(0); /* Start position */
    
    background: #1e293b; /* Dark Slate Blue */
    color: #fff;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Let mouse pass through */
    z-index: 100;
    
    /* Fast, smooth transition */
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* The Tooltip Arrow (Triangle) */
[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    
    border: 6px solid transparent;
    border-top-color: #1e293b;
    
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 99;
    margin-bottom: -10px; /* Offset to touch the element */
    
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* HOVER STATE (Instant Appear with Slide Up) */
[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px); /* Slide Up */
}

[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px); /* Slide Up */
}