/* Plaque Customizer Frontend Styles */

/* Font Loading and Fallbacks */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Open+Sans:wght@300;400;500;600;700&family=Lato:wght@300;400;700&family=Roboto:wght@300;400;500;700&family=Poppins:wght@300;400;500;600;700&family=Nunito:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&family=Source+Sans+Pro:wght@300;400;600;700&family=Raleway:wght@300;400;500;600;700&family=Ubuntu:wght@300;400;500;700&family=Playfair+Display:wght@400;500;600;700&family=Merriweather:wght@300;400;700&family=PT+Sans:wght@400;700&family=PT+Serif:wght@400;700&family=Oswald:wght@300;400;500;600;700&family=Dancing+Script:wght@400;500;600;700&family=Pacifico&family=Lobster&family=Bebas+Neue&family=Fjalla+One&family=Anton&family=Righteous&family=Orbitron:wght@400;500;600;700&family=Exo+2:wght@300;400;500;600;700&family=Titillium+Web:wght@300;400;600;700&family=Crimson+Text:wght@400;600;700&family=Libre+Baskerville:wght@400;700&family=Work+Sans:wght@300;400;500;600;700&family=Quicksand:wght@300;400;500;600;700&family=Muli:wght@300;400;500;600;700&family=Fira+Sans:wght@300;400;500;600;700&family=Cabin:wght@400;500;600;700&family=Droid+Sans:wght@400;700&family=Droid+Serif:wght@400;700&family=Arimo:wght@400;700&family=Tinos:wght@400;700&family=Cousine:wght@400;700&family=Karla:wght@300;400;500;600;700&family=Inconsolata:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&family=Source+Code+Pro:wght@300;400;500;600;700&family=Fira+Code:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;500;600;700&display=swap');

/* Font fallbacks for better compatibility */
.plaque-customizer-section * {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

/* Cart Display Styling */
.woocommerce-cart .cart_item .variation dt,
.woocommerce-cart .cart_item .variation dd {
    font-size: 12px !important;
}

.woocommerce-cart .cart_item .variation dt {
    font-weight: bold !important;
    color: #333 !important;
}

.woocommerce-cart .cart_item .variation dd {
    font-weight: normal !important;
    color: #666 !important;
    margin-bottom: 8px;
}

/* CSS Reset for the customizer container */
.plaque-customizer-section {
    width: 100%;
    clear: both;
    overflow: hidden;
    margin: 30px 0;
}

.plaque-customizer-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    padding: 0;
    text-align: center;
}

#plaque-customizer-container,
#plaque-customizer-container * {
    box-sizing: border-box;
}

#plaque-customizer-container {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    clear: both;
    width: 100%;
    box-sizing: border-box;
}

.plaque-customizer-wrapper {
    display: flex;
    min-height: 600px;
    flex-wrap: wrap;
    gap: 0;
}

/* Main Content Area (75%) */
.plaque-main-content {
    flex: 0 0 75%;
    min-width: 0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Right Sidebar (25%) */
.plaque-right-sidebar {
    flex: 0 0 25%;
    min-width: 0;
    background: #f8f9fa;
    border-left: 1px solid #e9ecef;
    padding: 20px;
    overflow-y: auto;
    box-sizing: border-box;
}

/* Product Options Section (moved from left sidebar) */
.plaque-product-options {
    flex: 1;
    background: #f8f9fa;
    padding: 20px;
    overflow-y: auto;
    box-sizing: border-box;
}

/* Product Image Section */
.product-image-section {
    margin-bottom: 20px;
}

.product-image-section img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.product-info {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.4;
}

.product-info div {
    margin-bottom: 2px;
}

/* Size Selection */
.size-selection-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.size-selection-section h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
}

.size-selection-container {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.selected-size-display {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.selected-size-display .dimensions-text {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    font-family: "Montserrat", Helvetica, Arial, sans-serif;
}

.selected-size-display .material-text {
    font-size: 14px;
    color: #6c757d;
}

.size-dropdown-container {
    flex: 0 0 25%;
    display: flex;
    justify-content: flex-end;
}

.size-dropdown {
    padding: 10px 35px 10px 15px;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23495057' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.size-dropdown:hover {
    border-color: #a98d58;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a98d58' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
}

.size-dropdown:focus {
    outline: none;
    border-color: #a98d58;
    box-shadow: 0 0 0 2px rgba(169, 141, 88, 0.1);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a98d58' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
}

/* Engraving Type Container */
.engraving-type-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.engraving-type-container .typography-select {
    flex: 1;
}

.color-indicator {
    width: 20px;
    height: 20px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background-color: #ffffff;
    flex-shrink: 0;
}

/* Material Selection */
.material-selection-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.material-selection-section h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
}

.material-selection-container {
    display: flex;
    justify-content: flex-end;
}

.material-dropdown {
    padding: 10px 15px;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 0;
    width: 100%;
    max-width: 200px;
    text-align: left;
}

.material-dropdown:hover {
    border-color: #a98d58;
}

.material-dropdown:focus {
    outline: none;
    border-color: #a98d58;
    box-shadow: 0 0 0 2px rgba(169, 141, 88, 0.1);
}

/* Material Styles for Plaque */
.plaque-material-steel {
    background: linear-gradient(145deg, #e8e8e8, #d0d0d0);
    border-radius: 8px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.plaque-material-wood {
    background: linear-gradient(145deg, #8b4513, #a0522d);
    border-radius: 8px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
    position: relative;
}

.plaque-material-wood::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 2px,
        rgba(139, 69, 19, 0.3) 2px,
        rgba(139, 69, 19, 0.3) 4px
    );
    border-radius: 8px;
    pointer-events: none;
}

.plaque-material-oak {
    background: linear-gradient(145deg, #daa520, #b8860b);
    border-radius: 8px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
    position: relative;
}

.plaque-material-oak::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(184, 134, 11, 0.4) 3px,
        rgba(184, 134, 11, 0.4) 6px
    );
    border-radius: 8px;
    pointer-events: none;
}

.plaque-material-brass {
    background: linear-gradient(145deg, #b87333, #cd7f32);
    border-radius: 8px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.plaque-material-aluminum {
    background: linear-gradient(145deg, #c0c0c0, #a8a8a8);
    border-radius: 8px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}
select#preview-plaque-select {
    margin-bottom: 1rem;
}
/* Product Options Section */
.product-options-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.product-options-section h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    font-family: "Montserrat", Helvetica, Arial, sans-serif;
}

.addon-field {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.addon-field .addon-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
    font-size: 16px;
}

.addon-label .required {
    color: #dc3545;
    margin-left: 4px;
}

.addon-select,
.addon-range {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.range-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.range-control input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 6px;
    border-radius: 4px;
    background: linear-gradient(to right, #a98d58 0%, #ccc 0%);
    outline: none;
    cursor: pointer;
}

.range-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #a98d58;
    cursor: pointer;
    margin-top: -5px;
    position: relative;
    z-index: 2;
}

/* Firefox */
.range-control input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #a98d58;
    cursor: pointer;
}
.range-control input[type="range"]::-moz-range-progress {
    background: #a98d58;
    height: 6px;
    border-radius: 4px;
}
.range-control input[type="range"]::-moz-range-track {
    background: #ccc;
    height: 6px;
    border-radius: 4px;
}

.range-value {
    font-size: 12px;
    color: #6c757d;
    min-width: 30px;
    text-align: right;
}

.image-select-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.image-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    min-width: 60px;
}

.image-option:hover,
.image-option.selected {
    border-color: #a98d58;
    background: #f0f8ff;
}

.image-option input[type="radio"] {
    display: none;
}

.image-option input[type="radio"]:checked ~ img,
.image-option.selected img {
    border: 2px solid #a98d58;
}

.image-option img {
    width: 100%;
    max-width: 205px;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 4px;
    margin-bottom: 4px;
    border: 1px solid #dee2e6;
}
label.image-option.selected span {
    font-size: 18px;
    font-weight: bold;
}
label.image-option span {
    font-size: 18px;
}
.line-input {
    position: relative;
}
button.add-line-btn {
    position: absolute;
    top: 4px;
    right: 0;
    font-size: 16px !important;
    font-family: "Montserrat", Helvetica, Arial, sans-serif !important;
    line-height: 25px;
}
.image-placeholder {
    width: 40px;
    height: 40px;
    background: #dee2e6;
    border-radius: 4px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: #6c757d;
    text-transform: uppercase;
}

.image-option span {
    font-size: 12px;
    text-align: center;
}

.no-options {
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
    margin: 0;
    padding: 8px;
    text-align: center;
}

.addon-price {
    color: #a98d58;
    font-size: 18px;
    font-weight: 600;
    margin-left: auto;
    text-align: right;
    min-width: 80px;
    display: inline-block;
}

/* Consistent pricing for dropdown options */
.addon-select {
    font-size: 14px;
}

.addon-select option {
    font-size: 14px;
    padding: 8px 12px;
}

/* Consistent pricing for image select options */
.image-option .image-option-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 4px;
}

.image-option .image-option-label {
    font-size: 20px;
    text-align: left;
    flex: 1;
}

.image-option .option-price {
    color: #a98d58;
    font-size: 14px;
    font-weight: 600;
    text-align: right;
    min-width: 80px;
    margin-left: 8px;
}

/* Consistent pricing for range controls */
.range-price-display {
    color: #a98d58 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    margin-left: auto !important;
    text-align: right !important;
    min-width: 80px !important;
    display: inline-block !important;
}

/* Consistent pricing for toggle and checkbox controls */
.toggle-control-wrapper,
.checkbox-control-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Customizer Tabs */
.customizer-tabs {
    margin-top: 25px;
}

.tab-buttons {
    display: flex;
    background: #f8f9fa;
    border-radius: 6px 6px 0 0;
    overflow: hidden;
}

.tab-btn {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: #6c757d;
    font-size: 14px;
    transition: all 0.2s;
}

.tab-btn.active {
    background: white;
    color: #495057;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

.tab-content {
    background: white;
    padding: 20px;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.plaque-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.plaque-section-header h4 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Plaque Inputs */
.plaque-inputs-section {
    margin-bottom: 25px;
}

.plaque-input-item {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.plaque-input-item:hover {
    border-color: #a98d58;
    background: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.plaque-input-item.active {
    border-color: #a98d58;
    background: #f0f8ff;
}

.plaque-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.plaque-header h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 6px;
}

.plaque-header-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.add-plaque-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #a98d58;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: background 0.2s ease, transform 0.2s ease;
}

.plaque-section-header .add-plaque-btn {
    flex-shrink: 0;
}

.add-plaque-btn:hover {
    background: #8c6f35;
    transform: translateY(-1px);
}

.plaque-lines {
    margin-bottom: 10px;
}

.line-input {
    margin-bottom: 12px;
}

.line-input label {
    display: block;
    font-size: 11px;
    color: #6c757d;
    margin-bottom: 4px;
    font-weight: 500;
}

.input-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Selected Line Label */
.line-input label.selected {
    background: #a98d58;
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-weight: 600;
}

.plaque-text-input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 13px;
    background: white;
}

.plaque-text-input:focus {
    outline: none;
    border-color: #a98d58;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.1);
}

.align-btn,
.remove-line-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #dee2e6;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.align-btn:hover,
.remove-line-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.add-line-btn {
    min-width: 90px;
    height: 24px;
    border-radius: 4px;
    background: #a98d58;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    padding: 0 10px;
}

.add-line-btn:hover {
    background: #218838;
}

/* Alignment Controls */
.alignment-controls {
    display: flex;
    gap: 4px;
    margin-top: 8px;
    justify-content: center;
}

.alignment-controls .align-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #dee2e6;
    background: #ffffff;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
    color: #6c757d;
}

.alignment-controls .align-btn:hover {
    background: #f8f9fa;
    border-color: #a98d58;
}

.alignment-controls .align-btn.active {
    background: #a98d58;
    color: #ffffff;
    border-color: #a98d58;
}

/* Text Justification Controls */
.text-justification-controls {
    margin-top: 8px;
}

.text-justification-controls label {
    display: block;
    font-size: 11px;
    color: #6c757d;
    margin-bottom: 4px;
    font-weight: 500;
}

.justify-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #dee2e6;
    background: #ffffff;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    color: #6c757d;
}

.justify-btn:hover {
    background: #f8f9fa;
    border-color: #a98d58;
}

.justify-btn.active {
    background: #a98d58;
    color: #ffffff;
    border-color: #a98d58;
}

/* Justification Icons */
.justify-icon {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 16px;
    height: 12px;
}

.justify-line {
    height: 2px;
    background-color: currentColor;
    border-radius: 1px;
}

.justify-line.short {
    width: 6px;
}

.justify-line.medium {
    width: 10px;
}

.justify-line.long {
    width: 14px;
}

/* Left justify - lines aligned to left */
.left-justify {
    align-items: flex-start;
}

/* Center justify - lines centered */
.center-justify {
    align-items: center;
}

/* Right justify - lines aligned to right */
.right-justify {
    align-items: flex-end;
}

/* Justify - all lines same width (full width) */
.justify-justify {
    align-items: stretch;
}

.justify-justify .justify-line {
    width: 100%;
}

/* Alignment Icons - Arrow and Center Icon (for text block position) */
.align-arrow {
    display: inline-block;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    color: currentColor;
}

/* Center alignment icon - four lines (short, long, short, long) */
.align-center-icon {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 16px;
    height: 12px;
    align-items: center;
    justify-content: center;
}

.align-center-line {
    height: 2px;
    background-color: currentColor;
    border-radius: 1px;
}

.align-center-line.short {
    width: 6px;
}

.align-center-line.long {
    width: 14px;
}

/* Typography Section */
.typography-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.typography-section h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
}

.typography-control {
    margin-bottom: 15px;
}

.typography-control label {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
    font-weight: 500;
    color: #495057;
}

.typography-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.slider-control {
    display: flex;
    align-items: center;
    gap: 12px;
}
h3.plaque-customizer-title, .plaque-customizer-wrapper label,.plaque-customizer-wrapper h4,.plaque-customizer-wrapper h5, .plaque-customizer-wrapper h3 {
    font-size: 16px !important;
    font-family: "Montserrat", Helvetica, Arial, sans-serif !important;
    line-height: 25px;
}
h3.plaque-customizer-title,  .plaque-customizer-wrapper h3 {
    font-size: 20px !important;
    font-family: "Montserrat", Helvetica, Arial, sans-serif !important;
    line-height: 25px;
}

.slider-control input[type="range"] {
    flex: 1;
    height: 4px;
    background: #dee2e6;
    border-radius: 2px;
    outline: none;
}

.slider-control input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: #a98d58;
    border-radius: 50%;
    cursor: pointer;
}

.slider-value {
    font-size: 12px;
    color: #6c757d;
    min-width: 40px;
    text-align: right;
    font-weight: 500;
}

.color-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.color-control input[type="color"] {
    width: 40px;
    height: 32px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    background: none;
}

.color-palette {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

.color-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.color-option:hover {
    border-color: #a98d58;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.color-option.selected {
    border-color: #a98d58;
    background-color: rgba(169, 141, 88, 0.1);
    box-shadow: 0 0 0 2px rgba(169, 141, 88, 0.2);
}

.color-option::before {
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 4px;
    margin-right: 10px;
    border: 1px solid #ccc;
    flex-shrink: 0;
}

.color-option[data-color="#000000"]::before {
    background-color: #000000;
}

.color-option[data-color="#ffffff"]::before {
    background-color: #ffffff;
    border-color: #ddd;
}

.color-option[data-color="#c0c0c0"]::before {
    background-color: #c0c0c0;
}

.color-option[data-color="#ffd900"]::before {
    background-color: #ffd900;
}

.color-option[data-color="#66686e"]::before {
    background-color: #66686e;
}

.color-label {
    font-size: 14px;
    font-weight: 500;
    color: #495057;
}

.color-value {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    font-family: monospace;
}

/* Plaque Counter */
.plaque-counter-section {
    margin-bottom: 20px;
}

.plaque-counter-section h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
}

.plaque-count {
    background: #a98d58;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.counter-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.counter-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #a98d58;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.counter-btn:hover {
    background: #1976d2;
}

.counter-display {
    font-weight: 600;
    min-width: 90px;
    text-align: center;
    font-size: 14px;
    color: #495057;
}

/* Style Tab */
.style-presets-section {
    margin-bottom: 25px;
}

.style-presets-section h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
}

.preset-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preset-option {
    padding: 12px 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    line-height: 1.4;
}

.preset-option:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.preset-option.active {
    background: #e3f2fd;
    border-color: #a98d58;
    color: #1976d2;
}

.text-effects-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.text-effects-section h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
}

.effect-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toggle-control {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #495057;
}

.toggle-control input {
    display: none;
}

.toggle-slider {
    width: 40px;
    height: 20px;
    background: #dee2e6;
    border-radius: 20px;
    position: relative;
    margin-right: 12px;
    transition: background 0.2s;
}

.toggle-slider:before {
    content: '';
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-control input:checked + .toggle-slider {
    background: #a98d58;
}

.toggle-control input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.toggle-control.active {
    color: #a98d58;
}

.advanced-controls h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
}

.advanced-control {
    margin-bottom: 15px;
}

.advanced-control label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
}

/* Preview Area */
.plaque-preview-area {
    flex: 0 0 auto;
    background: #ffffff;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    border-bottom: 1px solid #e9ecef;
}

.plaque-preview-area h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #495057;
}

.preview-container {
    /* background: #e9ecef; */
    border-radius: 8px;
    padding: 20px;
    margin: 0 0 20px 0;
    position: relative;
    min-height: 400px;
    width: 100%;
    max-width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* box-shadow: inset 0 2px 4px rgba(0,0,0,0.1); */
}

#plaque-canvas {
    border-radius: 4px;
    /* box-shadow: 0 2px 8px rgba(0,0,0,0.1); */
    background: #ffffff;
    max-width: 100%;
    height: auto;
}

.plaque-item {
    background: linear-gradient(145deg, #8e9aaf, #6c757d);
    border: 2px solid #495057;
    border-radius: 4px;
    padding: 20px;
    margin: 8px 0;
    width: 100%;
    max-width: 280px;
    height: 120px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    transform-origin: center center;
}

.plaque-item:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 12px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.plaque-item.active {
    border-color: #a98d58;
    box-shadow: 
        0 6px 12px rgba(33, 150, 243, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.1),
        0 0 0 3px rgba(33, 150, 243, 0.2);
}

.plaque-item:not(.active) {
    opacity: 0.8;
    filter: grayscale(20%);
}

.plaque-item:not(.active) .plaque-text-line {
    opacity: 0.7;
}

.plaque-item.size-changing {
    box-shadow: 
        0 12px 24px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.1),
        0 0 0 6px rgba(255, 193, 7, 0.6),
        0 0 20px rgba(255, 193, 7, 0.3);
    transform: scale(1.05);
    z-index: 10;
}

.plaque-label {
    position: absolute;
    top: -8px;
    left: 12px;
    background: #495057;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: lowercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.plaque-content {
    text-align: center;
    width: 100%;
}

.plaque-text-line {
    margin: 4px 0;
    font-size: 16px;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    word-break: break-word;
}

.preview-dimensions {
    text-align: center;
    color: #6c757d;
    font-size: 14px;
}

.dimensions-text {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 16px;
    color: #495057;
}

.material-text {
    display: block;
    font-size: 13px;
}

/* Price Breakdown */
.price-breakdown {
    margin-top: 8px;
    font-size: 12px;
    color: #6c757d;
}

.price-breakdown .addon-cost,
.price-breakdown .plaque-cost {
    margin: 2px 0;
}

.price-breakdown small {
    display: inline-block;
    padding: 2px 6px;
    background: #f8f9fa;
    border-radius: 3px;
    border: 1px solid #e9ecef;
}

/* Checkbox Control */
.checkbox-control {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #495057;
}

.checkbox-control input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 3px;
    margin-right: 10px;
    position: relative;
    transition: all 0.2s;
}

.checkbox-control input:checked + .checkmark {
    background: #a98d58;
    border-color: #a98d58;
}

.checkbox-control input:checked + .checkmark:after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .plaque-customizer-wrapper {
        flex-direction: column;
        min-height: auto;
    }
    
    .plaque-main-content {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: 0;
        order: 1;
        width: 100%;
    }
    
    .plaque-right-sidebar {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: 0;
        border: none;
        border-top: 1px solid #e9ecef;
        order: 2;
        width: 100%;
    }
    
    .plaque-preview-area {
        flex: none;
        min-width: 0;
        border-bottom: 1px solid #e9ecef;
    }
    
    .plaque-product-options {
        flex: none;
        min-width: 0;
    }
    
    .preview-container {
        padding: 20px;
        min-height: 350px;
        max-width: 95%;
    }
    
    #plaque-canvas {
        max-width: 100%;
        height: auto;
    }
    
    .plaque-item {
        width: 220px;
        height: 100px;
    }
    
    .size-selection-container {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .size-dropdown-container {
        flex: 1 1 100%;
        width: 100%;
    }
    
    .size-dropdown {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .plaque-customizer-section {
        margin: 15px 0;
    }
    
    #plaque-customizer-container {
        margin: 0;
        border-radius: 4px;
    }
    
    .plaque-customizer-title {
        font-size: 20px;
        margin: 0 0 15px 0;
    }
    
    .plaque-main-content,
    .plaque-right-sidebar {
        padding: 15px;
    }
    
    .plaque-preview-area {
        padding: 15px;
    }
    
    .plaque-product-options {
        padding: 15px;
    }
    
    .preview-container {
        padding: 15px;
        min-height: 300px;
        max-width: 100%;
    }
    
    #plaque-canvas {
        width: 100% !important;
        height: auto !important;
        max-width: 100%;
    }
    
    .plaque-item {
        width: 100%;
        max-width: 200px;
        height: 90px;
    }
    
    .size-selection-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .selected-size-display {
        width: 100%;
    }
    
    .size-dropdown-container {
        width: 100%;
    }
    
    .size-dropdown {
        width: 100%;
    }
    
    .material-selection-container {
        width: 100%;
    }
    
    .material-dropdown {
        width: 100%;
        min-width: auto;
    }
    
    .image-option {
        min-width: calc(50% - 4px);
        flex: 1 1 calc(50% - 4px);
    }
    
    .image-option img {
        max-width: 100%;
    }
    
    .typography-section input[type="range"] {
        max-width: 100%;
    }
    
    .slider-control {
        flex-wrap: wrap;
    }
    
    .custom-add-to-cart-section {
        padding: 15px;
    }
    
    .price-amount {
        font-size: 20px;
    }
    
    .custom-add-to-cart-btn {
        padding: 12px 16px;
        font-size: 15px;
    }
    
    .plaque-input-item {
        padding: 12px;
    }
    
    .input-controls {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .add-line-btn {
        min-width: auto;
        width: 100%;
        margin-top: 8px;
    }
    
    .alignment-controls {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .tab-buttons {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        min-width: 120px;
        font-size: 13px;
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .plaque-customizer-section {
        margin: 10px 0;
    }
    
    .plaque-customizer-title {
        font-size: 18px;
        margin: 0 0 12px 0;
    }
    
    .plaque-main-content,
    .plaque-right-sidebar {
        padding: 12px;
    }
    
    .plaque-preview-area {
        padding: 12px;
    }
    
    .plaque-product-options {
        padding: 12px;
    }
    
    .preview-container {
        padding: 10px;
        min-height: 250px;
        max-width: 100%;
    }
    
    #plaque-canvas {
        max-width: 100%;
        width: 100% !important;
    }
    
    .plaque-item {
        width: 100%;
        max-width: 180px;
        height: 80px;
        font-size: 14px;
    }
    
    .size-selection-section,
    .material-selection-section,
    .product-options-section,
    .typography-section {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .size-selection-section h4,
    .material-selection-section h4,
    .product-options-section h4,
    .typography-section h4 {
        font-size: 15px;
        margin: 0 0 12px 0;
    }
    
    .size-selection-container {
        gap: 10px;
    }
    
    .selected-size-display .dimensions-text {
        font-size: 14px;
    }
    
    .selected-size-display .material-text {
        font-size: 12px;
    }
    
    .input-controls {
        flex-direction: column;
        gap: 8px;
    }
    
    .plaque-text-input {
        width: 100%;
        min-width: 0;
    }
    
    .add-line-btn {
        width: 100%;
        margin-top: 0;
    }
    
    .image-option {
        min-width: 100%;
        flex: 1 1 100%;
    }
    
    .image-option img {
        max-width: 150px;
    }
    
    .typography-control label {
        font-size: 14px;
    }
    
    .typography-select {
        font-size: 13px;
        padding: 7px 30px 7px 8px;
    }
    
    .slider-control {
        gap: 8px;
    }
    
    .slider-value {
        min-width: 35px;
        font-size: 11px;
    }
    
    .custom-add-to-cart-section {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .price-label {
        font-size: 14px;
    }
    
    .price-amount {
        font-size: 18px;
    }
    
    .custom-add-to-cart-btn {
        padding: 11px 14px;
        font-size: 14px;
    }
    
    .plaque-input-item {
        padding: 10px;
    }
    
    .plaque-header h5 {
        font-size: 13px;
    }
    
    .line-input label {
        font-size: 10px;
    }
    
    .align-btn,
    .remove-line-btn {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }
    
    .alignment-controls {
        gap: 4px;
    }
    
    .alignment-controls .align-btn {
        width: 26px;
        height: 26px;
        font-size: 10px;
    }
    
    .tab-btn {
        min-width: 100px;
        font-size: 12px;
        padding: 8px 10px;
    }
    
    .addon-label {
        font-size: 14px;
    }
    
    .addon-select,
    .addon-range {
        font-size: 13px;
        padding: 7px 10px;
    }
    
    .range-control {
        gap: 8px;
    }
    
    .range-value {
        font-size: 11px;
        min-width: 25px;
    }
    
    .color-control {
        gap: 8px;
    }
    
    .color-control input[type="color"] {
        width: 36px;
        height: 28px;
    }
    
    .engraving-type-container {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .engraving-type-container .typography-select {
        flex: 1 1 100%;
        min-width: 0;
    }
    
    .color-indicator {
        width: 24px;
        height: 24px;
    }
    
    .plaque-header-buttons {
        gap: 6px;
    }
    
    .add-plaque-btn {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }
}

/* Custom Add to Cart Section */
.custom-add-to-cart-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.price-display {
    margin-bottom: 15px;
}

.price-label {
    display: block;
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 5px;
    font-family: "Montserrat", Helvetica, Arial, sans-serif;
}

.price-amount {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #a98d58;
}

.custom-add-to-cart-btn {
    width: 100%;
    background: #a98d58;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.custom-add-to-cart-btn:hover {
    background: #005a87;
}

.custom-add-to-cart-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}
label[for='pa_size']
 {
    display: none;
}
.quantity {
    display: none !important;
}

/* Professional separators in cart */
.woocommerce-cart .cart_item .variation dt[name*="━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"] {
    border-top: 1px solid #e5e5e5;
    margin-top: 15px;
    padding-top: 15px;
    color: #999;
    font-size: 12px;
    text-align: center;
    letter-spacing: 2px;
}

.woocommerce-cart .cart_item .variation dt[name*="━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"] + dd {
    display: none;
}

.addon-option-prices .option-price:last-child {
    margin-bottom: 0;
}

/* Plaque Download Links */
.plaque-download-links {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
}

.plaque-download-links strong {
    display: block;
    margin-bottom: 10px;
    color: #495057;
    font-size: 13px;
}

.plaque-download-links .button {
    display: inline-block;
    margin: 5px 5px 5px 0;
    padding: 8px 12px;
    font-size: 11px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.plaque-download-links .button:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.plaque-download-links .button:first-of-type {
    background: #a98d58;
    color: white;
}

.plaque-download-links .button:last-of-type {
    background: #a98d58;
    color: white;
}
.cart-download-image-btn, .cart-download-pdf-btn {
    font-size: 13px !important;
    color: #a98d58 !important;
    font-family: 'Montserrat' !important;
    background: transparent !important;
    border: 2px solid #a98d58 !important;
    padding: 6px 25px !important;
}
.cart-download-image-btn:hover, .cart-download-pdf-btn:hover {
    color: #fff !important;
    background: #a98d58 !important;
}
.woocommerce-cart-form dl.variation {
    font-size: 12px !important;
}
add-line-btn{
    text-align: center;
}

/* Thankyou Page Download Buttons */
.plaque-thankyou-downloads {
    margin: 20px 0 !important;
    padding: 20px !important;
    background: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    border-radius: 6px !important;
}

.plaque-thankyou-downloads h3 {
    margin-top: 0 !important;
    color: #495057 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
}

.plaque-download-section {
    margin: 15px 0 !important;
    padding: 15px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    background: white !important;
}

.plaque-download-section h4 {
    margin-top: 0 !important;
    color: #a98d58 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

.plaque-download-section p {
    margin: 10px 0 !important;
    font-style: italic !important;
    color: #666 !important;
    font-size: 14px !important;
}

.plaque-download-buttons {
    margin-top: 10px !important;
}

.plaque-download-buttons .cart-download-pdf-btn,
.plaque-download-buttons .cart-download-image-btn {
    background: #a98d58 !important;
    color: white !important;
    border: 2px solid #a98d58 !important;
    padding: 8px 20px !important;
    margin: 5px 10px 5px 0 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-family: 'Montserrat', sans-serif !important;
    transition: all 0.2s ease !important;
}

.plaque-download-buttons .cart-download-pdf-btn:hover,
.plaque-download-buttons .cart-download-image-btn:hover {
    background: #8a6f47 !important;
    border-color: #8a6f47 !important;
    transform: translateY(-1px) !important;
}

/* Admin Order Page Download Buttons */
.plaque-admin-downloads {
    margin: 15px 0 !important;
    padding: 15px !important;
    background: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    border-radius: 6px !important;
}

.plaque-admin-downloads h4 {
    margin-top: 0 !important;
    color: #495057 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.plaque-admin-downloads .plaque-download-section {
    margin: 10px 0 !important;
    padding: 10px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    background: white !important;
}

.plaque-admin-downloads .plaque-download-section strong {
    color: #a98d58 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.plaque-admin-downloads .plaque-download-section div {
    margin: 5px 0 !important;
    font-size: 12px !important;
    color: #666 !important;
    font-style: italic !important;
}

.plaque-admin-downloads .plaque-download-buttons {
    margin-top: 8px !important;
}

.plaque-admin-downloads .cart-download-pdf-btn,
.plaque-admin-downloads .cart-download-image-btn {
    background: #a98d58 !important;
    color: white !important;
    border: 2px solid #a98d58 !important;
    padding: 6px 15px !important;
    margin: 3px 8px 3px 0 !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-family: 'Montserrat', sans-serif !important;
    transition: all 0.2s ease !important;
}

.plaque-admin-downloads .cart-download-pdf-btn:hover,
.plaque-admin-downloads .cart-download-image-btn:hover {
    background: #8a6f47 !important;
    border-color: #8a6f47 !important;
    transform: translateY(-1px) !important;
}

/* Admin Order Page Download Buttons */
.plaque-admin-order-downloads {
    margin: 20px 0 !important;
    padding: 20px !important;
    background: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    border-radius: 6px !important;
}

.plaque-admin-order-downloads h3 {
    margin-top: 0 !important;
    color: #495057 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

.plaque-admin-order-downloads .plaque-download-section {
    margin: 15px 0 !important;
    padding: 15px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    background: white !important;
}

.plaque-admin-order-downloads .plaque-download-section h4 {
    margin-top: 0 !important;
    color: #a98d58 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.plaque-admin-order-downloads .plaque-download-section p {
    margin: 10px 0 !important;
    font-style: italic !important;
    color: #666 !important;
    font-size: 13px !important;
}

.plaque-admin-order-downloads .plaque-download-buttons {
    margin-top: 10px !important;
}

.plaque-admin-order-downloads .cart-download-pdf-btn,
.plaque-admin-order-downloads .cart-download-image-btn {
    background: #a98d58 !important;
    color: white !important;
    border: 2px solid #a98d58 !important;
    padding: 8px 20px !important;
    margin: 5px 10px 5px 0 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-family: 'Montserrat', sans-serif !important;
    transition: all 0.2s ease !important;
}

.plaque-admin-order-downloads .cart-download-pdf-btn:hover,
.plaque-admin-order-downloads .cart-download-image-btn:hover {
    background: #8a6f47 !important;
    border-color: #8a6f47 !important;
    transform: translateY(-1px) !important;
}

/* Enhanced styles for improved data arrangement */
.plaque-download-section {
    transition: box-shadow 0.3s ease;
}

.plaque-download-section:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
}

/* Enhanced button styles for download buttons */
.cart-download-pdf-btn,
.cart-download-image-btn {
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

.cart-download-pdf-btn:hover,
.cart-download-image-btn:hover {
    background: #8b6f47 !important;
    border-color: #8b6f47 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(169, 141, 88, 0.3) !important;
}

.cart-download-pdf-btn:active,
.cart-download-image-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px rgba(169, 141, 88, 0.3) !important;
}

/* Plaque details styling */
.plaque-details {
    margin: 15px 0;
}

.plaque-details strong {
    color: #495057;
    font-weight: 600;
}

.plaque-details span {
    color: #666;
}

/* Responsive design for plaque details */
@media (max-width: 768px) {
    .plaque-details div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .plaque-details div[style*="min-width: 120px"] {
        min-width: auto !important;
    }
    
    /* Responsive pricing layout */
    .toggle-control-wrapper,
    .checkbox-control-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .image-option .image-option-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .addon-price,
    .option-price,
    .range-price-display {
        margin-left: 0 !important;
        text-align: left !important;
        min-width: auto !important;
    }
}

@media (max-width: 480px) {
    .toggle-control-wrapper,
    .checkbox-control-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .addon-price,
    .option-price,
    .range-price-display {
        font-size: 16px !important;
    }
    
    .image-option .image-option-label {
        font-size: 16px;
    }
    
    .image-option .option-price {
        font-size: 12px;
    }
}
label.checkbox-control {
    line-height: 18px !important;
}
button#custom-add-to-cart:hover {
    background: #a98d58;
    opacity: 0.9;
}

button.add-line-btn {
    text-align: center;
}
button.add-line-btn:hover {
    background: #a98d58;
}
button.add-plaque-btn:hover {
    background: #a98d58;
}
/* Base style */
.typography-section input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    max-width: 220px;
    height: 6px;
    border-radius: 4px;
    background: linear-gradient(to right, #a98d58 0%, #ccc 0%); /* start empty */
    outline: none;
    cursor: pointer;
  }
  
  /* Thumb */
  .typography-section input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #a98d58;
    cursor: pointer;
    margin-top: -5px;
    position: relative;
    z-index: 2;
  }
  
  /* Firefox */
  .typography-section input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #a98d58;
    cursor: pointer;
  }
  .typography-section input[type="range"]::-moz-range-progress {
    background: #a98d58;
    height: 6px;
    border-radius: 4px;
  }
  .typography-section input[type="range"]::-moz-range-track {
    background: #ccc;
    height: 6px;
    border-radius: 4px;
  }
  .typography-select {
    -webkit-appearance: none; /* Safari/Chrome */
    -moz-appearance: none;    /* Firefox */
    appearance: none;         /* Standard */
    
    width: 100%;
    padding: 8px 35px 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
  
    background-color: #fff;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23495057' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px 18px;
    border: 2px solid #a98d58;
  }
  
  /* Remove IE extra dropdown arrow */
  .typography-select::-ms-expand {
    display: none;
  }
  .plaque-product-options select {
    -webkit-appearance: none; /* Safari/Chrome */
    -moz-appearance: none;    /* Firefox */
    appearance: none;         /* Standard */
    
    width: 100%;
    padding: 8px 35px 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
  
    background-color: #fff;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23495057' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px 18px;
    border: 2px solid #a98d58;
}
.text-justification-controls label {
    background: none !important;
    text-align: center;
}
.text-justification-controls .selected {
    background: none !important;
    text-align: center;
}
button.remove-plaque-btn {
    background: none;
}
button.remove-plaque-btn {
    margin-right: 7px;
}