/**
 * Milenecký Azyl - Frontend Rezervační Formulář
 */

/* Reset a základní styly */
.ma-reservation {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.ma-reservation * {
    box-sizing: border-box;
}

.ma-reservation h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 25px 0;
    text-align: center;
}

.ma-reservation h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 20px 0 15px 0;
}

/* Progress bar */
.ma-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    padding: 0 10px;
}

.ma-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.ma-progress-step::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.ma-progress-step:last-child::after {
    display: none;
}

.ma-progress-step .step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.ma-progress-step .step-label {
    font-size: 11px;
    color: #999;
    margin-top: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.ma-progress-step.active .step-number,
.ma-progress-step.completed .step-number {
    background: #aa8b5f;
    color: #fff;
}

.ma-progress-step.active .step-label,
.ma-progress-step.completed .step-label {
    color: #aa8b5f;
}

.ma-progress-step.completed::after {
    background: #aa8b5f;
}

/* Krok 1: Apartmány */
.ma-apartmany-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.ma-apartman-card {
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ma-apartman-card:hover {
    border-color: #aa8b5f;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(170,139,95,0.15);
}

.ma-apartman-card.selected {
    border-color: #aa8b5f;
    background: rgba(170,139,95,0.05);
}

.ma-apartman-image {
    height: 180px;
    overflow: hidden;
    background: #f5f5f5;
}

.ma-apartman-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ma-apartman-card:hover .ma-apartman-image img {
    transform: scale(1.05);
}

.ma-apartman-image.ma-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.ma-apartman-name {
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    color: #333;
}

/* Krok 2: Délky */
.ma-delky-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.ma-delka-card {
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ma-delka-card:hover {
    border-color: #aa8b5f;
}

.ma-delka-card.selected {
    border-color: #aa8b5f;
    background: rgba(170,139,95,0.05);
}

.ma-delka-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.ma-delka-price {
    font-size: 22px;
    font-weight: 700;
    color: #aa8b5f;
}

.ma-delka-price small {
    font-size: 14px;
    font-weight: 400;
    color: #666;
}

/* Krok 3: Kalendář a sloty */
.ma-datetime-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.ma-calendar-wrapper {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
}

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

.ma-calendar-header span {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.ma-cal-nav {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #aa8b5f;
    padding: 5px 10px;
    transition: opacity 0.2s;
}

.ma-cal-nav:hover {
    opacity: 0.7;
}

.ma-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.ma-calendar-weekdays span {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    padding: 5px;
}

.ma-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.ma-cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    border: 1px solid transparent;
}

.ma-cal-day:hover:not(.disabled):not(.empty) {
    border-color: #aa8b5f;
}

.ma-cal-day.selected {
    background: #aa8b5f;
    color: #fff;
}

.ma-cal-day.today {
    border-color: #aa8b5f;
}

.ma-cal-day.disabled {
    color: #ccc;
    cursor: not-allowed;
    background: #f5f5f5;
}

.ma-cal-day.disabled.volno {
    background: #ffebee;
    color: #c62828;
    text-decoration: line-through;
}

.ma-cal-day.empty {
    background: transparent;
    cursor: default;
}

/* Sloty */
.ma-slots-wrapper {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
}

.ma-slots-wrapper h3 {
    margin-top: 0;
}

.ma-slots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.ma-slots-hint {
    grid-column: 1 / -1;
    text-align: center;
    color: #999;
    font-style: italic;
}

.ma-slot {
    padding: 12px 15px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.ma-slot:hover:not(.disabled) {
    border-color: #aa8b5f;
}

.ma-slot.selected {
    background: #aa8b5f;
    color: #fff;
    border-color: #aa8b5f;
}

.ma-slot.disabled {
    background: #f0f0f0;
    color: #999;
    cursor: not-allowed;
    border-color: #e0e0e0;
}

.ma-slot.disabled .ma-slot-time {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 2px;
}

.ma-slot.disabled .ma-slot-obsazeno {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: #dc3545;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Krok 4: Osoby a doplňky */
.ma-persons-section {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.ma-persons-section h3 {
    margin-top: 0;
}

.ma-info-text {
    color: #666;
    margin-bottom: 15px;
}

.ma-persons-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.ma-qty-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #aa8b5f;
    background: #fff;
    color: #aa8b5f;
    font-size: 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ma-qty-btn:hover {
    background: #aa8b5f;
    color: #fff;
}

#ma-persons-count {
    font-size: 24px;
    font-weight: 700;
    min-width: 40px;
    text-align: center;
}

.ma-persons-select {
    padding: 12px 20px;
    font-size: 18px;
    font-weight: 600;
    border: 2px solid #aa8b5f;
    border-radius: 8px;
    background: #fff;
    color: #333;
    cursor: pointer;
    min-width: 150px;
}

.ma-persons-select:focus {
    outline: none;
    border-color: #8a7049;
}

.ma-doplnky-section {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
}

.ma-doplnky-section h3 {
    margin-top: 0;
}

.ma-doplnek-item {
    display: flex;
    align-items: stretch;
    padding: 0;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    overflow: hidden;
}

.ma-doplnek-item:hover {
    border-color: #e8e8e8;
}

.ma-doplnek-item.selected {
    border-color: #aa8b5f;
    background: rgba(170,139,95,0.03);
}

/* Fotka doplňku - vpravo */
.ma-doplnek-foto {
    flex-shrink: 0;
    width: 120px;
    order: 3;
    cursor: pointer;
    margin-left: auto;
}

.ma-doplnek-foto-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
    display: block;
}

.ma-doplnek-foto:hover .ma-doplnek-foto-img {
    transform: scale(1.05);
}

.ma-doplnek-check {
    padding: 15px;
    padding-right: 10px;
    display: flex;
    align-items: center;
}

.ma-doplnek-check input {
    width: 20px;
    height: 20px;
    accent-color: #aa8b5f;
}

.ma-doplnek-info {
    flex: 1;
    padding: 15px 15px 15px 5px;
}

.ma-doplnek-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.ma-doplnek-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.ma-doplnek-price {
    font-weight: 600;
    color: #aa8b5f;
}

.ma-doplnek-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.ma-doplnek-qty label {
    font-size: 13px;
    color: #666;
}

.ma-doplnek-qty input,
.ma-doplnek-qty select {
    width: 70px;
    padding: 5px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

.ma-doplnek-qty-select {
    cursor: pointer;
}

/* Krok 5: Údaje a platba */
.ma-price-summary-top {
    background: linear-gradient(135deg, #f8f6f3 0%, #f0ebe4 100%);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

.ma-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.ma-price-row span {
    color: #666;
}

.ma-price-row strong {
    font-size: 20px;
    color: #333;
}

.ma-price-row.ma-final {
    border-top: 2px solid #aa8b5f;
    margin-top: 10px;
    padding-top: 15px;
}

.ma-price-row.ma-final strong {
    font-size: 26px;
    color: #aa8b5f;
}

.ma-voucher-section {
    padding: 10px 0;
    border-top: 1px solid #e0dbd4;
}

.ma-voucher-section label {
    color: #666;
}

#ma-voucher-toggle {
    color: #aa8b5f;
    text-decoration: none;
}

#ma-voucher-toggle:hover {
    text-decoration: underline;
}

#ma-voucher-input {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

#ma-voucher-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

#ma-voucher-result {
    margin-top: 10px;
    font-size: 14px;
}

#ma-voucher-result.success {
    color: #2e7d32;
}

#ma-voucher-result.error {
    color: #c62828;
}

.ma-client-form {
    max-width: 500px;
    margin: 0 auto 25px;
}

.ma-form-group {
    margin-bottom: 15px;
}

.ma-form-group label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.ma-form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s ease;
}

.ma-form-group input:focus {
    outline: none;
    border-color: #aa8b5f;
}

.ma-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 12px 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 14px;
}

.ma-warning.error {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.ma-payment-methods {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.ma-payment-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-left: 4px solid #ffc107;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #856404;
    text-align: center;
}

.ma-payment-notice strong {
    color: #856404;
}

.ma-payment-option {
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    padding: 15px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
    max-width: 140px;
    flex: 0 0 auto;
}

.ma-payment-option:hover {
    border-color: #aa8b5f;
}

.ma-payment-option.selected {
    border-color: #aa8b5f;
    background: rgba(170,139,95,0.05);
}

.ma-payment-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ma-payment-icon {
    font-size: 32px;
    line-height: 1;
    margin-bottom: 8px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ma-payment-icon img {
    max-width: 40px;
    max-height: 40px;
    width: auto;
    height: auto;
}

.ma-payment-label {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

/* Krok 6: Souhrn */
.ma-success-icon {
    width: 80px;
    height: 80px;
    background: #aa8b5f;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
}

.ma-summary-box {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 25px;
    max-width: 500px;
    margin: 0 auto 25px;
}

.ma-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e8e8e8;
}

.ma-summary-row:last-child {
    border-bottom: none;
}

.ma-summary-row span {
    color: #666;
}

.ma-summary-row strong {
    color: #333;
    text-align: right;
}

.ma-summary-row.ma-code strong {
    font-size: 24px;
    color: #aa8b5f;
    letter-spacing: 3px;
}

.ma-summary-row.ma-sum-total {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid #aa8b5f;
}

.ma-summary-row.ma-sum-total strong {
    font-size: 18px;
    color: #aa8b5f;
}

.ma-sum-doplnky-row {
    flex-direction: column;
    gap: 5px;
}

.ma-sum-doplnky-row span {
    margin-bottom: 5px;
}

.ma-sum-doplnky-row strong {
    font-weight: normal;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
}

.ma-qr-section {
    text-align: center;
    padding: 20px;
    background: #fff;
    border: 2px dashed #e8e8e8;
    border-radius: 10px;
    max-width: 300px;
    margin: 0 auto 25px;
}

.ma-qr-section h3 {
    margin-top: 0;
}

#ma-qr-code {
    margin: 15px auto;
}

#ma-qr-code img,
#ma-qr-code canvas {
    max-width: 200px;
}

.ma-qr-info {
    font-size: 13px;
    color: #666;
}

.ma-calendar-export {
    text-align: center;
}

/* Tlačítka */
.ma-btn {
    display: inline-block;
    padding: 12px 25px;
    border: 2px solid #aa8b5f;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    background: #fff;
    color: #aa8b5f;
}

.ma-btn:hover {
    background: #aa8b5f;
    color: #fff;
}

.ma-btn-primary {
    background: #aa8b5f;
    color: #fff;
}

.ma-btn-primary:hover {
    background: #8a7049;
    border-color: #8a7049;
}

.ma-btn-primary:disabled {
    background: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
}

.ma-btn-small {
    padding: 8px 15px;
    font-size: 13px;
}

.ma-btn-back {
    background: transparent;
    color: #666;
    border-color: #ddd;
}

.ma-btn-back:hover {
    background: #f5f5f5;
    color: #333;
    border-color: #ccc;
}

.ma-step {
    text-align: center;
}

.ma-step .ma-btn {
    margin: 20px 10px 0;
}

/* Responzivní design */
@media screen and (max-width: 768px) {
    .ma-reservation {
        padding: 20px 15px;
        border-radius: 0;
    }
    
    .ma-progress {
        margin-bottom: 25px;
    }
    
    .ma-progress-step .step-label {
        display: none;
    }
    
    .ma-progress-step .step-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .ma-datetime-container {
        grid-template-columns: 1fr;
    }
    
    .ma-slots-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .ma-apartmany-grid {
        grid-template-columns: 1fr;
    }
    
    .ma-delky-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .ma-reservation h2 {
        font-size: 20px;
    }
    
    .ma-payment-methods {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 480px) {
    .ma-delky-grid {
        grid-template-columns: 1fr;
    }
    
    .ma-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ma-payment-methods {
        grid-template-columns: 1fr;
    }
    
    .ma-btn {
        display: block;
        width: 100%;
        margin: 10px 0 !important;
    }
}

/* No doplnky message */
.ma-no-doplnky {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
}

/* Modální okno pro pravidla ubytování */
.ma-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ma-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.ma-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: ma-modal-appear 0.3s ease;
}

@keyframes ma-modal-appear {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.ma-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
}

.ma-modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: #1a1a1a;
}

.ma-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
}

.ma-modal-close:hover {
    color: #333;
}

.ma-modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
    line-height: 1.6;
    color: #444;
}

.ma-modal-body p {
    margin: 0 0 15px 0;
}

.ma-modal-body ul, .ma-modal-body ol {
    margin: 0 0 15px 0;
    padding-left: 25px;
}

.ma-modal-body li {
    margin-bottom: 8px;
}

.ma-modal-footer {
    padding: 15px 25px;
    border-top: 1px solid #e0e0e0;
    text-align: right;
}

.ma-modal-footer .ma-btn {
    margin: 0;
}

/* Terms checkbox styling */
.ma-terms-checkbox label:hover {
    color: #333;
}

.ma-terms-checkbox input[type="checkbox"]:checked {
    accent-color: #2271b1;
}

/* ========================================
   BALÍČKY - FRONTEND STYLY
   ======================================== */

.ma-balicek-card-frontend {
    display: flex;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    max-width: 700px;
    margin: 20px auto;
}

.ma-balicek-card-frontend .ma-balicek-image {
    width: 200px;
    min-height: 200px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.ma-balicek-card-frontend .ma-balicek-info {
    flex: 1;
    padding: 20px;
}

.ma-balicek-card-frontend .ma-balicek-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 5px;
    color: #1a1a1a;
}

.ma-balicek-card-frontend .ma-balicek-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0 0 10px;
}

.ma-balicek-card-frontend .ma-balicek-desc {
    font-size: 14px;
    color: #444;
    margin: 0 0 15px;
    line-height: 1.5;
}

.ma-balicek-card-frontend .ma-balicek-includes {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ma-balicek-card-frontend .ma-balicek-includes li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #444;
    margin-bottom: 5px;
}

.ma-balicek-card-frontend .ma-balicek-includes .dashicons {
    color: #00a32a;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.ma-balicek-card-frontend .ma-balicek-price-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 1px solid #e0e0e0;
}

.ma-balicek-card-frontend .ma-balicek-price {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    white-space: nowrap;
}

/* Balíček modal */
.ma-balicek-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: none;
}

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

.ma-balicek-modal .ma-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    z-index: -1;
}

.ma-balicek-modal .ma-modal-container {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: calc(100% - 40px);
    max-width: 500px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    margin: 20px;
}

.ma-balicek-modal .ma-modal-container * {
    box-sizing: border-box;
}

.ma-balicek-step.ma-hidden {
    display: none;
}

.ma-balicek-modal .ma-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
}

.ma-balicek-modal .ma-modal-header h2 {
    margin: 0;
    font-size: 20px;
}

.ma-balicek-modal .ma-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
}

.ma-balicek-modal .ma-modal-body {
    padding: 25px;
    overflow: hidden;
}

.ma-balicek-modal .ma-balicek-step h3 {
    margin: 0 0 20px;
    font-size: 16px;
    color: #333;
}

.ma-balicek-modal #ma-balicek-datum {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    box-sizing: border-box;
}

/* Sloty v balíčku */
.ma-balicek-modal .ma-balicek-slot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.ma-balicek-modal .ma-balicek-slot:hover:not(.disabled) {
    border-color: #2271b1;
    background: #f0f6fc;
}

.ma-balicek-modal .ma-balicek-slot.selected {
    border-color: #2271b1;
    background: #2271b1;
    color: #fff;
}

.ma-balicek-modal .ma-balicek-slot.disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.ma-balicek-modal .ma-balicek-slot .slot-time {
    font-weight: 600;
}

.ma-balicek-modal .ma-balicek-slot .slot-status {
    font-size: 12px;
    color: #d63638;
}

.ma-balicek-modal .ma-form-group {
    margin-bottom: 15px;
}

.ma-balicek-modal .ma-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
}

.ma-balicek-modal .ma-form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
}

.ma-balicek-modal .ma-payment-methods {
    margin-bottom: 15px;
}

.ma-balicek-modal .ma-payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
}

.ma-balicek-modal .ma-success-icon {
    width: 80px;
    height: 80px;
    background: #00a32a;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
}

.ma-balicek-modal .ma-summary-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.ma-balicek-modal .ma-summary-box p {
    margin: 0 0 10px;
}

.ma-balicek-modal .ma-summary-box .ma-sum-total {
    font-size: 18px;
    color: #2271b1;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

/* Responsive */
@media screen and (max-width: 600px) {
    .ma-balicek-card-frontend {
        flex-direction: column;
    }
    
    .ma-balicek-card-frontend .ma-balicek-image {
        width: 100%;
        height: 150px;
    }
    
    .ma-balicek-card-frontend .ma-balicek-price-box {
        flex-direction: row;
        justify-content: space-between;
        border-left: none;
        border-top: 1px solid #e0e0e0;
    }
    
    .ma-balicek-card-frontend .ma-balicek-price {
        margin-bottom: 0;
    }
    
    /* Fotky doplňků na mobilu */
    .ma-doplnek-foto {
        width: 80px;
    }
    
    .ma-doplnek-info {
        padding: 10px 10px 10px 0;
    }
    
    .ma-doplnek-check {
        padding: 10px;
    }
}

/* Lightbox pro fotky doplňků */
.ma-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ma-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.ma-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    z-index: 1;
}

.ma-lightbox-content img {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.ma-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ma-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.ma-lightbox-caption {
    text-align: center;
    color: #fff;
    font-size: 14px;
    margin-top: 15px;
    opacity: 0.8;
}

/* Speciální cena - upozornění */
.ma-special-price-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: 1px solid #ffb74d;
    border-radius: 8px;
    margin-bottom: 15px;
    animation: specialPulse 2s ease-in-out infinite;
}

@keyframes specialPulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(255, 152, 0, 0.2); }
    50% { box-shadow: 0 4px 16px rgba(255, 152, 0, 0.4); }
}

.ma-special-icon {
    font-size: 20px;
}

.ma-special-text {
    flex: 1;
    font-size: 14px;
    color: #e65100;
    font-weight: 500;
}

.ma-special-price-notice strong {
    font-size: 18px;
    color: #d84315;
    white-space: nowrap;
}
