/**
 * Překvapení z lásky - New Frontend Styles
 * Modern design - white, black, red color scheme
 */

/* Global overflow fix for mobile - CRITICAL */
html {
    overflow-x: hidden !important;
}

body {
    overflow-x: hidden !important;
    position: relative;
    width: 100%;
}

/* Scoped CSS variables */
.pzl-order-wrapper {
    --pzl-primary: #a50a0e;
    --pzl-primary-dark: #8a0000;
    --pzl-secondary: #f5f5f5;
    --pzl-accent: #a50a0e;
    --pzl-background: #ffffff;
    --pzl-card-bg: #ffffff;
    --pzl-text: #1a1a1a;
    --pzl-text-light: #666666;
    --pzl-border: #e0e0e0;
    --pzl-success: #2e7d32;
    --pzl-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --pzl-radius: 12px;
    --pzl-radius-sm: 8px;
}

/* Main Wrapper */
.pzl-order-wrapper {
    font-family: 'Segoe UI', 'San Francisco', -apple-system, BlinkMacSystemFont, sans-serif !important;
    background: #ffffff !important;
    min-height: auto;
    padding: 40px 20px;
    color: var(--pzl-text) !important;
    position: relative;
    overflow-x: hidden !important;
    overflow-y: visible;
    width: 100% !important;
    max-width: 100% !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.pzl-order-wrapper *,
.pzl-order-wrapper *::before,
.pzl-order-wrapper *::after {
    box-sizing: border-box !important;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.pzl-order-wrapper a {
    color: var(--pzl-primary);
    text-decoration: none;
}

.pzl-order-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
    width: 100%;
    overflow: hidden;
}

@media (max-width: 900px) {
    .pzl-order-container {
        grid-template-columns: 1fr;
    }
}

/* Order Form (Left Column) */
.pzl-order-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Sections - white cards with subtle border */
.pzl-order-wrapper .pzl-section {
    background: #ffffff !important;
    border-radius: var(--pzl-radius);
    padding: 25px;
    box-shadow: var(--pzl-shadow);
    border: 1px solid var(--pzl-border);
    overflow: hidden;
    width: 100%;
}

.pzl-order-wrapper .pzl-section-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px;
    color: var(--pzl-text) !important;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.pzl-section-number {
    color: var(--pzl-primary-dark) !important;
    flex-shrink: 0;
}

.pzl-section-subtitle {
    color: var(--pzl-text-light) !important;
    font-size: 14px;
    margin: 0 0 20px;
    word-wrap: break-word;
}

/* Buttons - with high specificity */
.pzl-order-wrapper .pzl-btn,
.pzl-modal .pzl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
}

.pzl-order-wrapper .pzl-btn-select-letter {
    background: var(--pzl-secondary) !important;
    color: var(--pzl-text) !important;
    border: 2px solid var(--pzl-border) !important;
    width: 100%;
    max-width: 200px;
}

.pzl-order-wrapper .pzl-btn-select-letter:hover {
    background: var(--pzl-primary) !important;
    border-color: var(--pzl-primary) !important;
    color: #fff !important;
}

.pzl-order-wrapper .pzl-btn-primary,
.pzl-modal .pzl-btn-primary {
    background: #a50a0e !important;
    color: #fff !important;
    border: none !important;
}

.pzl-order-wrapper .pzl-btn-primary:hover,
.pzl-modal .pzl-btn-primary:hover {
    background: #8a0000 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(165, 10, 14, 0.3);
    color: #fff !important;
}

.pzl-order-wrapper .pzl-btn-secondary,
.pzl-modal .pzl-btn-secondary {
    background: #ffffff !important;
    color: #1a1a1a !important;
    border: 1px solid #e0e0e0 !important;
}

.pzl-order-wrapper .pzl-btn-secondary:hover,
.pzl-modal .pzl-btn-secondary:hover {
    background: #f5f5f5 !important;
    border-color: #a50a0e !important;
    color: #1a1a1a !important;
}

.pzl-order-wrapper .pzl-btn-submit {
    width: 100%;
    background: #a50a0e !important;
    color: #fff !important;
    font-size: 16px;
    padding: 16px 30px;
    margin-top: 15px;
    border: none !important;
}

.pzl-order-wrapper .pzl-btn-submit:hover {
    background: #8a0000 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(165, 10, 14, 0.3);
    color: #fff !important;
}

/* Letter Preview */
.pzl-letter-preview {
    margin-top: 25px;
    padding: 25px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: var(--pzl-radius-sm);
    max-height: 500px;
    overflow-y: auto;
}

.pzl-letter-content {
    font-family: 'Georgia', serif;
    font-size: 15px;
    line-height: 1.8;
    color: var(--pzl-text);
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.pzl-letter-content p {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.pzl-letter-signature {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed var(--pzl-border);
}

.pzl-letter-signature label {
    display: block;
    font-size: 13px;
    color: var(--pzl-text-light);
    margin-bottom: 8px;
}

.pzl-letter-signature input {
    font-family: 'Brush Script MT', cursive;
    font-size: 20px;
    border: none;
    border-bottom: 1px dashed var(--pzl-border);
    background: transparent;
    width: 100%;
    padding: 5px 0;
    color: var(--pzl-text);
}

/* Personalized Photo Option */
.pzl-photo-option {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px dashed var(--pzl-border);
}

.pzl-photo-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pzl-photo-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex: 1;
}

.pzl-photo-checkbox input {
    width: 20px;
    height: 20px;
    accent-color: var(--pzl-primary);
}

.pzl-photo-label {
    font-size: 16px;
    font-weight: 500;
    color: var(--pzl-text);
}

.pzl-photo-price {
    color: var(--pzl-primary-dark);
    font-weight: 600;
}

.pzl-order-wrapper .pzl-photo-info-btn {
    background: #ffffff !important;
    border: 1px solid #a50a0e !important;
    color: #a50a0e !important;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
}

.pzl-order-wrapper .pzl-photo-info-btn:hover {
    background: #a50a0e !important;
    color: #fff !important;
}

.pzl-photo-fields {
    margin-top: 20px;
    padding: 20px;
    background: #fafafa;
    border-radius: 10px;
}

/* Polaroid Container */
.pzl-polaroid-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.pzl-polaroid-frame {
    position: relative;
    width: 320px;
    max-width: 100%;
}

.pzl-polaroid-template {
    width: 100%;
    height: auto;
    display: block;
}

.pzl-polaroid-photo-area {
    position: absolute;
    /* Photo area matches the black area in template exactly */
    top: 2.8%;
    left: 3.8%;
    width: 92.4%;
    height: 80%;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Transparent background - template shows through */
    background: transparent;
}

.pzl-polaroid-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666666;
    text-align: center;
    padding: 20px;
    background: rgba(0,0,0,0.03);
    width: 100%;
    height: 100%;
}

.pzl-polaroid-placeholder svg {
    opacity: 0.4;
    margin-bottom: 10px;
    stroke: #777777;
}

.pzl-polaroid-placeholder span {
    font-size: 13px;
}

.pzl-polaroid-user-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pzl-polaroid-photo-area .pzl-photo-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: rgba(220, 53, 69, 0.9);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.pzl-polaroid-text-area {
    position: absolute;
    bottom: 1%;
    left: 5%;
    right: 5%;
    text-align: center;
    height: 18%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pzl-polaroid-live-text {
    font-family: 'Courgette', cursive;
    font-size: 20px;
    color: #3d2914 !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    word-break: break-word;
    line-height: 1.2;
}

.pzl-polaroid-text-area,
.pzl-polaroid-text-area *,
.pzl-dark-mode .pzl-polaroid-text-area,
.pzl-dark-mode .pzl-polaroid-text-area *,
.pzl-dark-mode .pzl-photo-option .pzl-polaroid-text-area,
.pzl-dark-mode .pzl-photo-option .pzl-polaroid-text-area *,
.pzl-dark-mode .pzl-polaroid-frame .pzl-polaroid-live-text,
body .pzl-polaroid-live-text,
body .pzl-polaroid-text-area * {
    color: #3d2914 !important;
}

/* Fallback when no template */
.pzl-polaroid-frame:not(:has(.pzl-polaroid-template)) {
    background: #f5f5f5;
    padding: 12px 12px 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-radius: 3px;
}

.pzl-polaroid-frame:not(:has(.pzl-polaroid-template)) .pzl-polaroid-photo-area {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: 200px;
}

.pzl-polaroid-frame:not(:has(.pzl-polaroid-template)) .pzl-polaroid-text-area {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    margin-top: 15px;
    height: auto;
}

.pzl-photo-upload {
    margin-bottom: 15px;
}

.pzl-photo-upload label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--pzl-text);
}

.pzl-photo-upload-area {
    position: relative;
    border: 2px dashed var(--pzl-border);
    border-radius: var(--pzl-radius-sm);
    background: #ffffff;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.pzl-photo-upload-area:hover {
    border-color: var(--pzl-primary);
    background: #f9f9f9;
}

.pzl-photo-upload-placeholder {
    text-align: center;
    color: var(--pzl-text-light);
}

.pzl-photo-upload-placeholder svg {
    display: block;
    margin: 0 auto 10px;
    opacity: 0.5;
}

.pzl-photo-upload-placeholder span {
    font-size: 14px;
}

.pzl-photo-preview {
    position: relative;
    width: 100%;
    padding: 10px;
}

.pzl-photo-preview img {
    max-width: 100%;
    max-height: 200px;
    display: block;
    margin: 0 auto;
    border-radius: var(--pzl-radius-sm);
}

.pzl-photo-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 28px;
    height: 28px;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pzl-photo-text label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--pzl-text);
}

.pzl-photo-text label small {
    font-weight: 400;
    color: var(--pzl-text-light);
}

.pzl-photo-text input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--pzl-border);
    border-radius: var(--pzl-radius-sm);
    font-size: 16px;
    font-family: 'Courgette', cursive;
}

.pzl-photo-text input[type="text"]:focus {
    outline: none;
    border-color: var(--pzl-primary);
}

/* Emoji bar for photo text */
.pzl-photo-text-input-wrap {
    position: relative;
}

.pzl-char-counter {
    display: block;
    text-align: right;
    font-size: 12px;
    color: var(--pzl-text-light);
    margin-top: 5px;
}

/* Photo Sample Modal */
.pzl-modal-photo-sample {
    max-width: 500px;
}

.pzl-photo-sample-image {
    margin-top: 20px;
    text-align: center;
}

.pzl-photo-sample-image img {
    max-width: 100%;
    border-radius: var(--pzl-radius);
    box-shadow: var(--pzl-shadow);
}

/* Add-ons List */
.pzl-addons-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pzl-addon-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: var(--pzl-radius-sm);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.pzl-addon-item:hover {
    border-color: var(--pzl-primary);
    background: #ffffff;
}

.pzl-addon-item.selected {
    border-color: var(--pzl-primary);
    background: #fafafa;
}

.pzl-addon-checkbox {
    flex-shrink: 0;
}

.pzl-addon-checkbox input {
    width: 20px;
    height: 20px;
    accent-color: var(--pzl-primary);
}

.pzl-addon-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.pzl-addon-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pzl-addon-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.pzl-addon-info strong {
    font-size: 14px;
    color: var(--pzl-text);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pzl-addon-price {
    font-size: 12px;
    color: var(--pzl-text-light);
}

.pzl-addon-info p {
    font-size: 12px;
    color: #666666 !important;
    margin: 2px 0 0;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pzl-order-wrapper .pzl-addon-select-btn {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    color: #a50a0e !important;
    font-size: 13px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s;
    flex-shrink: 0;
    white-space: nowrap;
}

.pzl-order-wrapper .pzl-addon-select-btn:hover {
    background: #f5f5f5 !important;
    color: #fff !important;
}

.pzl-addon-selected-names {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--pzl-primary-dark);
    font-style: normal;
}

.pzl-addon-selected-names::before {
    content: 'Zvoleno: ';
    color: var(--pzl-text);
    font-weight: 600;
}

.pzl-addon-selected-names:empty {
    display: none;
}

.pzl-addon-selected-names:empty::before {
    display: none;
}

/* Package Selection */
.pzl-package-selection {
    padding: 20px !important;
}

.pzl-package-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
}

.pzl-order-wrapper .pzl-package-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 15px 8px;
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    color: #1a1a1a !important;
    min-width: 0;
    word-wrap: break-word;
}

.pzl-order-wrapper .pzl-package-btn:hover {
    border-color: #a50a0e !important;
    background: #ffffff !important;
}

.pzl-order-wrapper .pzl-package-btn.active {
    border-color: #a50a0e !important;
    border-width: 2px !important;
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(165, 10, 14, 0.15);
}

.pzl-order-wrapper .pzl-package-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pzl-order-wrapper .pzl-package-icon svg {
    width: 100%;
    height: 100%;
}

.pzl-order-wrapper .pzl-package-label {
    font-size: 10px;
    font-weight: 600;
    color: #1a1a1a !important;
    line-height: 1.2;
    text-transform: uppercase;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.pzl-order-wrapper .pzl-package-price {
    font-size: 13px;
    font-weight: 700;
    color: #a50a0e !important;
}

@media (max-width: 768px) {
    .pzl-package-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .pzl-order-wrapper .pzl-package-btn {
        padding: 12px 6px;
    }
    
    .pzl-order-wrapper .pzl-package-label {
        font-size: 9px;
    }
    
    .pzl-order-wrapper .pzl-package-price {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .pzl-package-buttons {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    
    .pzl-order-wrapper .pzl-package-btn {
        padding: 10px 4px;
    }
    
    .pzl-order-wrapper .pzl-package-icon {
        width: 28px;
        height: 28px;
    }
    
    .pzl-order-wrapper .pzl-package-label {
        font-size: 8px;
    }
}

/* Form Elements */
.pzl-form-row {
    margin-bottom: 18px;
}

.pzl-form-row label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--pzl-text);
    margin-bottom: 8px;
}

.pzl-form-row input[type="text"],
.pzl-form-row input[type="email"],
.pzl-form-row input[type="date"],
.pzl-form-row textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--pzl-border);
    border-radius: var(--pzl-radius-sm);
    font-size: 15px;
    color: var(--pzl-text);
    background: #ffffff;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.pzl-form-row input:focus,
.pzl-form-row textarea:focus {
    outline: none;
    border-color: var(--pzl-primary);
}

.pzl-form-row-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Delivery Methods */
.pzl-delivery-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.pzl-delivery-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: #ffffff;
    border: 2px solid var(--pzl-border);
    border-radius: var(--pzl-radius-sm);
    cursor: pointer;
    transition: all 0.3s;
}

.pzl-delivery-option:hover {
    border-color: var(--pzl-primary);
}

.pzl-delivery-option input:checked + .pzl-option-content {
    color: var(--pzl-primary-dark);
}

.pzl-delivery-option input {
    width: 20px;
    height: 20px;
    accent-color: var(--pzl-primary);
}

.pzl-option-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pzl-option-price {
    font-size: 14px;
    color: var(--pzl-text-light);
}

/* Date Options */
.pzl-date-options {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.pzl-radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.pzl-radio-option input {
    accent-color: var(--pzl-primary);
}

.pzl-date-picker {
    margin-top: 15px;
}

/* Packeta */
.pzl-btn-packeta {
    background: #ba1b02;
    color: #fff;
    width: 100%;
}

.pzl-btn-packeta:hover {
    background: #a01800;
}

.pzl-packeta-selected {
    background: #f0f8f0;
    border: 1px solid #c3e6cb;
    border-radius: var(--pzl-radius-sm);
    padding: 15px;
    margin-top: 15px;
}

.pzl-packeta-selected strong {
    display: block;
    margin-bottom: 5px;
}

.pzl-packeta-selected span {
    color: var(--pzl-text-light);
    font-size: 14px;
}

.pzl-link {
    background: none;
    border: none;
    color: var(--pzl-primary-dark);
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    display: inline-block;
}

/* Scratch Modal Styles */
.pzl-scratch-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

/* Visual Grid Styles */
.pzl-visual-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

/* Compact grid - 3 columns on mobile */
.pzl-visual-grid-compact {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
}

.pzl-visual-tip {
    background: rgba(199, 155, 106, 0.15);
    border: 1px solid rgba(199, 155, 106, 0.3);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

.pzl-visual-tip strong {
    color: #333;
}

.pzl-visual-card {
    background: #ffffff;
    border: 2px solid var(--pzl-border);
    border-radius: var(--pzl-radius-sm);
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.pzl-visual-card:hover {
    border-color: var(--pzl-primary);
}

.pzl-visual-card.selected {
    border-color: var(--pzl-primary);
    background: #f9f9f9;
    box-shadow: 0 0 0 3px rgba(var(--pzl-primary-rgb), 0.2);
}

.pzl-visual-image {
    margin-bottom: 8px;
    position: relative !important;
    overflow: visible !important;
}

.pzl-visual-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

/* Expand button */
.pzl-visual-expand,
.pzl-order-wrapper .pzl-visual-expand,
.pzl-visual-grid .pzl-visual-expand {
    position: absolute !important;
    top: 5px !important;
    left: 5px !important;
    width: 28px !important;
    height: 28px !important;
    background: rgba(0, 0, 0, 0.7) !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s !important;
    padding: 0 !important;
    z-index: 10 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.pzl-visual-expand:hover {
    background: rgba(0, 0, 0, 0.9) !important;
    transform: scale(1.1);
}

.pzl-visual-expand svg {
    width: 16px !important;
    height: 16px !important;
    color: #fff !important;
    stroke: #fff !important;
}

/* Lightbox */
.pzl-visual-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 100001;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
}

.pzl-visual-lightbox.pzl-active {
    display: flex;
}

.pzl-lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pzl-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.pzl-visual-lightbox img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.pzl-lightbox-title {
    color: #fff;
    font-size: 18px;
    margin-top: 15px;
    text-align: center;
}

.pzl-visual-name {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.2;
}

.pzl-visual-price {
    font-size: 11px;
    color: var(--pzl-primary-dark);
    font-weight: 600;
}

.pzl-visual-price.pzl-price-included {
    color: #28a745;
}

/* Responsive compact grid */
@media (max-width: 480px) {
    .pzl-visual-grid-compact {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }
    
    .pzl-visual-card {
        padding: 6px;
    }
    
    .pzl-visual-expand {
        width: 24px;
        height: 24px;
        top: 3px;
        left: 3px;
    }
    
    .pzl-visual-expand svg {
        width: 14px;
        height: 14px;
    }
    
    .pzl-visual-name {
        font-size: 10px;
    }
    
    .pzl-visual-price {
        font-size: 10px;
    }
    
    .pzl-visual-tip {
        font-size: 12px;
        padding: 8px 12px;
    }
}

.pzl-scratch-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex: 1;
}

.pzl-scratch-checkbox input {
    width: 20px;
    height: 20px;
    accent-color: var(--pzl-primary);
}

.pzl-scratch-label {
    font-size: 16px;
    font-weight: 500;
}

.pzl-scratch-price {
    font-weight: 400;
    color: var(--pzl-text-light);
}

.pzl-scratch-price.pzl-price-included {
    color: #28a745;
}

/* Info button - Ukázka */
.pzl-scratch-sample-btn {
    background: #ffffff !important;
    border: 1px solid #a50a0e !important;
    color: #a50a0e !important;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 13px;
    transition: all 0.2s;
}

.pzl-scratch-sample-btn:hover {
    background: #a50a0e !important;
    color: #fff !important;
}

.pzl-scratch-description {
    font-size: 14px;
    color: #666666 !important;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Photo Modal - reuse scratch styles */
.pzl-photo-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.pzl-photo-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex: 1;
}

.pzl-photo-checkbox input {
    width: 20px;
    height: 20px;
    accent-color: var(--pzl-primary);
}

.pzl-photo-label {
    font-size: 16px;
    font-weight: 500;
}

.pzl-photo-price {
    font-weight: 400;
    color: var(--pzl-text-light);
}

.pzl-photo-price.pzl-price-included {
    color: #28a745;
}

.pzl-photo-sample-btn {
    background: #ffffff !important;
    border: 1px solid #a50a0e !important;
    color: #a50a0e !important;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 13px;
    transition: all 0.2s;
}

.pzl-photo-sample-btn:hover {
    background: #a50a0e !important;
    color: #fff !important;
}

.pzl-photo-sample-btn svg {
    stroke: currentColor;
}

.pzl-photo-description {
    font-size: 14px;
    color: #666666 !important;
    margin-bottom: 20px;
    line-height: 1.5;
}

.pzl-scratch-fields {
    background: #fafafa !important;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.pzl-scratch-fields.hidden {
    display: none;
}

.pzl-scratch-fields label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #1a1a1a !important;
}

.pzl-scratch-fields label small {
    font-weight: 400;
    color: #666666 !important;
}

.pzl-scratch-fields input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0d0c8 !important;
    border-radius: 10px;
    font-size: 15px;
    color: #1a1a1a !important;
    background: #ffffff !important;
}

.pzl-scratch-fields input:focus {
    outline: none;
    border-color: #a50a0e !important;
}

/* Confirm Dialog */
.pzl-modal-dialog .pzl-modal-content {
    background: #fff !important;
    max-width: 420px;
}

.pzl-modal-small {
    max-width: 420px !important;
}

.pzl-dialog-title {
    font-size: 18px;
    color: #1a1a1a !important;
    margin-bottom: 10px;
    color: var(--pzl-text);
}

.pzl-dialog-text {
    font-size: 14px;
    color: var(--pzl-text-light);
    margin-bottom: 15px;
    line-height: 1.5;
}

.pzl-dialog-image {
    margin-bottom: 20px;
    text-align: center;
}

.pzl-dialog-image img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pzl-dialog-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.pzl-dialog-actions.pzl-dialog-actions-center {
    justify-content: center;
}

.pzl-dialog-actions .pzl-btn {
    flex: 1;
    white-space: nowrap;
    font-size: 13px;
    padding: 12px 16px;
}

.pzl-dialog-actions-center .pzl-btn {
    flex: 0 0 auto;
    min-width: 120px;
}

/* Order Summary (Right Column) */
.pzl-order-summary {
    position: relative;
}

.pzl-order-wrapper .pzl-summary-sticky {
    position: sticky;
    top: 20px;
    background: #ffffff !important;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.pzl-order-wrapper .pzl-summary-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px;
    color: #1a1a1a !important;
}

.pzl-order-wrapper .pzl-summary-items {
    border-bottom: 1px solid #e0e0e0 !important;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.pzl-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    font-size: 14px;
}

.pzl-summary-main {
    gap: 12px;
}

.pzl-summary-item-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5 !important;
}

.pzl-summary-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pzl-summary-item-info {
    flex: 1;
}

.pzl-order-wrapper .pzl-summary-item-info strong {
    display: block;
    font-size: 15px;
    margin-bottom: 3px;
    color: #1a1a1a !important;
}

.pzl-summary-letter-name {
    font-size: 13px;
    color: #666666 !important;
}

.pzl-order-wrapper .pzl-summary-item-price {
    font-weight: 600;
    color: #1a1a1a !important;
}

.pzl-summary-item.pzl-included {
    opacity: 0.85;
}

.pzl-included-label {
    color: #28a745 !important;
    font-size: 12px !important;
    font-style: italic;
    font-weight: 500 !important;
}

.pzl-summary-item small {
    font-size: 12px;
    color: var(--pzl-text-light);
}

/* Coupon */
.pzl-summary-coupon {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.pzl-order-wrapper .pzl-summary-coupon input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px;
    font-size: 13px;
    color: #1a1a1a !important;
    background: #ffffff !important;
}

.pzl-order-wrapper .pzl-btn-coupon {
    background: #1a1a1a !important;
    color: #ffffff !important;
    padding: 10px 16px;
    border: none !important;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
}

.pzl-order-wrapper .pzl-btn-coupon:hover {
    background: #333333 !important;
    color: #fff !important;
}

.pzl-order-wrapper .pzl-btn-coupon:disabled {
    background: #28a745 !important;
    cursor: default;
}

.pzl-coupon-message {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 10px;
}

.pzl-coupon-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.pzl-coupon-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.pzl-summary-discount {
    background: #d4edda;
    border-radius: 6px;
    padding: 8px 12px !important;
    margin: 10px 0;
}

.pzl-discount-amount {
    color: #155724 !important;
    font-weight: 600;
}

/* Total */
.pzl-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 15px;
}

.pzl-order-wrapper .pzl-summary-total strong {
    font-size: 22px;
    color: #a50a0e !important;
}

/* Delivery Section in Summary */
.pzl-delivery-section {
    border-top: 1px solid #e0e0e0 !important;
    border-bottom: 1px solid #e0e0e0 !important;
    padding: 10px 0;
    margin: 10px 0;
}

.pzl-delivery-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 6px;
}

.pzl-delivery-row:hover {
    background: #f5f5f5;
}

.pzl-delivery-row-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pzl-delivery-row-icon svg {
    width: 100%;
    height: 100%;
}

.pzl-delivery-row-content {
    flex: 1;
}

.pzl-delivery-row-content strong {
    display: block;
    font-size: 13px;
    color: var(--pzl-text);
    margin-bottom: 1px;
}

.pzl-delivery-row-value {
    font-size: 12px;
    color: var(--pzl-text-light);
}

.pzl-delivery-row-value.filled {
    color: #1a1a1a !important;
    font-weight: 500;
}

.pzl-order-wrapper .pzl-delivery-row-btn {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    color: #666666 !important;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 13px;
}

.pzl-order-wrapper .pzl-delivery-row-btn:hover {
    background: #f5f5f5 !important;
    border-color: #a50a0e !important;
    color: #a50a0e !important;
}

/* Modal Form */
.pzl-modal-form {
    margin: 20px 0;
}

/* Same as recipient checkbox */
.pzl-same-as-recipient {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.pzl-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #1a1a1a;
}

.pzl-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #a50a0e;
}

/* Inline checkbox (on same line) */
.pzl-checkbox-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #1a1a1a;
}

.pzl-checkbox-inline input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #a50a0e;
    margin: 0;
    flex-shrink: 0;
}

.pzl-checkbox-inline span {
    line-height: 1.3;
}

/* Sender Modal Tabs */
.pzl-sender-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    background: #f0f0f0;
    border-radius: 8px;
    padding: 4px;
}

.pzl-sender-tab {
    flex: 1;
    padding: 10px 15px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.pzl-sender-tab:hover:not(.active) {
    color: #333;
}

.pzl-sender-tab.active {
    background: #a50a0e;
    color: #fff;
}

.pzl-sender-content {
    
}

.pzl-sender-links {
    text-align: center;
    margin-top: 15px;
}

.pzl-sender-links a {
    color: #a50a0e;
    text-decoration: none;
    font-size: 14px;
}

.pzl-sender-links a:hover {
    text-decoration: underline;
}

.pzl-sender-login-message,
.pzl-sender-forgot-message {
    padding: 10px 15px;
    border-radius: 6px;
    margin: 10px 0;
    font-size: 14px;
}

.pzl-sender-login-message.error,
.pzl-sender-forgot-message.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.pzl-sender-login-message.success,
.pzl-sender-forgot-message.success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

.pzl-logged-in-info {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.pzl-logged-in-info p {
    margin: 5px 0;
    color: #555;
}

.pzl-logged-in-info strong {
    color: #1a1a1a;
}

/* Radio Cards for Date/Method selection */
.pzl-date-options-modal,
.pzl-delivery-options-modal {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pzl-radio-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: #ffffff;
    border: 2px solid var(--pzl-border);
    border-radius: var(--pzl-radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.pzl-radio-card:hover {
    border-color: var(--pzl-primary);
}

.pzl-radio-card input {
    margin-top: 3px;
    accent-color: var(--pzl-primary);
}

.pzl-radio-card input:checked + .pzl-radio-card-content {
    color: var(--pzl-primary-dark);
}

.pzl-radio-card-content {
    flex: 1;
}

.pzl-radio-card-content strong {
    display: block;
    margin-bottom: 3px;
}

.pzl-radio-card-content small {
    color: var(--pzl-text-light);
    font-size: 13px;
}

.pzl-radio-card-price {
    display: block;
    margin-top: 5px;
    font-weight: 600;
    color: var(--pzl-primary-dark);
}

.pzl-date-picker-modal {
    margin-top: 15px;
}

.pzl-date-picker-modal input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--pzl-border);
    border-radius: var(--pzl-radius-sm);
    font-size: 15px;
}

.pzl-packeta-widget-wrapper {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed var(--pzl-border);
}

/* Payment Icons */
.pzl-payment-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px 0;
    flex-wrap: wrap;
}

.pzl-payment-icons img,
.pzl-payment-icons span {
    height: 24px;
    opacity: 0.6;
}

.pzl-payment-icons span {
    font-size: 11px;
    color: var(--pzl-text-light);
    padding: 5px 8px;
    background: #f0f0f0;
    border-radius: 4px;
}

.pzl-security-note {
    font-size: 12px;
    color: var(--pzl-text-light);
    text-align: center;
    margin-top: 15px;
    line-height: 1.6;
}

/* Modals */
.pzl-modal {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    padding: 20px;
    overflow-y: auto;
    font-family: 'Segoe UI', 'San Francisco', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.pzl-modal.active {
    display: flex !important;
    align-items: flex-start;
    justify-content: center;
}

.pzl-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.pzl-modal-content {
    position: relative;
    background: #fff !important;
    border-radius: 16px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    margin: 40px auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    color: #1a1a1a !important;
}

.pzl-modal-large {
    max-width: 900px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pzl-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: #f5f5f5 !important;
    border: 1px solid #cccccc !important;
    font-size: 14px;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    color: #333333 !important;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    line-height: 1;
}

.pzl-modal-close:hover {
    color: #ffffff !important;
    background: #a50a0e !important;
    border-color: #a50a0e !important;
}

.pzl-modal-title {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin: 0 0 10px;
    color: #1a1a1a !important;
    padding-right: 50px;
}

.pzl-dialog-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 15px;
    color: #1a1a1a !important;
    padding-right: 50px;
}

.pzl-modal-subtitle {
    text-align: center;
    color: #666666 !important;
    font-size: 15px;
    margin: 0 0 15px;
}

.pzl-modal-hint {
    text-align: center;
    background: #f5f5f5 !important;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 25px;
    display: inline-block;
    color: #1a1a1a !important;
    width: 100%;
}

.pzl-modal-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 25px;
}

/* Letter Groups Grid */
.pzl-letter-groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.pzl-letter-group-card {
    background: #ffffff;
    border-radius: var(--pzl-radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.pzl-letter-group-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #a50a0e;
}

.pzl-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--pzl-primary);
    color: #fff;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 6px;
    z-index: 2;
}

.pzl-card-image {
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.pzl-card-heart {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 24px;
}

.pzl-card-body {
    padding: 20px;
}

.pzl-card-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--pzl-text);
}

.pzl-card-subtitle {
    font-size: 14px;
    color: var(--pzl-text-light);
    margin: 0 0 8px;
    font-style: italic;
}

.pzl-card-description {
    font-size: 13px;
    color: #666666 !important;
    margin: 0 0 15px;
    line-height: 1.5;
}

/* Card CTA Button */
.pzl-modal .pzl-card-cta {
    background: linear-gradient(135deg, #a50a0e 0%, #a50a0e 100%) !important;
    border: none !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 12px 20px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.pzl-modal .pzl-card-cta:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(165, 10, 14, 0.3);
}

/* Text Variant Select */
.pzl-text-variant-select-wrapper {
    margin-bottom: 15px;
}

.pzl-text-variant-select-wrapper label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.pzl-text-variant-select,
.pzl-order-wrapper .pzl-text-variant-select,
.pzl-modal .pzl-text-variant-select,
select.pzl-text-variant-select,
#pzl-text-variant-select,
select#pzl-text-variant-select {
    width: 100% !important;
    height: auto !important;
    min-height: 44px !important;
    padding: 12px 40px 12px 15px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    background-color: #ffffff !important;
    color: #1a1a1a !important;
    -webkit-text-fill-color: #1a1a1a !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a1a1a' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    overflow: visible !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    opacity: 1 !important;
    box-sizing: border-box !important;
}

.pzl-text-variant-select option,
.pzl-order-wrapper .pzl-text-variant-select option,
.pzl-modal .pzl-text-variant-select option,
#pzl-text-variant-select option,
select#pzl-text-variant-select option {
    color: #1a1a1a !important;
    -webkit-text-fill-color: #1a1a1a !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    padding: 10px !important;
    font-size: 14px !important;
    opacity: 1 !important;
    overflow: visible !important;
}

.pzl-text-variant-select:focus,
.pzl-order-wrapper .pzl-text-variant-select:focus,
.pzl-modal .pzl-text-variant-select:focus,
#pzl-text-variant-select:focus {
    outline: none !important;
    border-color: #a50a0e !important;
}

.pzl-text-variant-select:hover,
.pzl-order-wrapper .pzl-text-variant-select:hover,
.pzl-modal .pzl-text-variant-select:hover,
#pzl-text-variant-select:hover {
    border-color: #a50a0e !important;
}

/* Editor */
.pzl-editor-wrapper textarea {
    width: 100%;
    min-height: 200px;
    padding: 20px;
    border: 1px solid #e0d0c8 !important;
    border-radius: 10px;
    font-family: 'Georgia', serif;
    font-size: 16px;
    line-height: 1.8;
    resize: vertical;
    box-sizing: border-box;
    color: #1a1a1a !important;
    background: #ffffff !important;
}

.pzl-editor-wrapper textarea:focus {
    outline: none;
    border-color: #a50a0e !important;
}

/* Addon Products in Modal */
.pzl-addon-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    max-height: 50vh;
    overflow-y: auto;
    padding: 5px;
}

.pzl-addon-product {
    background: #ffffff;
    border: 2px solid var(--pzl-border);
    border-radius: var(--pzl-radius-sm);
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.pzl-addon-product:hover {
    border-color: var(--pzl-primary);
}

.pzl-addon-product.selected {
    border-color: var(--pzl-primary);
    background: #f9f9f9;
}

/* Image wrapper for badge positioning */
.pzl-addon-image-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

.pzl-addon-image-wrap img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

/* "v ceně" badge on default products */
.pzl-default-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
    white-space: nowrap;
}

.pzl-addon-product img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.pzl-addon-product h4 {
    font-size: 14px;
    margin: 0 0 5px;
}

.pzl-addon-product .price {
    font-size: 15px;
    font-weight: 600;
    color: var(--pzl-primary-dark);
}

.pzl-addon-product .price.pzl-price-included {
    color: #28a745;
    font-size: 13px;
}

/* Summary - removed/deducted items */
.pzl-summary-addon.pzl-removed {
    opacity: 0.7;
}

.pzl-summary-addon.pzl-removed span:first-child {
    color: var(--pzl-text-light);
}

.pzl-summary-addon.pzl-removed em {
    font-size: 11px;
    color: #999;
}

.pzl-summary-item-price.pzl-price-deducted {
    color: #dc3545 !important;
    font-weight: 600;
}

/* Summary - included items */
.pzl-summary-addon.pzl-included {
    background: rgba(40, 167, 69, 0.05);
    border-radius: 4px;
    padding: 2px 0;
}

.pzl-included-label {
    color: #28a745 !important;
    font-weight: 600;
    font-size: 12px;
}

/* Quantity Selector for drinks */
.pzl-qty-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.pzl-modal .pzl-qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #e0d0c8 !important;
    background: #ffffff !important;
    color: #1a1a1a !important;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.pzl-modal .pzl-qty-btn:hover {
    background: #a50a0e !important;
    color: #fff !important;
    border-color: #a50a0e !important;
}

.pzl-qty-value {
    font-size: 16px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
    color: #1a1a1a !important;
}

/* Qty select dropdown */
.pzl-qty-select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    color: #1a1a1a;
    cursor: pointer;
    min-width: 65px;
}

.pzl-qty-select:focus {
    border-color: #a50a0e;
    outline: none;
}

.pzl-edit-product-qty-controls {
    flex-shrink: 0;
}

/* Success Message */
.pzl-success-message {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--pzl-background);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pzl-success-content {
    text-align: center;
    background: var(--pzl-card-bg);
    padding: 60px;
    border-radius: var(--pzl-radius);
    box-shadow: var(--pzl-shadow);
}

.pzl-success-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.pzl-success-content h2 {
    font-size: 28px;
    margin: 0 0 15px;
}

.pzl-success-content p {
    color: var(--pzl-text-light);
    margin: 0 0 10px;
}

.pzl-order-number {
    font-size: 18px;
    color: var(--pzl-text);
}

/* Loading Overlay */
.pzl-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    z-index: 10002;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pzl-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--pzl-border);
    border-top-color: var(--pzl-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 900px) {
    .pzl-order-container {
        grid-template-columns: 1fr;
    }
    
    /* Summary goes AFTER form on mobile */
    .pzl-order-form {
        order: 1;
    }
    
    .pzl-order-summary {
        order: 2;
    }
    
    .pzl-summary-sticky {
        position: static;
    }
}

@media (max-width: 600px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .pzl-order-wrapper {
        padding: 15px 10px;
        background: transparent !important;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .pzl-order-container {
        padding: 0;
        gap: 15px;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .pzl-order-form {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .pzl-section,
    .pzl-order-wrapper .pzl-section,
    body .pzl-order-wrapper .pzl-section {
        padding: 15px;
        background: #ffffff !important;
        margin: 0;
        border-radius: 8px;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .pzl-order-wrapper .pzl-summary-sticky,
    body .pzl-order-wrapper .pzl-summary-sticky {
        background: #ffffff !important;
        padding: 15px;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .pzl-order-wrapper .pzl-package-btn,
    body .pzl-order-wrapper .pzl-package-btn {
        background: #ffffff !important;
    }
    
    .pzl-addon-item,
    .pzl-order-wrapper .pzl-addon-item,
    body .pzl-order-wrapper .pzl-addon-item {
        background: #ffffff !important;
        flex-wrap: wrap;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .pzl-modal-content,
    .pzl-modal .pzl-modal-content,
    body .pzl-modal .pzl-modal-content {
        background: #fff !important;
        padding: 20px 15px;
        margin: 10px;
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 40px);
        overflow-y: auto;
        box-sizing: border-box;
    }
    
    .pzl-modal-title {
        font-size: 20px !important;
        padding-right: 50px;
        text-align: left;
        word-wrap: break-word;
    }
    
    .pzl-modal-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 20px;
        z-index: 10;
    }
    
    .pzl-dialog-title {
        font-size: 18px !important;
        padding-right: 45px;
        text-align: left;
        word-wrap: break-word;
    }
    
    .pzl-modal-actions,
    .pzl-dialog-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .pzl-modal-actions .pzl-btn,
    .pzl-dialog-actions .pzl-btn {
        width: 100% !important;
        padding: 12px 15px !important;
        font-size: 13px !important;
        white-space: normal !important;
        text-align: center;
    }
    
    .pzl-letter-groups-grid {
        grid-template-columns: 1fr;
    }
    
    .pzl-form-row-half {
        grid-template-columns: 1fr;
    }
    
    .pzl-addon-select-btn {
        width: 100%;
        margin-top: 10px;
        text-align: center;
    }
    
    /* Predefined package modal mobile */
    .pzl-predefined-item {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .pzl-predefined-item-name {
        flex: 1 1 100%;
        order: 1;
    }
    
    .pzl-predefined-item-price {
        order: 2;
        margin: 0;
    }
    
    .pzl-predefined-item-swap {
        order: 3;
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
    
    .pzl-predefined-total {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    /* Addon modal mobile */
    .pzl-addon-products {
        grid-template-columns: 1fr !important;
    }
    
    .pzl-addon-product {
        padding: 12px;
    }
    
    .pzl-addon-product-image {
        width: 60px !important;
        height: 60px !important;
    }
    
    /* Swap modal mobile */
    .pzl-swap-products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
    }
    
    .pzl-swap-item {
        padding: 10px;
    }
    
    .pzl-swap-item img {
        width: 60px;
        height: 60px;
    }
    
    /* Letter card modal mobile */
    .pzl-letter-group-card .pzl-card-body {
        padding: 15px;
    }
    
    .pzl-card-select-btn {
        width: 100%;
        text-align: center;
    }
    
    /* Photo option mobile */
    .pzl-photo-header {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .pzl-photo-checkbox {
        flex: 1 1 100%;
    }
    
    .pzl-photo-info-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Checkbox rows mobile */
    .pzl-addon-item {
        flex-wrap: wrap;
    }
    
    .pzl-addon-item-info {
        flex: 1 1 60%;
    }
    
    .pzl-addon-select-btn {
        flex: 1 1 100%;
    }
}

/* Predefined Package Modal */
.pzl-modal-medium {
    max-width: 500px;
}

.pzl-predefined-content {
    margin: 20px 0;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 10px;
}

.pzl-predefined-subtitle {
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    font-size: 15px;
}

.pzl-predefined-items {
    padding: 0;
    margin: 0;
}

.pzl-predefined-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    color: #1a1a1a;
    font-size: 14px;
}

.pzl-predefined-item:last-child {
    border-bottom: none;
}

.pzl-predefined-item-name {
    flex: 1;
    font-weight: 500;
}

.pzl-predefined-item-name::before {
    content: "✓ ";
    color: #a50a0e;
    font-weight: bold;
    margin-right: 4px;
}

/* Pevná položka (Dárkové balení) - nelze vyměnit ani odebrat */
.pzl-predefined-item.pzl-fixed-item .pzl-predefined-item-name {
    font-weight: 600;
}

.pzl-predefined-item.pzl-fixed-item .pzl-predefined-item-swap {
    display: none !important;
}

#pzl-package-contents-items li.pzl-fixed-item {
    font-weight: 600;
}

.pzl-predefined-item-price {
    color: #666666;
    font-size: 13px;
    margin: 0 15px;
}

.pzl-predefined-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 16px;
}

.pzl-predefined-total strong {
    color: #a50a0e;
    font-size: 20px;
}

.pzl-predefined-note {
    font-size: 13px;
    color: #666666;
    text-align: center;
    margin: 15px 0;
    padding: 0 10px;
}

/* Custom package add button */
.pzl-btn-add-custom {
    width: auto !important;
    min-width: 36px !important;
    padding: 6px 14px !important;
    font-size: 18px !important;
    font-weight: 600;
    flex-shrink: 0;
}

.pzl-custom-add-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: #f8f8f8;
    border-radius: 8px;
    padding: 12px 15px !important;
    margin-bottom: 8px;
}

.pzl-custom-add-item .pzl-predefined-item-info {
    flex: 1 !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pzl-custom-selected-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px !important;
    margin-bottom: 8px;
}

.pzl-custom-selected-item .pzl-btn-remove-custom {
    width: 28px !important;
    min-width: 28px !important;
    height: 28px;
    padding: 0 !important;
    font-size: 18px;
    line-height: 1;
    border-radius: 50%;
    background: #f0f0f0;
    border: none;
    color: #666;
    flex-shrink: 0;
}

.pzl-custom-selected-item .pzl-btn-remove-custom:hover {
    background: #e0e0e0;
    color: #333;
}

/* Swap modal items */
.pzl-swap-item {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pzl-swap-item:hover {
    border-color: #ccc;
    transform: translateY(-2px);
}

.pzl-swap-item.selected {
    border-color: #a50a0e;
}

.pzl-swap-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.pzl-swap-item-name {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 5px;
    color: #1a1a1a;
}

.pzl-swap-item-price {
    font-size: 14px;
    color: #a50a0e;
    font-weight: 600;
}

.pzl-swap-item-diff {
    font-size: 12px;
    color: #888;
    margin-top: 3px;
}

.pzl-swap-item-diff.positive {
    color: #c0392b;
}

.pzl-swap-item-diff.negative {
    color: #27ae60;
}

#pzl-swap-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px 5px;
}

/* Edit Package Page in Modal */
.pzl-edit-categories {
    max-height: 50vh;
    overflow-y: auto;
    margin: 15px 0;
    padding-right: 5px;
}

.pzl-edit-category {
    margin-bottom: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    padding: 15px;
}

.pzl-edit-category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.pzl-edit-category-header h4 {
    margin: 0;
    font-size: 16px;
    color: #1a1a1a;
}

.pzl-edit-category-note {
    font-size: 12px;
    color: #888;
}

.pzl-edit-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}

.pzl-card-info-link {
    display: inline-block;
    margin-left: 10px;
    color: #c1272d;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.15s;
}

.pzl-card-info-link:hover {
    color: #a81f24;
    text-decoration: underline;
}

.pzl-card-info-content {
    padding: 5px 0 10px;
    line-height: 1.6;
    color: #333;
    font-size: 14px;
}

.pzl-card-info-content p { margin: 0 0 12px; }
.pzl-card-info-content p:last-child { margin-bottom: 0; }
.pzl-card-info-content ul, .pzl-card-info-content ol { margin: 0 0 12px 20px; }
.pzl-card-info-content li { margin-bottom: 6px; }
.pzl-card-info-content strong { color: #2d2d2d; }

.pzl-dark-mode .pzl-card-info-content { color: #ddd; }
.pzl-dark-mode .pzl-card-info-content strong { color: #fff; }
.pzl-dark-mode .pzl-card-info-link { color: #ff5c63; }
.pzl-dark-mode .pzl-card-info-link:hover { color: #ff8085; }

.pzl-edit-product {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.pzl-edit-product:hover {
    border-color: #ccc;
}

.pzl-edit-product.selected {
    border-color: #a50a0e;
    background: rgba(165, 10, 14, 0.03);
}

.pzl-edit-product.default-item {
    border-color: #a50a0e;
    background: rgba(165, 10, 14, 0.05);
}

.pzl-edit-product.default-item::before {
    content: "Předvoleno";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #a50a0e;
    color: #fff;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.pzl-edit-product-image {
    width: 60px;
    height: 60px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pzl-edit-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.pzl-edit-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pzl-edit-product-name {
    font-size: 12px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.3;
}

.pzl-edit-product-price {
    font-size: 11px;
    color: #a50a0e;
    font-weight: 600;
}

.pzl-edit-product-select {
    position: absolute;
    top: 8px;
    right: 8px;
}

.pzl-edit-product-select input {
    width: 18px;
    height: 18px;
    accent-color: #a50a0e;
    cursor: pointer;
}

.pzl-edit-total {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding-top: 10px;
    margin-top: 10px;
}

/* Quantity controls for drinks */
.pzl-edit-product-qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.pzl-qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.pzl-qty-btn:hover {
    border-color: #a50a0e;
    color: #a50a0e;
}

.pzl-qty-value {
    font-size: 14px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
    display: inline-block;
}

.pzl-edit-product-qty.has-qty {
    border-color: #a50a0e;
    background: rgba(165, 10, 14, 0.03);
}

.pzl-edit-product-qty .pzl-edit-product-select {
    display: none;
}

@media (max-width: 600px) {
    .pzl-edit-products {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pzl-edit-categories {
        max-height: 40vh;
    }
}

/* Swap modal */
.pzl-swap-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin: 20px 0;
    max-height: 400px;
    overflow-y: auto;
}

.pzl-swap-item {
    background: #fff;
    border: 2px solid var(--pzl-border);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.pzl-swap-item:hover {
    border-color: var(--pzl-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.pzl-swap-item.selected {
    border-color: var(--pzl-primary);
    background: rgba(165, 10, 14, 0.1);
}

.pzl-swap-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}

.pzl-swap-item-name {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.pzl-swap-item-price {
    font-size: 12px;
    color: var(--pzl-primary);
    font-weight: 600;
}

.pzl-swap-item-diff {
    font-size: 11px;
    margin-top: 4px;
}

.pzl-swap-item-diff.positive {
    color: #c44;
}

.pzl-swap-item-diff.negative {
    color: #4a4;
}

.pzl-swap-item-diff.neutral {
    color: #888;
}

#pzl-predefined-package-modal .pzl-dialog-actions {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 20px;
}

#pzl-predefined-package-modal .pzl-btn {
    flex: 1;
    justify-content: center;
    padding: 12px 20px !important;
    font-size: 14px !important;
    border-radius: 6px !important;
}

#pzl-predefined-package-modal .pzl-btn-primary {
    background: var(--pzl-primary) !important;
    border: 2px solid var(--pzl-primary) !important;
    color: #fff !important;
}

#pzl-predefined-package-modal .pzl-btn-primary:hover {
    background: #8a0000 !important;
    border-color: #8a0000 !important;
}

#pzl-predefined-package-modal .pzl-btn-secondary {
    background: transparent !important;
    border: 2px solid var(--pzl-border) !important;
    color: var(--pzl-text) !important;
}

#pzl-predefined-package-modal .pzl-btn-secondary:hover {
    background: rgba(165, 10, 14, 0.1) !important;
    border-color: var(--pzl-primary) !important;
}

/* Swap button in predefined items */
.pzl-predefined-item-swap {
    background: transparent !important;
    border: 1px solid var(--pzl-primary) !important;
    color: var(--pzl-primary) !important;
    padding: 4px 12px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.pzl-predefined-item-swap:hover {
    background: var(--pzl-primary) !important;
    color: #fff !important;
}

/* Custom Package Modal */
#pzl-custom-package-modal .pzl-modal-content {
    text-align: center;
    padding: 40px 30px;
}

.pzl-custom-package-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

#pzl-custom-package-modal .pzl-dialog-title {
    font-size: 22px;
    color: var(--pzl-text);
    margin-bottom: 15px;
}

.pzl-custom-package-text {
    font-size: 15px;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 25px;
}

#pzl-custom-package-modal .pzl-dialog-actions {
    display: flex;
    justify-content: center;
}

#pzl-custom-package-modal .pzl-btn-primary {
    background: var(--pzl-primary) !important;
    border: 2px solid var(--pzl-primary) !important;
    color: #fff !important;
    padding: 12px 40px !important;
    font-size: 15px !important;
    border-radius: 6px !important;
    cursor: pointer;
    transition: all 0.2s;
}

#pzl-custom-package-modal .pzl-btn-primary:hover {
    background: #8a0000 !important;
    border-color: #8a0000 !important;
}

@media (min-width: 480px) {
    #pzl-predefined-package-modal .pzl-dialog-actions {
        flex-direction: row;
    }
    
    #pzl-predefined-package-modal .pzl-btn {
        width: auto;
        flex: 1;
    }
}

/* Package Step Modal (after scratch) */
.pzl-modal-note {
    font-size: 13px;
    color: #666666;
    text-align: center;
    margin-top: -5px;
    margin-bottom: 25px;
}

.pzl-package-step-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.pzl-package-step-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 90px;
}

.pzl-package-step-btn:hover {
    border-color: #a50a0e;
    background: rgba(165, 10, 14, 0.03);
    transform: translateY(-1px);
}

.pzl-package-step-btn.active {
    border-color: #a50a0e;
    box-shadow: 0 0 0 1px #a50a0e;
}

.pzl-package-step-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 6px;
}

.pzl-package-step-icon svg {
    width: 100%;
    height: 100%;
}

.pzl-package-step-label {
    font-size: 11px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
    margin-bottom: 4px;
}

.pzl-package-step-price {
    font-size: 13px;
    color: #a50a0e;
    font-weight: 700;
}

@media (max-width: 768px) {
    .pzl-package-step-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 400px) {
    .pzl-package-step-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .pzl-package-step-btn {
        padding: 10px 6px;
        min-height: 80px;
    }
    
    .pzl-package-step-icon {
        width: 24px;
        height: 24px;
    }
    
    .pzl-package-step-label {
        font-size: 10px;
    }
    
    .pzl-package-step-price {
        font-size: 12px;
    }
}

/* Package Contents Modal */
.pzl-package-contents-list {
    margin: 20px 0;
    padding: 20px;
    background: rgba(245, 245, 245, 0.5);
    border-radius: 10px;
}

.pzl-package-contents-subtitle {
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 15px 0;
}

#pzl-package-contents-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

#pzl-package-contents-items li {
    padding: 10px 0;
    border-bottom: 1px dashed rgba(196, 166, 140, 0.4);
    color: #1a1a1a;
    font-size: 15px;
}

#pzl-package-contents-items li:last-child {
    border-bottom: none;
}

#pzl-package-contents-items li::before {
    content: "✓ ";
    color: #a50a0e;
    font-weight: bold;
}

#pzl-package-contents-modal .pzl-modal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

#pzl-package-contents-modal .pzl-modal-actions .pzl-btn {
    flex: 1;
    min-width: 140px;
}

@media (max-width: 500px) {
    #pzl-package-contents-modal .pzl-modal-actions {
        flex-direction: column;
    }
    
    #pzl-package-contents-modal .pzl-modal-actions .pzl-btn {
        width: 100%;
    }
}

/* Sample Link (inline next to price) */
.pzl-sample-link {
    display: inline;
    margin-left: 8px;
    padding: 0;
    background: none !important;
    border: none !important;
    color: #a50a0e !important;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
    vertical-align: baseline;
}

.pzl-sample-link:hover {
    color: #8b6f5c !important;
}

/* =====================================================
   LETTER-ONLY MODE STYLES
   ===================================================== */

.pzl-letter-only-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.pzl-letter-only-summary {
    margin-top: 20px;
}

.pzl-summary-box {
    background: rgba(255,255,255,0.8);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(165, 10, 14, 0.2);
}

.pzl-summary-box h3 {
    margin: 0 0 15px 0;
    color: #1a1a1a;
    font-size: 16px;
}

.pzl-summary-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(165, 10, 14, 0.1);
}

.pzl-summary-line.pzl-summary-total {
    border-bottom: none;
    border-top: 2px solid rgba(165, 10, 14, 0.2);
    margin-top: 10px;
    padding-top: 15px;
    font-weight: 600;
    font-size: 18px;
    color: #a50a0e;
}

/* Upsell Modal */
.pzl-modal-question {
    font-size: 16px;
    color: #1a1a1a;
    margin: 15px 0 25px;
    font-weight: 500;
}

.pzl-upsell-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.pzl-upsell-packages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

@media (max-width: 768px) {
    .pzl-upsell-packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .pzl-upsell-packages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

.pzl-upsell-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 12px 8px !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
    text-align: center !important;
    min-height: 90px !important;
}

.pzl-upsell-btn:hover {
    border-color: #a50a0e !important;
    background: rgba(165, 10, 14, 0.03) !important;
    transform: translateY(-1px) !important;
}

.pzl-upsell-btn.pzl-upsell-letter-only {
    flex-direction: row !important;
    gap: 10px !important;
    padding: 12px 20px !important;
    border-style: dashed !important;
    border-color: #ccc !important;
    background: #f9f9f9 !important;
    margin-top: 10px !important;
    min-height: auto !important;
}

.pzl-upsell-btn.pzl-upsell-letter-only:hover {
    border-color: #999 !important;
    background: #f5f5f5 !important;
}

.pzl-upsell-icon {
    width: 28px !important;
    height: 28px !important;
    flex-shrink: 0 !important;
}

.pzl-upsell-icon svg {
    width: 100% !important;
    height: 100% !important;
}

.pzl-upsell-letter-only .pzl-upsell-icon {
    width: 20px !important;
    height: 20px !important;
}

.pzl-upsell-label {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    line-height: 1.2 !important;
}

.pzl-upsell-letter-only .pzl-upsell-label {
    font-size: 13px !important;
    text-transform: none !important;
}

.pzl-upsell-price {
    font-size: 13px !important;
    color: #a50a0e !important;
    font-weight: 700 !important;
}

.pzl-upsell-letter-only .pzl-upsell-price {
    font-size: 12px !important;
    color: #666 !important;
    font-weight: 400 !important;
}

/* Package Edit Modal */
.pzl-package-edit-sections {
    max-height: 400px;
    overflow-y: auto;
    margin: 20px 0;
}

.pzl-package-edit-section {
    margin-bottom: 25px;
}

.pzl-package-edit-section h4 {
    margin: 0 0 12px 0;
    color: #1a1a1a;
    font-size: 15px;
    border-bottom: 1px solid rgba(165, 10, 14, 0.2);
    padding-bottom: 8px;
}

.pzl-package-edit-section h4 small {
    font-weight: normal;
    color: #999;
}

.pzl-package-edit-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.pzl-edit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.pzl-edit-item.selected {
    border-color: #a50a0e;
    background: rgba(165, 10, 14, 0.05);
}

.pzl-edit-item-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
    background: #f5f5f5;
}

.pzl-edit-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pzl-edit-item-info {
    text-align: center;
    flex: 1;
}

.pzl-edit-item-name {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
    line-height: 1.3;
}

.pzl-edit-item-price {
    font-size: 11px;
    color: #a50a0e;
}

.pzl-edit-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.pzl-edit-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #a50a0e;
    background: #fff;
    color: #a50a0e;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pzl-edit-item.selected .pzl-edit-toggle {
    background: #a50a0e;
    color: #fff;
}

.pzl-edit-minus,
.pzl-edit-plus {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #a50a0e;
    background: #fff;
    color: #a50a0e;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pzl-edit-minus:disabled,
.pzl-edit-plus:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pzl-edit-count {
    min-width: 20px;
    text-align: center;
    font-weight: 600;
    color: #1a1a1a;
}

.pzl-package-edit-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(165, 10, 14, 0.1);
    border-radius: 10px;
    margin-bottom: 20px;
}

.pzl-package-edit-summary span {
    color: #1a1a1a;
}

.pzl-package-edit-summary strong {
    font-size: 20px;
    color: #a50a0e;
}

/* Delivery Form in Modal */
.pzl-delivery-form h3 {
    margin: 20px 0 12px;
    color: #1a1a1a;
    font-size: 15px;
}

.pzl-delivery-form h3:first-child {
    margin-top: 0;
}

.pzl-form-row {
    margin-bottom: 12px;
}

.pzl-form-row label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    color: #1a1a1a;
}

.pzl-form-row input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.pzl-form-row input:focus {
    outline: none;
    border-color: #a50a0e;
}

.pzl-form-row-half {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
}

.pzl-delivery-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pzl-delivery-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
}

.pzl-delivery-option:has(input:checked) {
    border-color: #a50a0e;
    background: rgba(165, 10, 14, 0.05);
}

.pzl-order-total-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(165, 10, 14, 0.1);
    border-radius: 10px;
    margin-top: 20px;
}

.pzl-order-total-box span {
    color: #1a1a1a;
    font-weight: 500;
}

.pzl-order-total-box strong {
    font-size: 22px;
    color: #a50a0e;
}

@media (max-width: 600px) {
    .pzl-upsell-buttons {
        grid-template-columns: 1fr;
    }
    
    .pzl-package-edit-items {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pzl-form-row-half {
        grid-template-columns: 1fr;
    }
}

/* Letter-only mode - hide addons and package sections */
.pzl-order-wrapper.pzl-letter-only-mode .pzl-order-form .pzl-section[data-section="addons"],
.pzl-order-wrapper.pzl-letter-only-mode .pzl-order-form .pzl-section[data-section="package"],
.pzl-order-wrapper.pzl-letter-only-mode .pzl-order-form section[data-section="addons"],
.pzl-order-wrapper.pzl-letter-only-mode .pzl-order-form section[data-section="package"],
div.pzl-order-wrapper.pzl-letter-only-mode .pzl-section[data-section="addons"],
div.pzl-order-wrapper.pzl-letter-only-mode .pzl-section[data-section="package"],
.pzl-letter-only-mode .pzl-section[data-section="addons"],
.pzl-letter-only-mode .pzl-section[data-section="package"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Show addons when user selects a package */
.pzl-order-wrapper.pzl-letter-only-mode.show-addons .pzl-order-form .pzl-section[data-section="addons"],
.pzl-order-wrapper.pzl-letter-only-mode.show-addons .pzl-order-form section[data-section="addons"],
div.pzl-order-wrapper.pzl-letter-only-mode.show-addons .pzl-section[data-section="addons"],
.pzl-letter-only-mode.show-addons .pzl-section[data-section="addons"] {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
    margin: 0 0 30px 0 !important;
    padding: 30px !important;
}

/* Mystery Package Button - same style as other buttons */
.pzl-package-btn-mystery,
.pzl-order-wrapper .pzl-package-btn.pzl-package-btn-mystery,
button.pzl-package-btn-mystery {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
}

.pzl-package-btn-mystery:hover,
.pzl-order-wrapper .pzl-package-btn.pzl-package-btn-mystery:hover {
    border-color: #a50a0e !important;
}

.pzl-package-btn-mystery .pzl-package-label,
.pzl-order-wrapper .pzl-package-btn-mystery .pzl-package-label {
    color: #1a1a1a !important;
}

.pzl-package-btn-mystery .pzl-package-price,
.pzl-order-wrapper .pzl-package-btn-mystery .pzl-package-price {
    color: #a50a0e !important;
}

.pzl-package-btn-mystery.selected,
.pzl-package-btn-mystery.active,
.pzl-order-wrapper .pzl-package-btn.pzl-package-btn-mystery.selected,
.pzl-order-wrapper .pzl-package-btn.pzl-package-btn-mystery.active {
    border-color: #a50a0e !important;
    box-shadow: 0 0 0 1px #a50a0e !important;
}

/* Mystery Modal Options */
.pzl-mystery-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

@media (max-width: 600px) {
    .pzl-mystery-options {
        grid-template-columns: 1fr;
    }
}

.pzl-mystery-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-height: 120px;
}

.pzl-mystery-btn:hover {
    border-color: #a50a0e;
    background: #fdf5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(165, 10, 14, 0.15);
}

.pzl-mystery-btn:active {
    transform: translateY(0);
}

.pzl-mystery-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
}

.pzl-mystery-icon svg {
    width: 100%;
    height: 100%;
}

.pzl-mystery-label {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.pzl-mystery-price {
    font-size: 16px;
    font-weight: 700;
    color: #a50a0e;
}


/* Fix for mobile touch */
.pzl-btn,
button,
.pzl-modal-close,
.pzl-letter-group-card,
.pzl-visual-card,
.pzl-addon-card,
.pzl-upsell-btn {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

/* CRITICAL: Final mobile overflow fix for Chrome/Safari */
@media screen and (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        position: relative !important;
    }
    
    .pzl-order-wrapper,
    .pzl-order-container,
    .pzl-order-form,
    .pzl-order-summary,
    .pzl-section,
    .pzl-addons-list,
    .pzl-addon-item,
    .pzl-package-buttons,
    .pzl-summary-sticky {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    
    .pzl-addon-info,
    .pzl-addon-info strong,
    .pzl-addon-info p,
    .pzl-section-title,
    .pzl-section-subtitle {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        word-break: break-word !important;
    }
    
    /* Force no horizontal scroll */
    .pzl-order-wrapper {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    .pzl-section {
        padding: 15px !important;
    }
}

/* Mobile compact styles for modals */
@media (max-width: 600px) {
    /* Kompaktnější modal title */
    .pzl-modal-title {
        font-size: 18px !important;
        margin-bottom: 8px !important;
    }
    
    .pzl-modal-subtitle {
        font-size: 12px !important;
        margin-bottom: 8px !important;
    }
    
    /* Kompaktnější celková cena */
    .pzl-predefined-total {
        padding: 8px 12px !important;
        margin: 8px 0 !important;
        font-size: 13px !important;
    }
    
    .pzl-predefined-total strong,
    #pzl-edit-total-price,
    #pzl-contents-price {
        font-size: 16px !important;
    }
    
    .pzl-edit-total {
        padding-top: 5px !important;
        margin-top: 5px !important;
    }
    
    .pzl-edit-total .pzl-predefined-total {
        padding: 6px 10px !important;
        margin: 5px 0 !important;
    }
    
    /* Kompaktnější tlačítka v modálech */
    .pzl-modal-actions {
        gap: 6px !important;
        margin-top: 8px !important;
    }
    
    .pzl-modal-actions .pzl-btn,
    .pzl-dialog-actions .pzl-btn,
    #pzl-package-contents-modal .pzl-btn {
        padding: 8px 10px !important;
        font-size: 12px !important;
        min-height: 36px !important;
    }
    
    /* NÁPOJE - speciální kompaktní layout s qty - 3 vedle sebe */
    .pzl-edit-products-qty {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
    }
    
    .pzl-edit-product-qty {
        padding: 6px !important;
        min-height: auto !important;
    }
    
    .pzl-edit-product-qty .pzl-edit-product-image {
        width: 50px !important;
        height: 50px !important;
        margin-bottom: 4px !important;
    }
    
    .pzl-edit-product-qty .pzl-edit-product-name {
        font-size: 10px !important;
        line-height: 1.2 !important;
        max-height: 24px;
        overflow: hidden;
    }
    
    .pzl-edit-product-qty .pzl-edit-product-price {
        font-size: 10px !important;
    }
    
    /* Qty kontroly */
    .pzl-edit-product-qty-controls {
        gap: 4px !important;
        margin-top: 4px !important;
    }
    
    .pzl-qty-btn {
        width: 26px !important;
        height: 26px !important;
        font-size: 14px !important;
        border-radius: 4px !important;
    }
    
    .pzl-qty-value {
        font-size: 12px !important;
        min-width: 16px !important;
    }
    
    .pzl-edit-product-qty.default-item::before {
        font-size: 7px !important;
        padding: 1px 4px !important;
        top: -6px !important;
    }
    
    /* Ostatní produkty (sladkosti, dárky, kartičky) - taky 3 vedle sebe */
    .pzl-edit-products:not(.pzl-edit-products-qty) {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
    }
    
    .pzl-edit-product:not(.pzl-edit-product-qty) {
        padding: 6px !important;
        border-width: 1px !important;
        border-radius: 6px !important;
    }
    
    .pzl-edit-product:not(.pzl-edit-product-qty) .pzl-edit-product-image {
        width: 40px !important;
        height: 40px !important;
        margin-bottom: 4px !important;
    }
    
    .pzl-edit-product:not(.pzl-edit-product-qty) .pzl-edit-product-name {
        font-size: 9px !important;
        line-height: 1.2 !important;
    }
    
    .pzl-edit-product:not(.pzl-edit-product-qty) .pzl-edit-product-price {
        font-size: 9px !important;
    }
    
    .pzl-edit-product.default-item::before {
        font-size: 7px !important;
        padding: 1px 4px !important;
        top: -6px !important;
    }
    
    .pzl-edit-product-select input {
        width: 14px !important;
        height: 14px !important;
    }
    
    .pzl-edit-product-select {
        top: 3px !important;
        right: 3px !important;
    }
    
    /* Více místa pro obsah */
    .pzl-edit-categories {
        max-height: 55vh !important;
        margin: 8px 0 !important;
    }
    
    .pzl-edit-category {
        padding: 8px !important;
        margin-bottom: 10px !important;
        border-radius: 8px !important;
    }
    
    .pzl-edit-category-header {
        margin-bottom: 8px !important;
        padding-bottom: 6px !important;
        gap: 6px !important;
    }
    
    .pzl-edit-category-header h4 {
        font-size: 13px !important;
    }
    
    .pzl-edit-category-note {
        font-size: 10px !important;
    }
    
    /* Modal content padding */
    .pzl-modal-content {
        padding: 12px !important;
    }
    
    /* Contents list kompaktnější */
    .pzl-package-contents-list {
        margin: 8px 0 !important;
        padding: 10px !important;
    }
    
    #pzl-package-contents-items li {
        padding: 5px 0 !important;
        font-size: 12px !important;
    }
    
    .pzl-package-contents-subtitle {
        font-size: 13px !important;
        margin-bottom: 8px !important;
    }
}

/* Package badge (diagonal ribbon) */
.pzl-package-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-35deg);
    background: var(--badge-color, #8B7355);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 30px;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    pointer-events: none;
}

/* Disabled package button */
.pzl-package-btn.pzl-package-disabled,
.pzl-package-step-btn.pzl-package-disabled,
.pzl-upsell-btn.pzl-package-disabled {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
    overflow: hidden;
}

.pzl-package-btn.pzl-package-disabled:hover,
.pzl-package-step-btn.pzl-package-disabled:hover,
.pzl-upsell-btn.pzl-package-disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: #e0e0e0;
}

.pzl-package-btn.pzl-package-disabled *:not(.pzl-package-badge),
.pzl-package-step-btn.pzl-package-disabled *:not(.pzl-package-badge),
.pzl-upsell-btn.pzl-package-disabled *:not(.pzl-package-badge) {
    opacity: 0.5;
}



/* ==============================================
   AI LETTER GENERATION STYLES
   ============================================== */

/* Letter Intro Text */
.pzl-letter-intro {
    color: #495057 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
}

/* Letter Buttons Container */
.pzl-letter-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

@media (max-width: 500px) {
    .pzl-letter-buttons {
        flex-direction: column;
    }
}

/* Generate Button (red) */
.pzl-btn-generate {
    background: #a50a0e !important;
    border: none !important;
    color: white !important;
    padding: 14px 24px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.2s ease !important;
    flex: 1 !important;
    justify-content: center !important;
}

.pzl-btn-generate:hover {
    background: #8a0000 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(165, 10, 14, 0.3) !important;
}

/* Write Button (gray/black) */
.pzl-btn-write {
    background: #f5f5f5 !important;
    border: 2px solid #e0e0e0 !important;
    color: #1a1a1a !important;
    padding: 14px 24px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.2s ease !important;
    flex: 1 !important;
    justify-content: center !important;
}

.pzl-btn-write:hover {
    background: #1a1a1a !important;
    border-color: #1a1a1a !important;
    color: white !important;
}

/* Write Help Section */
.pzl-write-help {
    background: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    border-radius: 8px !important;
    padding: 15px 20px !important;
    margin: 20px 0 !important;
    text-align: center;
}

.pzl-write-help p {
    margin: 0 0 12px 0 !important;
    color: #495057 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.pzl-btn-generate-small {
    background: #a50a0e !important;
    border: none !important;
    color: white !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.pzl-btn-generate-small:hover {
    background: #8a0000 !important;
}

/* Write Modal Editor */
#pzl-write-modal .pzl-editor-wrapper {
    position: relative;
}

#pzl-write-letter-editor {
    min-height: 250px !important;
    font-family: 'Georgia', serif !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
    padding: 20px !important;
    background: #fffdf8 !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    resize: vertical !important;
    color: #1a1a1a !important;
}

#pzl-write-modal .pzl-char-counter {
    position: absolute;
    bottom: 10px;
    right: 15px;
    background: rgba(255,255,255,0.9);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
}

/* AI Mode Button - keeping for backward compatibility */
.pzl-btn-ai {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    color: white !important;
    position: relative;
    overflow: hidden;
}

.pzl-btn-ai:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
}

.pzl-btn-ai::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: pzl-ai-shimmer 3s infinite;
}

@keyframes pzl-ai-shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* AI Modal Form */
.pzl-ai-form {
    padding: 20px 0;
}

.pzl-ai-form-row {
    margin-bottom: 20px;
}

.pzl-ai-form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .pzl-ai-form-row-2col {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.pzl-ai-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pzl-ai-field label {
    font-weight: 600 !important;
    color: var(--pzl-text) !important;
    font-size: 14px !important;
}

.pzl-ai-field select,
.pzl-ai-field input,
.pzl-ai-field textarea {
    padding: 0 15px !important;
    height: 48px !important;
    line-height: 48px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    transition: all 0.2s ease !important;
    background-color: #ffffff !important;
    color: #1a1a1a !important;
    width: 100% !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #1a1a1a !important;
    vertical-align: middle !important;
}

.pzl-ai-field textarea {
    height: auto !important;
    line-height: 1.5 !important;
    padding: 12px 15px !important;
}

.pzl-ai-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a1a1a' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    background-color: #ffffff !important;
    padding-right: 40px !important;
    cursor: pointer !important;
    color: #1a1a1a !important;
    -webkit-text-fill-color: #1a1a1a !important;
}

.pzl-ai-field select option {
    color: #1a1a1a !important;
    background-color: #ffffff !important;
    padding: 10px !important;
    -webkit-text-fill-color: #1a1a1a !important;
    line-height: 1.5 !important;
}

/* Fix pro theme overrides */
.pzl-order-wrapper .pzl-ai-field select,
.pzl-order-wrapper .pzl-ai-field input,
.pzl-order-wrapper .pzl-ai-field textarea {
    color: #1a1a1a !important;
    -webkit-text-fill-color: #1a1a1a !important;
    opacity: 1 !important;
}

.pzl-order-wrapper .pzl-ai-field select {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 44px !important;
}

.pzl-ai-field select:focus,
.pzl-ai-field input:focus,
.pzl-ai-field textarea:focus {
    border-color: #667eea !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15) !important;
}

.pzl-ai-field textarea {
    resize: vertical;
    min-height: 80px;
}

.pzl-ai-field .pzl-char-counter {
    text-align: right;
    font-size: 12px;
    color: var(--pzl-text-light);
    margin-top: 4px;
}

/* AI Info Box */
.pzl-ai-info {
    background: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    border-radius: var(--pzl-radius) !important;
    padding: 15px 20px !important;
    margin-top: 20px;
}

.pzl-ai-info p {
    margin: 0 !important;
    color: #495057 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

/* AI Generate Button */
.pzl-btn-ai-generate {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    padding: 14px 30px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

.pzl-btn-ai-generate:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%) !important;
    transform: translateY(-2px);
}

.pzl-btn-ai-generate:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* AI Loading State */
.pzl-ai-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.pzl-ai-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f4ff;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: pzl-spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes pzl-spin {
    to { transform: rotate(360deg); }
}

.pzl-ai-loading p {
    color: var(--pzl-text-light);
    font-size: 15px;
    margin: 0;
}

/* AI Preview Modal */
#pzl-ai-preview-modal .pzl-editor-wrapper {
    position: relative;
}

#pzl-ai-letter-editor {
    min-height: 250px !important;
    font-family: 'Georgia', serif !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
    padding: 20px !important;
    background: #fffdf8 !important;
    border: 2px solid var(--pzl-border) !important;
}

#pzl-ai-preview-modal .pzl-char-counter {
    position: absolute;
    bottom: 10px;
    right: 15px;
    background: rgba(255,255,255,0.9);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--pzl-text-light);
}

/* Regenerate button */
#pzl-ai-regenerate {
    background: transparent !important;
    border: 2px solid #667eea !important;
    color: #667eea !important;
}

#pzl-ai-regenerate:hover {
    background: #667eea !important;
    color: white !important;
}

/* AI Mode indicator in letter preview */
.pzl-letter-ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Hide classic letter modal when AI is enabled */
.pzl-ai-mode #pzl-letter-modal,
.pzl-ai-mode #pzl-editor-modal {
    display: none !important;
}

/* Letter Done Button */
.pzl-btn-letter-done {
    background: #2e7d32 !important;
    border: none !important;
    color: white !important;
    padding: 14px 24px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    justify-content: center !important;
}

.pzl-btn-letter-done:hover {
    background: #1b5e20 !important;
}

/* ==============================================
   DARK MODE STYLES
   ============================================== */

.pzl-dark-mode {
    --pzl-bg: #000000 !important;
    --pzl-card-bg: #1e1e1e !important;
    --pzl-text: #ffffff !important;
    --pzl-text-light: #b0b0b0 !important;
    --pzl-border: #333333 !important;
}

.pzl-dark-mode.pzl-order-wrapper {
    background-color: #000000 !important;
    color: #ffffff !important;
}

.pzl-dark-mode .pzl-order-container {
    background-color: #000000 !important;
}

.pzl-dark-mode .pzl-order-form {
    background-color: #000000 !important;
    color: #ffffff !important;
}

/* SIDEBAR / ORDER SUMMARY - MUST BE DARK */
.pzl-dark-mode .pzl-order-summary,
.pzl-order-wrapper.pzl-dark-mode .pzl-order-summary {
    background-color: #1e1e1e !important;
    color: #ffffff !important;
}

.pzl-dark-mode .pzl-summary-sticky,
.pzl-order-wrapper.pzl-dark-mode .pzl-summary-sticky {
    background-color: #1e1e1e !important;
    color: #ffffff !important;
}

.pzl-dark-mode .pzl-summary-title,
.pzl-order-wrapper.pzl-dark-mode .pzl-summary-title {
    color: #ffffff !important;
}

.pzl-dark-mode .pzl-summary-items,
.pzl-order-wrapper.pzl-dark-mode .pzl-summary-items {
    background-color: #1e1e1e !important;
}

.pzl-dark-mode .pzl-summary-item,
.pzl-order-wrapper.pzl-dark-mode .pzl-summary-item {
    background-color: #1e1e1e !important;
    border-color: #333333 !important;
    color: #ffffff !important;
}

.pzl-dark-mode .pzl-summary-item-info strong,
.pzl-order-wrapper.pzl-dark-mode .pzl-summary-item-info strong,
.pzl-dark-mode .pzl-summary-item strong,
.pzl-order-wrapper.pzl-dark-mode .pzl-summary-item strong {
    color: #ffffff !important;
}

.pzl-dark-mode .pzl-summary-item-info span,
.pzl-dark-mode .pzl-summary-letter-name,
.pzl-order-wrapper.pzl-dark-mode .pzl-summary-item-info span,
.pzl-order-wrapper.pzl-dark-mode .pzl-summary-letter-name {
    color: #b0b0b0 !important;
}

.pzl-dark-mode .pzl-summary-item-price,
.pzl-order-wrapper.pzl-dark-mode .pzl-summary-item-price {
    color: #ffffff !important;
}

.pzl-dark-mode .pzl-summary-main,
.pzl-order-wrapper.pzl-dark-mode .pzl-summary-main {
    background-color: #1e1e1e !important;
}

/* Delivery section in sidebar */
.pzl-dark-mode .pzl-delivery-section,
.pzl-order-wrapper.pzl-dark-mode .pzl-delivery-section {
    background-color: #1e1e1e !important;
}

.pzl-dark-mode .pzl-delivery-row,
.pzl-order-wrapper.pzl-dark-mode .pzl-delivery-row {
    background-color: #252525 !important;
    border-color: #333333 !important;
    color: #ffffff !important;
}

.pzl-dark-mode .pzl-delivery-row:hover,
.pzl-order-wrapper.pzl-dark-mode .pzl-delivery-row:hover {
    background-color: #2a2a2a !important;
}

.pzl-dark-mode .pzl-delivery-row-content strong,
.pzl-order-wrapper.pzl-dark-mode .pzl-delivery-row-content strong {
    color: #ffffff !important;
}

.pzl-dark-mode .pzl-delivery-row-value,
.pzl-order-wrapper.pzl-dark-mode .pzl-delivery-row-value {
    color: #b0b0b0 !important;
}

.pzl-dark-mode .pzl-delivery-row-btn,
.pzl-order-wrapper.pzl-dark-mode .pzl-delivery-row-btn {
    background-color: #333333 !important;
    border-color: #444444 !important;
    color: #ffffff !important;
}

.pzl-dark-mode .pzl-delivery-row-icon svg path,
.pzl-dark-mode .pzl-delivery-row-icon svg rect,
.pzl-dark-mode .pzl-delivery-row-icon svg circle {
    stroke: #ffffff !important;
}

/* Coupon section */
.pzl-dark-mode .pzl-summary-coupon {
    background-color: #1e1e1e !important;
}

.pzl-dark-mode .pzl-summary-coupon input {
    background-color: #2a2a2a !important;
    border-color: #444444 !important;
    color: #ffffff !important;
}

.pzl-dark-mode .pzl-coupon-message {
    color: #b0b0b0 !important;
}

/* Summary total */
.pzl-dark-mode .pzl-summary-total {
    background-color: #2a2a2a !important;
    border-color: #333333 !important;
    color: #ffffff !important;
}

.pzl-dark-mode .pzl-summary-total span,
.pzl-dark-mode .pzl-summary-total strong {
    color: #ffffff !important;
}

/* Payment icons */
.pzl-dark-mode .pzl-payment-icons {
    color: #b0b0b0 !important;
}

.pzl-dark-mode .pzl-payment-icons span {
    color: #b0b0b0 !important;
    background-color: #2a2a2a !important;
    border-color: #333333 !important;
}

/* Submit button - keep original color */
.pzl-dark-mode .pzl-btn-submit {
    /* Keep original red color */
}

.pzl-dark-mode .pzl-section {
    background-color: #000000 !important;
    border-color: #333333 !important;
}

.pzl-dark-mode .pzl-section-title,
.pzl-dark-mode .pzl-section-number,
.pzl-dark-mode h2,
.pzl-dark-mode h3,
.pzl-dark-mode label {
    color: #ffffff !important;
}

.pzl-dark-mode p,
.pzl-dark-mode .pzl-letter-intro {
    color: #b0b0b0 !important;
}

.pzl-dark-mode .pzl-letter-preview {
    background-color: #2a2a2a !important;
    border-color: #333333 !important;
}

.pzl-dark-mode .pzl-letter-preview p,
.pzl-dark-mode #pzl-letter-preview-text {
    color: #e0e0e0 !important;
}

/* Dark mode inputs */
.pzl-dark-mode input[type="text"],
.pzl-dark-mode input[type="email"],
.pzl-dark-mode input[type="tel"],
.pzl-dark-mode input[type="number"],
.pzl-dark-mode textarea,
.pzl-dark-mode select {
    background-color: #2a2a2a !important;
    border-color: #444444 !important;
    color: #ffffff !important;
}

.pzl-dark-mode input::placeholder,
.pzl-dark-mode textarea::placeholder {
    color: #888888 !important;
}

/* Dark mode modals - anthracite */
.pzl-dark-mode .pzl-modal-content {
    background-color: #1e1e1e !important;
    color: #ffffff !important;
    border: 1px solid #333333 !important;
}

.pzl-dark-mode .pzl-modal-title,
.pzl-dark-mode .pzl-modal-subtitle {
    color: #ffffff !important;
}

/* Modal close button - dark mode - more visible */
.pzl-dark-mode .pzl-modal-close,
.pzl-order-wrapper.pzl-dark-mode .pzl-modal-close {
    background-color: #333333 !important;
    border: 1px solid #555555 !important;
    color: #ffffff !important;
    width: 24px !important;
    height: 24px !important;
    font-size: 14px !important;
    font-weight: bold !important;
}

.pzl-dark-mode .pzl-modal-close:hover,
.pzl-order-wrapper.pzl-dark-mode .pzl-modal-close:hover {
    background-color: #a50a0e !important;
    border-color: #a50a0e !important;
    color: #ffffff !important;
}

/* Dark mode cards / package buttons */
.pzl-dark-mode .pzl-package-btn,
.pzl-dark-mode .pzl-visual-card,
.pzl-dark-mode .pzl-product-card,
.pzl-order-wrapper.pzl-dark-mode .pzl-package-btn,
.pzl-order-wrapper.pzl-dark-mode .pzl-visual-card,
.pzl-order-wrapper.pzl-dark-mode .pzl-product-card {
    background-color: #2a2a2a !important;
    border-color: #444444 !important;
    color: #cccccc !important;
}

.pzl-dark-mode .pzl-package-btn:hover,
.pzl-dark-mode .pzl-visual-card:hover,
.pzl-dark-mode .pzl-product-card:hover,
.pzl-order-wrapper.pzl-dark-mode .pzl-package-btn:hover,
.pzl-order-wrapper.pzl-dark-mode .pzl-visual-card:hover,
.pzl-order-wrapper.pzl-dark-mode .pzl-product-card:hover {
    border-color: #a50a0e !important;
    color: #ffffff !important;
}

.pzl-dark-mode .pzl-package-btn.active,
.pzl-dark-mode .pzl-package-btn.selected,
.pzl-order-wrapper.pzl-dark-mode .pzl-package-btn.active,
.pzl-order-wrapper.pzl-dark-mode .pzl-package-btn.selected {
    border-color: #a50a0e !important;
    border-width: 2px !important;
    color: #ffffff !important;
}

.pzl-dark-mode .pzl-package-name,
.pzl-dark-mode .pzl-product-name,
.pzl-dark-mode .pzl-visual-name,
.pzl-dark-mode .pzl-package-label,
.pzl-order-wrapper.pzl-dark-mode .pzl-package-name,
.pzl-order-wrapper.pzl-dark-mode .pzl-product-name,
.pzl-order-wrapper.pzl-dark-mode .pzl-visual-name,
.pzl-order-wrapper.pzl-dark-mode .pzl-package-label {
    color: #cccccc !important;
}

.pzl-dark-mode .pzl-package-btn:hover .pzl-package-name,
.pzl-dark-mode .pzl-package-btn:hover .pzl-package-label,
.pzl-order-wrapper.pzl-dark-mode .pzl-package-btn:hover .pzl-package-name,
.pzl-order-wrapper.pzl-dark-mode .pzl-package-btn:hover .pzl-package-label {
    color: #ffffff !important;
}

.pzl-dark-mode .pzl-package-price,
.pzl-dark-mode .pzl-product-price,
.pzl-dark-mode .pzl-visual-price,
.pzl-order-wrapper.pzl-dark-mode .pzl-package-price,
.pzl-order-wrapper.pzl-dark-mode .pzl-product-price,
.pzl-order-wrapper.pzl-dark-mode .pzl-visual-price {
    color: #999999 !important;
}

.pzl-dark-mode .pzl-package-btn:hover .pzl-package-price,
.pzl-order-wrapper.pzl-dark-mode .pzl-package-btn:hover .pzl-package-price {
    color: #ffffff !important;
}

/* Dark mode checkboxes and radio buttons */
.pzl-dark-mode .pzl-checkbox-label,
.pzl-dark-mode .pzl-radio-label {
    color: #ffffff !important;
}

/* Dark mode info boxes */
.pzl-dark-mode .pzl-ai-info,
.pzl-dark-mode .pzl-write-help {
    background-color: #2a2a2a !important;
    border-color: #444444 !important;
}

.pzl-dark-mode .pzl-ai-info p,
.pzl-dark-mode .pzl-write-help p {
    color: #b0b0b0 !important;
}

/* Dark mode AI fields */
.pzl-dark-mode .pzl-ai-field label {
    color: #ffffff !important;
}

.pzl-dark-mode .pzl-ai-field select,
.pzl-dark-mode .pzl-ai-field input,
.pzl-dark-mode .pzl-ai-field textarea {
    background-color: #2a2a2a !important;
    border-color: #444444 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.pzl-dark-mode .pzl-ai-field select option {
    background-color: #2a2a2a !important;
    color: #ffffff !important;
}

/* Dark mode editor */
.pzl-dark-mode #pzl-ai-letter-editor,
.pzl-dark-mode #pzl-write-letter-editor {
    background-color: #2a2a2a !important;
    color: #ffffff !important;
}

/* Dark mode delivery options in modal */
.pzl-dark-mode .pzl-delivery-option {
    background-color: #2a2a2a !important;
    border-color: #444444 !important;
    color: #ffffff !important;
}

.pzl-dark-mode .pzl-delivery-option.active {
    border-color: var(--pzl-primary) !important;
}

.pzl-dark-mode .pzl-delivery-name,
.pzl-dark-mode .pzl-delivery-price {
    color: #ffffff !important;
}

/* Dark mode recipient form */
.pzl-dark-mode .pzl-recipient-form {
    background-color: #1e1e1e !important;
}

/* Dark mode expandable rows */
.pzl-dark-mode .pzl-expandable-row {
    background-color: #1e1e1e !important;
    border-color: #333333 !important;
}

.pzl-dark-mode .pzl-expandable-header {
    color: #ffffff !important;
}

/* Keep button colors the same */
.pzl-dark-mode .pzl-btn-primary,
.pzl-dark-mode .pzl-btn-generate,
.pzl-dark-mode .pzl-btn-ai-generate {
    /* Buttons keep their original colors */
}

/* ==============================================
   DARK MODE - MOBILE RESPONSIVE FIXES
   ============================================== */

@media (max-width: 768px) {
    /* Package buttons on mobile */
    .pzl-dark-mode .pzl-package-btn,
    .pzl-order-wrapper.pzl-dark-mode .pzl-package-btn,
    body .pzl-dark-mode .pzl-package-btn {
        background-color: #2a2a2a !important;
        border-color: #444444 !important;
        color: #cccccc !important;
    }
    
    .pzl-dark-mode .pzl-package-label,
    .pzl-order-wrapper.pzl-dark-mode .pzl-package-label,
    body .pzl-dark-mode .pzl-package-label {
        color: #cccccc !important;
    }
    
    .pzl-dark-mode .pzl-package-price,
    .pzl-order-wrapper.pzl-dark-mode .pzl-package-price,
    body .pzl-dark-mode .pzl-package-price {
        color: #999999 !important;
    }
    
    /* Sidebar on mobile */
    .pzl-dark-mode .pzl-order-summary,
    .pzl-order-wrapper.pzl-dark-mode .pzl-order-summary,
    body .pzl-dark-mode .pzl-order-summary {
        background-color: #1e1e1e !important;
    }
    
    .pzl-dark-mode .pzl-summary-sticky,
    .pzl-order-wrapper.pzl-dark-mode .pzl-summary-sticky,
    body .pzl-dark-mode .pzl-summary-sticky {
        background-color: #1e1e1e !important;
    }
    
    /* Modal close on mobile */
    .pzl-dark-mode .pzl-modal-close,
    .pzl-order-wrapper.pzl-dark-mode .pzl-modal-close {
        width: 22px !important;
        height: 22px !important;
        font-size: 12px !important;
        top: 12px !important;
        right: 12px !important;
    }
}

@media (max-width: 600px) {
    /* Package buttons on small mobile */
    .pzl-dark-mode .pzl-package-btn,
    .pzl-order-wrapper.pzl-dark-mode .pzl-package-btn,
    body .pzl-dark-mode .pzl-package-btn,
    .pzl-dark-mode.pzl-order-wrapper .pzl-package-btn {
        background-color: #2a2a2a !important;
        border-color: #444444 !important;
        color: #cccccc !important;
    }
    
    .pzl-dark-mode .pzl-modal-close {
        width: 20px !important;
        height: 20px !important;
        font-size: 11px !important;
    }
}

/* Light mode - modal close improvements for visibility */
.pzl-modal-close {
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .pzl-modal-close {
        width: 22px !important;
        height: 22px !important;
        font-size: 12px !important;
        top: 12px !important;
        right: 12px !important;
    }
}

/* ==============================================
   DARK MODE - COMPREHENSIVE MOBILE FIX
   ============================================== */

/* Force dark mode on all screen sizes */
.pzl-dark-mode,
.pzl-dark-mode.pzl-order-wrapper,
.pzl-order-wrapper.pzl-dark-mode,
body .pzl-dark-mode {
    background-color: #000000 !important;
    color: #ffffff !important;
}

.pzl-dark-mode .pzl-order-container,
.pzl-order-wrapper.pzl-dark-mode .pzl-order-container,
body .pzl-dark-mode .pzl-order-container {
    background-color: #000000 !important;
}

.pzl-dark-mode .pzl-order-form,
.pzl-order-wrapper.pzl-dark-mode .pzl-order-form,
body .pzl-dark-mode .pzl-order-form {
    background-color: #000000 !important;
    color: #ffffff !important;
}

.pzl-dark-mode .pzl-section,
.pzl-order-wrapper.pzl-dark-mode .pzl-section,
body .pzl-dark-mode .pzl-section {
    background-color: #000000 !important;
    color: #ffffff !important;
}

.pzl-dark-mode .pzl-section-title,
.pzl-dark-mode h2,
.pzl-dark-mode h3,
.pzl-dark-mode label,
.pzl-dark-mode p,
.pzl-dark-mode span,
.pzl-order-wrapper.pzl-dark-mode .pzl-section-title,
.pzl-order-wrapper.pzl-dark-mode h2,
.pzl-order-wrapper.pzl-dark-mode h3,
.pzl-order-wrapper.pzl-dark-mode label,
.pzl-order-wrapper.pzl-dark-mode p,
body .pzl-dark-mode .pzl-section-title,
body .pzl-dark-mode h2,
body .pzl-dark-mode h3,
body .pzl-dark-mode label,
body .pzl-dark-mode p {
    color: #ffffff !important;
}

.pzl-dark-mode .pzl-letter-intro,
.pzl-order-wrapper.pzl-dark-mode .pzl-letter-intro,
body .pzl-dark-mode .pzl-letter-intro {
    color: #b0b0b0 !important;
}

/* Sidebar / Summary - all screens */
.pzl-dark-mode .pzl-order-summary,
.pzl-dark-mode .pzl-summary-sticky,
.pzl-dark-mode .pzl-summary-items,
.pzl-dark-mode .pzl-summary-item,
.pzl-dark-mode .pzl-delivery-section,
.pzl-order-wrapper.pzl-dark-mode .pzl-order-summary,
.pzl-order-wrapper.pzl-dark-mode .pzl-summary-sticky,
.pzl-order-wrapper.pzl-dark-mode .pzl-summary-items,
.pzl-order-wrapper.pzl-dark-mode .pzl-summary-item,
.pzl-order-wrapper.pzl-dark-mode .pzl-delivery-section,
body .pzl-dark-mode .pzl-order-summary,
body .pzl-dark-mode .pzl-summary-sticky,
body .pzl-dark-mode .pzl-summary-items,
body .pzl-dark-mode .pzl-summary-item,
body .pzl-dark-mode .pzl-delivery-section {
    background-color: #1e1e1e !important;
    color: #ffffff !important;
}

.pzl-dark-mode .pzl-delivery-row,
.pzl-order-wrapper.pzl-dark-mode .pzl-delivery-row,
body .pzl-dark-mode .pzl-delivery-row {
    background-color: #252525 !important;
    border-color: #333333 !important;
    color: #ffffff !important;
}

.pzl-dark-mode .pzl-summary-total,
.pzl-order-wrapper.pzl-dark-mode .pzl-summary-total,
body .pzl-dark-mode .pzl-summary-total {
    background-color: #252525 !important;
    color: #ffffff !important;
}

/* Package buttons - all screens */
.pzl-dark-mode .pzl-package-btn,
.pzl-order-wrapper.pzl-dark-mode .pzl-package-btn,
body .pzl-dark-mode .pzl-package-btn,
.pzl-dark-mode.pzl-order-wrapper .pzl-package-btn {
    background-color: #2a2a2a !important;
    border-color: #444444 !important;
    color: #cccccc !important;
}

.pzl-dark-mode .pzl-package-label,
.pzl-dark-mode .pzl-package-price,
.pzl-order-wrapper.pzl-dark-mode .pzl-package-label,
.pzl-order-wrapper.pzl-dark-mode .pzl-package-price,
body .pzl-dark-mode .pzl-package-label,
body .pzl-dark-mode .pzl-package-price {
    color: #cccccc !important;
}

/* Inputs - all screens */
.pzl-dark-mode input,
.pzl-dark-mode textarea,
.pzl-dark-mode select,
.pzl-order-wrapper.pzl-dark-mode input,
.pzl-order-wrapper.pzl-dark-mode textarea,
.pzl-order-wrapper.pzl-dark-mode select,
body .pzl-dark-mode input,
body .pzl-dark-mode textarea,
body .pzl-dark-mode select {
    background-color: #2a2a2a !important;
    border-color: #444444 !important;
    color: #ffffff !important;
}

/* Modals - all screens */
.pzl-dark-mode .pzl-modal-content,
.pzl-order-wrapper.pzl-dark-mode .pzl-modal-content,
body .pzl-dark-mode .pzl-modal-content {
    background-color: #1e1e1e !important;
    color: #ffffff !important;
}

.pzl-dark-mode .pzl-modal-title,
.pzl-dark-mode .pzl-modal-subtitle,
.pzl-order-wrapper.pzl-dark-mode .pzl-modal-title,
.pzl-order-wrapper.pzl-dark-mode .pzl-modal-subtitle,
body .pzl-dark-mode .pzl-modal-title,
body .pzl-dark-mode .pzl-modal-subtitle {
    color: #ffffff !important;
}

/* Buttons - write/generate */
.pzl-dark-mode .pzl-btn-write,
.pzl-order-wrapper.pzl-dark-mode .pzl-btn-write,
body .pzl-dark-mode .pzl-btn-write {
    background-color: #2a2a2a !important;
    border-color: #444444 !important;
    color: #ffffff !important;
}

/* Info boxes */
.pzl-dark-mode .pzl-ai-info,
.pzl-dark-mode .pzl-write-help,
.pzl-order-wrapper.pzl-dark-mode .pzl-ai-info,
.pzl-order-wrapper.pzl-dark-mode .pzl-write-help,
body .pzl-dark-mode .pzl-ai-info,
body .pzl-dark-mode .pzl-write-help {
    background-color: #2a2a2a !important;
    border-color: #444444 !important;
    color: #b0b0b0 !important;
}

/* Letter preview */
.pzl-dark-mode .pzl-letter-preview,
.pzl-order-wrapper.pzl-dark-mode .pzl-letter-preview,
body .pzl-dark-mode .pzl-letter-preview {
    background-color: #2a2a2a !important;
    border-color: #333333 !important;
    color: #ffffff !important;
}

/* AI form fields */
.pzl-dark-mode .pzl-ai-field label,
.pzl-order-wrapper.pzl-dark-mode .pzl-ai-field label,
body .pzl-dark-mode .pzl-ai-field label {
    color: #ffffff !important;
}

/* Payment section */
.pzl-dark-mode .pzl-payment-icons,
.pzl-dark-mode .pzl-payment-icons span,
.pzl-order-wrapper.pzl-dark-mode .pzl-payment-icons,
.pzl-order-wrapper.pzl-dark-mode .pzl-payment-icons span,
body .pzl-dark-mode .pzl-payment-icons,
body .pzl-dark-mode .pzl-payment-icons span {
    color: #888888 !important;
}

/* Coupon input */
.pzl-dark-mode .pzl-summary-coupon,
.pzl-order-wrapper.pzl-dark-mode .pzl-summary-coupon,
body .pzl-dark-mode .pzl-summary-coupon {
    background-color: #1e1e1e !important;
}

.pzl-dark-mode .pzl-summary-coupon input,
.pzl-order-wrapper.pzl-dark-mode .pzl-summary-coupon input,
body .pzl-dark-mode .pzl-summary-coupon input {
    background-color: #2a2a2a !important;
    border-color: #444444 !important;
    color: #ffffff !important;
}

/* ==============================================
   DARK MODE - ULTIMATE FIX FOR ALL ELEMENTS
   ============================================== */

/* Main wrapper and all backgrounds */
.pzl-dark-mode *,
.pzl-order-wrapper.pzl-dark-mode *,
body .pzl-order-wrapper.pzl-dark-mode * {
    border-color: #333333 !important;
}

/* Modal fix - force dark background */
.pzl-dark-mode .pzl-modal .pzl-modal-content,
.pzl-order-wrapper.pzl-dark-mode .pzl-modal .pzl-modal-content,
body .pzl-order-wrapper.pzl-dark-mode .pzl-modal .pzl-modal-content,
.pzl-dark-mode .pzl-modal-content,
.pzl-dark-mode #pzl-ai-modal .pzl-modal-content,
.pzl-dark-mode #pzl-write-modal .pzl-modal-content,
.pzl-dark-mode #pzl-visual-modal .pzl-modal-content,
.pzl-dark-mode #pzl-recipient-modal .pzl-modal-content,
.pzl-dark-mode #pzl-sender-modal .pzl-modal-content,
.pzl-dark-mode #pzl-date-modal .pzl-modal-content,
.pzl-dark-mode #pzl-method-modal .pzl-modal-content,
.pzl-dark-mode #pzl-package-modal .pzl-modal-content,
.pzl-dark-mode #pzl-ai-preview-modal .pzl-modal-content,
.pzl-dark-mode [id*="modal"] .pzl-modal-content {
    background-color: #1e1e1e !important;
    background: #1e1e1e !important;
    color: #ffffff !important;
}

/* Section backgrounds */
.pzl-dark-mode .pzl-section,
.pzl-dark-mode [data-section],
.pzl-dark-mode section,
.pzl-order-wrapper.pzl-dark-mode .pzl-section,
.pzl-order-wrapper.pzl-dark-mode [data-section],
.pzl-order-wrapper.pzl-dark-mode section {
    background-color: #000000 !important;
    background: #000000 !important;
    color: #ffffff !important;
}

/* Form area */
.pzl-dark-mode .pzl-order-form,
.pzl-dark-mode .pzl-form-section,
.pzl-order-wrapper.pzl-dark-mode .pzl-order-form,
.pzl-order-wrapper.pzl-dark-mode .pzl-form-section {
    background-color: #000000 !important;
    background: #000000 !important;
}

/* AI Form fields */
.pzl-dark-mode .pzl-ai-form,
.pzl-dark-mode .pzl-ai-form-row,
.pzl-dark-mode .pzl-ai-field,
.pzl-order-wrapper.pzl-dark-mode .pzl-ai-form,
.pzl-order-wrapper.pzl-dark-mode .pzl-ai-form-row,
.pzl-order-wrapper.pzl-dark-mode .pzl-ai-field {
    background-color: transparent !important;
    color: #ffffff !important;
}

/* All text elements white */
.pzl-dark-mode h1,
.pzl-dark-mode h2,
.pzl-dark-mode h3,
.pzl-dark-mode h4,
.pzl-dark-mode h5,
.pzl-dark-mode h6,
.pzl-dark-mode p,
.pzl-dark-mode span,
.pzl-dark-mode label,
.pzl-dark-mode strong,
.pzl-dark-mode .pzl-modal-title,
.pzl-dark-mode .pzl-modal-subtitle,
.pzl-dark-mode .pzl-section-title,
.pzl-order-wrapper.pzl-dark-mode h1,
.pzl-order-wrapper.pzl-dark-mode h2,
.pzl-order-wrapper.pzl-dark-mode h3,
.pzl-order-wrapper.pzl-dark-mode h4,
.pzl-order-wrapper.pzl-dark-mode h5,
.pzl-order-wrapper.pzl-dark-mode h6,
.pzl-order-wrapper.pzl-dark-mode p,
.pzl-order-wrapper.pzl-dark-mode span,
.pzl-order-wrapper.pzl-dark-mode label,
.pzl-order-wrapper.pzl-dark-mode strong,
.pzl-order-wrapper.pzl-dark-mode .pzl-modal-title,
.pzl-order-wrapper.pzl-dark-mode .pzl-modal-subtitle,
.pzl-order-wrapper.pzl-dark-mode .pzl-section-title {
    color: #ffffff !important;
}

/* Intro text lighter */
.pzl-dark-mode .pzl-letter-intro,
.pzl-dark-mode .pzl-modal-subtitle,
.pzl-order-wrapper.pzl-dark-mode .pzl-letter-intro,
.pzl-order-wrapper.pzl-dark-mode .pzl-modal-subtitle {
    color: #b0b0b0 !important;
}

/* Inputs and textareas in modals */
.pzl-dark-mode input[type="text"],
.pzl-dark-mode input[type="email"],
.pzl-dark-mode input[type="tel"],
.pzl-dark-mode input[type="number"],
.pzl-dark-mode input[type="date"],
.pzl-dark-mode textarea,
.pzl-dark-mode select,
.pzl-order-wrapper.pzl-dark-mode input[type="text"],
.pzl-order-wrapper.pzl-dark-mode input[type="email"],
.pzl-order-wrapper.pzl-dark-mode input[type="tel"],
.pzl-order-wrapper.pzl-dark-mode input[type="number"],
.pzl-order-wrapper.pzl-dark-mode input[type="date"],
.pzl-order-wrapper.pzl-dark-mode textarea,
.pzl-order-wrapper.pzl-dark-mode select {
    background-color: #2a2a2a !important;
    background: #2a2a2a !important;
    border-color: #444444 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.pzl-dark-mode input::placeholder,
.pzl-dark-mode textarea::placeholder,
.pzl-order-wrapper.pzl-dark-mode input::placeholder,
.pzl-order-wrapper.pzl-dark-mode textarea::placeholder {
    color: #888888 !important;
    -webkit-text-fill-color: #888888 !important;
}

/* Write button gray background */
.pzl-dark-mode .pzl-btn-write,
.pzl-order-wrapper.pzl-dark-mode .pzl-btn-write {
    background-color: #333333 !important;
    background: #333333 !important;
    border-color: #444444 !important;
    color: #ffffff !important;
}

.pzl-dark-mode .pzl-btn-write:hover,
.pzl-order-wrapper.pzl-dark-mode .pzl-btn-write:hover {
    background-color: #1a1a1a !important;
    background: #1a1a1a !important;
}

/* Modal actions area */
.pzl-dark-mode .pzl-modal-actions,
.pzl-order-wrapper.pzl-dark-mode .pzl-modal-actions {
    background-color: #1e1e1e !important;
    background: #1e1e1e !important;
}

/* Secondary buttons in modals */
.pzl-dark-mode .pzl-btn-secondary,
.pzl-order-wrapper.pzl-dark-mode .pzl-btn-secondary {
    background-color: #333333 !important;
    background: #333333 !important;
    border-color: #444444 !important;
    color: #ffffff !important;
}

/* Editor wrapper */
.pzl-dark-mode .pzl-editor-wrapper,
.pzl-order-wrapper.pzl-dark-mode .pzl-editor-wrapper {
    background-color: #1e1e1e !important;
    background: #1e1e1e !important;
}

/* Char counter */
.pzl-dark-mode .pzl-char-counter,
.pzl-order-wrapper.pzl-dark-mode .pzl-char-counter {
    color: #888888 !important;
    background-color: rgba(30,30,30,0.9) !important;
}

/* Package grid in modals */
.pzl-dark-mode .pzl-packages-grid,
.pzl-dark-mode .pzl-visual-grid,
.pzl-dark-mode .pzl-products-grid,
.pzl-order-wrapper.pzl-dark-mode .pzl-packages-grid,
.pzl-order-wrapper.pzl-dark-mode .pzl-visual-grid,
.pzl-order-wrapper.pzl-dark-mode .pzl-products-grid {
    background-color: transparent !important;
}

/* Visual cards */
.pzl-dark-mode .pzl-visual-card,
.pzl-dark-mode .pzl-product-card,
.pzl-order-wrapper.pzl-dark-mode .pzl-visual-card,
.pzl-order-wrapper.pzl-dark-mode .pzl-product-card {
    background-color: #2a2a2a !important;
    background: #2a2a2a !important;
    border-color: #444444 !important;
    color: #cccccc !important;
}
