.crevixo-product-finder-brand-modal-selector-container {
    display: flex;
    gap: 10px;
}

.crevixo-product-finder-brand-selector-container,
.crevixo-product-finder-modal-selector-container {
    width: 50%;
}

.crevixo-product-finder-select-brand,
.crevixo-product-finder-select-modal {
    width: 100%;
    min-width: 0;
    border-radius: 7px;
    border: 1.7px solid #e3e7ed;
    background-color: #fff;
    font-size: 15px;
    color: #1b1b1b;
    appearance: none;
    -webkit-appearance: none;
    transition: border 0.17s, box-shadow 0.17s;
    box-shadow: 0 2px 6px #e4e7f155;
}

.crevixo-product-finder-select-brand:disabled,
.crevixo-product-finder-select-modal:disabled {
    background-color: #f7f9fa;
    color: #b7b7b7;
    border-color: #e3e7ed;
    cursor: not-allowed;
}

.crevixo-product-finder-select-brand:focus,
.crevixo-product-finder-select-modal:focus {
    border-color: #2d89ef;
    box-shadow: 0 2px 8px #2d89ef24;
    outline: none;
}

.crevixo-product-finder-select-brand option,
.crevixo-product-finder-select-modal option {
    color: #1b1b1b;
    background: #fff;
    padding: 8px 12px;
    font-size: 15px;
}

.crevixo-product-finder-select-brand option:disabled,
.crevixo-product-finder-select-modal option:disabled {
    color: #b7b7b7;
}

.crevixo-product-finder-heading {
    font-size: 25px;
    font-weight: bold;
    color: #222;
    text-align: center;
    margin: 20px 0 10px;
}

.crevixo-product-finder-tumbnails-and-title {
    padding: 20px 0;
}

.crevixo-product-finder-thumbnail-block {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    border: none;
    outline: none;
}

.crevixo-product-finder-thumbnail {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #fff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 7px;
    border: 2.5px solid transparent;
    transition: border 0.16s, box-shadow 0.16s;
    box-shadow: 0 2px 7px 0 rgba(0,0,0,0.06);
}

.crevixo-product-finder-thumbnail .crevixo-product-finder-thumbnail-image {
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 1px 6px #0001;
    z-index: 1;
}

.crevixo-product-finder-tag {
    position: absolute;
    left: 6px;
    top: 7px;
    background: red;
    color: #fff;
    font-size: 10px;
    padding: 1px 8px 2px 8px;
    border-radius: 4px;
    font-weight: 500;
    z-index: 2;
    box-shadow: 0 2px 8px #0002;
    pointer-events: none;
    letter-spacing: 0.2px;
}

.crevixo-product-finder-thumbnail .crevixo-product-finder-checkmark {
    display: none;
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    background: #111;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    z-index: 2;
    justify-content: center; align-items: center;
    box-shadow: 0 2px 6px #0002;
    padding: 3px;
}
.crevixo-product-finder-thumbnail-block.selected .crevixo-product-finder-thumbnail {
    border: 2px solid #2d89ef;
    box-shadow: 0 4px 16px #2d89ef22;
    padding: 2px;
}
.crevixo-product-finder-thumbnail-block.selected .crevixo-product-finder-thumbnail .crevixo-product-finder-checkmark {
    display: flex;
}
.crevixo-product-finder-thumbnail-block.selected .crevixo-product-finder-thumbnail .crevixo-product-finder-checkmark::before {
    content: '';
    display: inline-block;
    width: 16px; height: 16px;
    background: url('data:image/svg+xml;utf8,<svg fill="none" stroke="white" stroke-width="3" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5 10.7l3.8 3.8 6-6"/></svg>') no-repeat center/contain;
}

.crevixo-product-finder-thumbnail-name {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    color: rgba(27, 27, 27, 0.75);
    line-height: 1.3;
    text-transform: capitalize;
    word-break: break-word;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.crevixo-product-finder-continue-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 32px;
    margin-bottom: 24px;
    width: 100%;
}

.crevixo-product-finder-continue-button-container .button {
    font-size: 16px;
    font-weight: 600;
    padding: 12px 36px;
    border-radius: 24px;
    background: #ffd600;
    border: none;
    box-shadow: 0 2px 12px #2179ee22;
    transition: background 0.16s, box-shadow 0.16s, transform 0.11s;
    cursor: pointer;
    outline: none;
    letter-spacing: 0.3px;
}

.crevixo-product-finder-continue-button-container .button:hover,
.crevixo-product-finder-continue-button-container .button:focus {
    background: #ffd600;
    box-shadow: 0 4px 18px #2179ee33;
    transform: translateY(-2px) scale(1.025);
}

.crevixo-login-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
}

.crevixo-login-modal {
    background: #fff;
    width: 100%;
    max-width: 400px;
    border-radius: 6px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    animation: crevixoModalPop 0.2s ease-out;
}

.crevixo-login-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background: #f9f9f9;
    border-radius: 6px 6px 0 0;
}

.crevixo-login-modal-header h3 {
    margin: 0; 
    font-size: 16px; 
    color: #333;
}

.crevixo-login-close {
    background: none; 
    border: none; 
    font-size: 24px; 
    cursor: pointer; 
    color: #888; 
    line-height: 1;
    padding: 0;
}

.crevixo-login-close:hover {
    color: #333;
}

.crevixo-login-modal-body {
    padding: 20px;
}

.crevixo-input-group {
    margin-bottom: 15px;
}

.crevixo-input-group label {
    display: block; 
    margin-bottom: 5px; 
    font-size: 13px; 
    color: #555;
    font-weight: 500;
}

.crevixo-input-group input {
    width: 100%; 
    padding: 10px; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
    box-sizing: border-box;
}

#crevixo-login-submit {
    width: 100%; 
    padding: 12px; 
    background: #333; 
    color: #fff; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer; 
    font-size: 14px; 
    margin-top: 10px;
    transition: background 0.2s;
}

#crevixo-login-submit:hover { 
    background: #111; 
}

.crevixo-save-status-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
}

.crevixo-save-status-modal {
    background: #fff;
    width: 100%;
    max-width: 320px;
    border-radius: 8px;
    text-align: center;
    padding: 30px 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    animation: crevixoModalPop 0.2s ease-out;
}

.crevixo-spinner {
    width: 45px;
    height: 45px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #333;
    border-radius: 50%;
    margin: 0 auto;
    animation: crevixoSpin 1s linear infinite;
}

@keyframes crevixoSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.crevixo-save-status-title {
    margin: 20px 0 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.crevixo-success-tick {
    margin: 0 auto;
    display: block;
}

.crevixo-save-status-modal .crevixo-save-ok-btn {
    margin-top: 20px;
    padding: 10px 40px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.crevixo-save-status-modal .crevixo-save-ok-btn:hover {
    background: #111;
}

.crevixo-save-error-msg {
    color: #666;
    font-size: 13px;
    margin: 10px 0 15px;
}

.crevixo-disabled-menu-item {
    pointer-events: none;
    opacity: 0.5;
}

.crevixo-designs-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
}

.crevixo-designs-modal {
    background: #fff;
    width: 100%;
    max-width: 900px;
    height: 80vh;
    max-height: 700px;
    border-radius: 6px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    animation: crevixoModalPop 0.2s ease-out;
}

.crevixo-designs-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    border-bottom: 1px solid #eee;
    background: #f9f9f9;
}

.crevixo-designs-modal-header h3 { 
    margin: 0; 
    font-size: 18px; 
    color: #333; 
    font-weight: 600;
}

.crevixo-designs-modal .crevixo-designs-close {
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #888;
    line-height: 1;
    padding: 0;
    border-radius: 50%;
    height: 38px;
    width: 38px;
    min-height: fit-content;
}

.crevixo-designs-modal .crevixo-designs-close:hover { color: #333; }

.crevixo-designs-modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
    background: #fafafa;
}

.crevixo-designs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.crevixo-design-wrapper {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.crevixo-design-wrapper:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    border-color: #ccc;
    transform: translateY(-2px);
}

.crevixo-design-top-container {
    background: #fff;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.crevixo-design-top-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.crevixo-design-bottom-container {
    padding: 10px 15px;
}

.crevixo-design-mockup-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.crevixo-design-date {
    font-size: 12px;
    color: #888;
}

.crevixo-designs-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #888;
    padding: 60px 20px;
    font-size: 16px;
}

.crevixo-print-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
}

.crevixo-print-modal {
    background: #fff;
    width: 100%;
    max-width: 450px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    animation: crevixoModalPop 0.2s ease-out;
}

.crevixo-print-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    border-bottom: 1px solid #eee;
    background: #f9f9f9;
    border-radius: 8px 8px 0 0;
}

.crevixo-print-modal-header h3 { 
    margin: 0; 
    font-size: 18px; 
    color: #333; 
    font-weight: 600;
}

.crevixo-print-modal .crevixo-print-close {
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #888;
    line-height: 1;
    padding: 0;
    border-radius: 50%;
    height: 38px;
    width: 38px;
    min-height: fit-content;
}

.crevixo-print-modal .crevixo-print-close:hover { color: #333; }

.crevixo-print-modal-body {
    padding: 25px;
    background: #fafafa;
    border-radius: 0 0 6px 6px;
}

.crevixo-print-field {
    margin-bottom: 15px;
}

.crevixo-print-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #555;
    font-weight: 600;
}

.crevixo-print-select, 
.crevixo-print-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
}

.crevixo-custom-size-row {
    display: none;
    gap: 10px;
    margin-bottom: 15px;
}

.crevixo-custom-size-col {
    flex: 1;
}

.crevixo-print-units {
    display: none;
    gap: 15px;
    margin-bottom: 20px;
}

.crevixo-print-units label {
    display: inline-flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.crevixo-print-units input {
    margin-right: 5px;
}

.crevixo-print-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.crevixo-print-actions .crevixo-print-btn, .crevixo-print-actions .crevixo-download-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    text-align: center;
}

.crevixo-print-actions .crevixo-print-btn {
    background: #333;
    color: #fff;
}

.crevixo-print-actions .crevixo-print-btn:hover { background: #111; }

.crevixo-print-actions .crevixo-download-btn {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
}

.crevixo-print-actions .crevixo-download-btn:hover { background: #e4e4e4; }

#crevixo-print-iframe {
    display: none;
}

.crevixo-print-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px 15px;
    background: #f1f3f5;
    border-radius: 6px;
}

.crevixo-print-toggle-label {
    font-size: 14px;
    font-weight: 600;
    color: #444;
}

/* iOS Style Switch */
.crevixo-switch {
    position: relative;
    display: inline-block;
    width: 64px;
    height: 30px;
}

.crevixo-switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.crevixo-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ddd;
    transition: .3s;
    border-radius: 30px;
}

.crevixo-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .crevixo-slider {
    background-color: #4CAF50;
}

input:focus + .crevixo-slider {
    box-shadow: 0 0 1px #4CAF50;
}

input:checked + .crevixo-slider:before {
    transform: translateX(34px);
}

.crevixo-slider-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: bold;
    color: #888;
    right: 10px;
    transition: 0.3s;
}

input:checked + .crevixo-slider .crevixo-slider-text {
    left: 10px;
    right: auto;
    color: #fff;
    content: "YES";
}