/* Palette grid and palette option styles */
.palette-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
    margin-bottom: 10px;
}
.palette-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 12px;
    transition: border 0.2s, box-shadow 0.2s;
    background: #fafbfc;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.palette-option.selected, .palette-option:focus {
    border: 2.5px solid #1a237e;
    box-shadow: 0 2px 8px rgba(26,35,126,0.10);
    background: #f0f4ff;
}
.palette-preview {
    display: flex;
    gap: 6px;
    margin-right: 10px;
}
.palette-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.10);
    display: inline-block;
    transition: transform 0.15s;
}
.palette-option.selected .palette-dot {
    transform: scale(1.12);
    border: 2.5px solid #1a237e;
}
/*
 * Custom Cover AI Generator - Styles
 */

.ai-designer-container {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px 18px 18px 18px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    max-width: 480px;
}
.ai-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 6px;
    color: #1a237e;
}
.ai-subtitle {
    font-size: 1em;
    color: #607d8b;
    margin-bottom: 18px;
}
.field-group {
    margin-bottom: 16px;
}
.color-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.color-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #ccc;
    cursor: pointer;
    transition: border 0.2s;
}
.color-dot.selected {
    border: 3px solid #1a237e;
}
.ai-input {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #bdbdbd;
    border-radius: 4px;
    font-size: 1em;
    margin-top: 4px;
}
#ai-preview-container {
    margin-top: 18px;
    text-align: center;
}
.ai-loading {
    color: #607d8b;
    font-size: 1.1em;
    padding: 18px 0;
}
#word-count {
    font-size: 0.95em;
    color: #888;
    float: left;
    margin-top: 2px;
}
.button.alt, .button {
    margin-right: 8px;
    margin-top: 8px;
}


.ai-cover-designer{
    display: block!important;
}

.color-dot {
    width: 70px;
    height: 70px;
}

.color-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

span.palette-dot {
    width: 50px;
    height: 50px;
    display: inline-flex;
}

span.palette-preview{
    height: fit-content;
    display: flex;
    width: auto;
}

body.rtl table.shop_table.woocommerce-checkout-review-order-table th {
    text-align: right !important;
}