/**
 * Tour Booking Actions Styles
 * For [tour_booking_actions_btn01] shortcode
 * Version: 2.5.0
 */

/* ================================
   Card Container
   ================================ */
.tour-booking-card-btn01 {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ================================
   Header Section
   ================================ */
.tba-header-btn01 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.tba-header-left-btn01 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tba-location-icon-btn01 {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.9;
}

.tba-tour-type-btn01 {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.tba-tour-code-btn01 {
    font-size: 13px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

/* ================================
   Tour Info Section
   ================================ */
.tba-info-btn01 {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.tba-info-row-btn01 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #4a5568;
    font-size: 14px;
    line-height: 1.5;
}

.tba-info-icon-btn01 {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #718096;
}

.tba-info-row-btn01 span {
    color: #2d3748;
    font-weight: 500;
}

/* ================================
   Airline Section
   ================================ */
.tba-airline-btn01 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #f0f0f0;
}

.tba-airline-left-btn01 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4a5568;
    font-size: 14px;
    font-weight: 500;
}

.tba-airline-left-btn01 .tba-info-icon-btn01 {
    color: #667eea;
}

.tba-airline-logo-btn01 {
    max-width: 100px;
    max-height: 32px;
    object-fit: contain;
}

/* ================================
   Price Section
   ================================ */
.tba-price-btn01 {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fff5f5 0%, #fff0f0 100%);
    border-bottom: 1px solid #f0f0f0;
}

.tba-price-original-btn01 {
    font-size: 14px;
    color: #a0aec0;
    text-decoration: line-through;
    margin-bottom: 2px;
}

.tba-price-current-btn01 {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.tba-price-label-btn01 {
    font-size: 13px;
    color: #718096;
    font-weight: 500;
}

.tba-price-value-btn01 {
    font-size: 28px;
    font-weight: 700;
    color: #e53e3e;
    line-height: 1;
}

.tba-price-value-btn01::after {
    content: " ฿";
    font-size: 16px;
    font-weight: 600;
}

/* ================================
   Buttons Section
   ================================ */
.tba-buttons-btn01 {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
}

/* Base Button Styles */
.tba-btn-btn01 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    text-align: center;
    line-height: 1.4;
}

.tba-btn-btn01:focus {
    outline: 3px solid rgba(102, 126, 234, 0.4);
    outline-offset: 2px;
}

/* Primary Button - Coral/Salmon (ดูโปรแกรม) */
.tba-btn-primary-btn01 {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.tba-btn-primary-btn01:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45);
    color: #fff;
}

.tba-btn-primary-btn01:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* Secondary Button - White with Border (จองผ่านเว็บ) */
.tba-btn-secondary-btn01 {
    background: #fff;
    color: #374151;
    border-color: #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.tba-btn-secondary-btn01:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    color: #1a202c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tba-btn-secondary-btn01:active {
    transform: translateY(0);
    background: #edf2f7;
}

/* Button Row (Phone + LINE) */
.tba-btn-row-btn01 {
    display: flex;
    gap: 10px;
}

.tba-btn-row-btn01 .tba-btn-btn01 {
    flex: 1;
}

/* Outline Buttons (Phone & LINE) */
.tba-btn-outline-btn01 {
    background: #fff;
    border-width: 2px;
    padding: 12px 16px;
    font-size: 15px;
}

/* Phone Button */
.tba-btn-phone-btn01 {
    color: #10b981;
    border-color: #10b981;
}

.tba-btn-phone-btn01:hover {
    background: #10b981;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.tba-btn-phone-btn01:active {
    transform: translateY(0);
    background: #059669;
}

/* LINE Button */
.tba-btn-line-btn01 {
    color: #00b900;
    border-color: #00b900;
}

.tba-btn-line-btn01:hover {
    background: #00b900;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 185, 0, 0.3);
}

.tba-btn-line-btn01:active {
    transform: translateY(0);
    background: #00a000;
}

/* Icons */
.tba-icon-btn01 {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.tba-icon-line-btn01 {
    width: 22px;
    height: 22px;
}

/* ================================
   Legacy Container (if used without card)
   ================================ */
.tour-booking-actions-btn01 {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 400px;
}

/* ================================
   Responsive Design
   ================================ */
@media (max-width: 480px) {
    .tour-booking-card-btn01 {
        border-radius: 12px;
    }

    .tba-header-btn01 {
        padding: 14px 16px;
    }

    .tba-tour-type-btn01 {
        font-size: 14px;
    }

    .tba-tour-code-btn01 {
        font-size: 12px;
        padding: 3px 8px;
    }

    .tba-info-btn01 {
        padding: 16px;
        gap: 10px;
    }

    .tba-info-row-btn01 {
        font-size: 13px;
    }

    .tba-airline-btn01 {
        padding: 14px 16px;
    }

    .tba-airline-logo-btn01 {
        max-width: 80px;
        max-height: 28px;
    }

    .tba-price-btn01 {
        padding: 14px 16px;
    }

    .tba-price-value-btn01 {
        font-size: 24px;
    }

    .tba-price-value-btn01::after {
        font-size: 14px;
    }

    .tba-buttons-btn01 {
        padding: 16px;
        gap: 8px;
    }

    .tba-btn-btn01 {
        padding: 12px 20px;
        font-size: 15px;
    }

    .tba-btn-row-btn01 {
        gap: 8px;
    }

    .tba-btn-outline-btn01 {
        padding: 10px 12px;
        font-size: 14px;
    }

    .tba-icon-btn01 {
        width: 18px;
        height: 18px;
    }

    .tba-icon-line-btn01 {
        width: 20px;
        height: 20px;
    }
}

/* Very small screens - stack phone/line buttons */
@media (max-width: 360px) {
    .tba-btn-row-btn01 {
        flex-direction: column;
    }

    .tba-header-btn01 {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .tba-tour-code-btn01 {
        align-self: flex-start;
    }
}

/* ================================
   Dark Mode Support
   ================================ */
@media (prefers-color-scheme: dark) {
    .tour-booking-card-btn01 {
        background: #1a202c;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .tba-info-btn01 {
        border-color: #2d3748;
    }

    .tba-info-row-btn01 {
        color: #a0aec0;
    }

    .tba-info-row-btn01 span {
        color: #e2e8f0;
    }

    .tba-info-icon-btn01 {
        color: #718096;
    }

    .tba-airline-btn01 {
        background: #2d3748;
        border-color: #4a5568;
    }

    .tba-airline-left-btn01 {
        color: #e2e8f0;
    }

    .tba-price-btn01 {
        background: linear-gradient(135deg, #2d2020 0%, #1a1515 100%);
        border-color: #4a5568;
    }

    .tba-price-original-btn01 {
        color: #718096;
    }

    .tba-price-label-btn01 {
        color: #a0aec0;
    }

    .tba-price-value-btn01 {
        color: #fc8181;
    }

    .tba-buttons-btn01 {
        background: #1a202c;
    }

    .tba-btn-secondary-btn01 {
        background: #2d3748;
        color: #f7fafc;
        border-color: #4a5563;
    }

    .tba-btn-secondary-btn01:hover {
        background: #4a5563;
        border-color: #718096;
        color: #fff;
    }

    .tba-btn-outline-btn01 {
        background: transparent;
    }

    .tba-btn-phone-btn01:hover {
        background: #10b981;
    }

    .tba-btn-line-btn01:hover {
        background: #00b900;
    }
}

/* ================================
   Reduced Motion
   ================================ */
@media (prefers-reduced-motion: reduce) {
    .tba-btn-btn01 {
        transition: none;
    }

    .tba-btn-btn01:hover {
        transform: none;
    }
}

/* ================================
   Print Styles
   ================================ */
@media print {
    .tour-booking-card-btn01 {
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }

    .tba-header-btn01 {
        background: #667eea !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .tba-btn-row-btn01,
    .tba-buttons-btn01 {
        display: none;
    }
}

/* ================================
   PDF Viewer Modal
   ================================ */
.pdf-modal-btn01 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pdf-modal-btn01.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
}

.pdf-modal-overlay-btn01 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
}

.pdf-modal-content-btn01 {
    position: relative;
    width: 95%;
    max-width: 1000px;
    height: 90vh;
    max-height: 90vh;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    animation: pdfModalSlideIn-btn01 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pdfModalSlideIn-btn01 {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Modal Header */
.pdf-modal-header-btn01 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    flex-shrink: 0;
}

.pdf-modal-title-btn01 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.pdf-modal-title-btn01 svg {
    opacity: 0.9;
}

.pdf-modal-close-btn01 {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fff;
}

.pdf-modal-close-btn01:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.pdf-modal-close-btn01:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* PDF Viewer Wrapper */
.pdf-viewer-wrapper-btn01 {
    flex: 1;
    position: relative;
    background: #f5f5f5;
    overflow: hidden;
}

.pdf-viewer-iframe-btn01 {
    width: 100%;
    height: 100%;
    border: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pdf-viewer-iframe-btn01.loaded {
    opacity: 1;
}

/* Loading Spinner */
.pdf-loading-btn01 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #666;
    font-size: 14px;
}

.pdf-loading-btn01.active {
    display: flex;
}

.pdf-loading-spinner-btn01 {
    width: 40px;
    height: 40px;
    border: 3px solid #e0e0e0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: pdfSpinner-btn01 0.8s linear infinite;
}

@keyframes pdfSpinner-btn01 {
    to {
        transform: rotate(360deg);
    }
}

/* Thumbnails Section */
.pdf-thumbs-wrapper-btn01 {
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
    padding: 12px 16px;
    flex-shrink: 0;
}

.pdf-thumbs-btn01 {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0;
}

.pdf-thumbs-btn01::-webkit-scrollbar {
    display: none;
}

.pdf-thumb-btn01 {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
    max-width: 200px;
}

.pdf-thumb-btn01:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.pdf-thumb-btn01.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.pdf-thumb-icon-btn01 {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-thumb-btn01.active .pdf-thumb-icon-btn01 svg {
    stroke: #fff;
}

.pdf-thumb-title-btn01 {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ================================
   PDF Modal - Responsive
   ================================ */
@media (max-width: 768px) {
    .pdf-modal-content-btn01 {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .pdf-modal-header-btn01 {
        padding: 14px 16px;
    }

    .pdf-modal-title-btn01 {
        font-size: 15px;
    }

    .pdf-thumbs-wrapper-btn01 {
        padding: 10px 12px;
    }

    .pdf-thumb-btn01 {
        padding: 8px 12px;
        min-width: 100px;
    }

    .pdf-thumb-title-btn01 {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .pdf-modal-header-btn01 {
        padding: 12px 14px;
    }

    .pdf-modal-title-btn01 {
        font-size: 14px;
        gap: 8px;
    }

    .pdf-modal-title-btn01 svg {
        width: 18px;
        height: 18px;
    }

    .pdf-modal-close-btn01 {
        width: 32px;
        height: 32px;
    }

    .pdf-modal-close-btn01 svg {
        width: 20px;
        height: 20px;
    }

    .pdf-thumbs-wrapper-btn01 {
        padding: 8px 10px;
    }

    .pdf-thumbs-btn01 {
        gap: 8px;
    }

    .pdf-thumb-btn01 {
        padding: 6px 10px;
        min-width: 80px;
        border-radius: 8px;
    }

    .pdf-thumb-icon-btn01 svg {
        width: 16px;
        height: 16px;
    }

    .pdf-thumb-title-btn01 {
        font-size: 11px;
    }
}

/* ================================
   PDF Modal - Dark Mode
   ================================ */
@media (prefers-color-scheme: dark) {
    .pdf-modal-content-btn01 {
        background: #1a202c;
    }

    .pdf-viewer-wrapper-btn01 {
        background: #2d3748;
    }

    .pdf-loading-btn01 {
        color: #a0aec0;
    }

    .pdf-loading-spinner-btn01 {
        border-color: #4a5568;
        border-top-color: #667eea;
    }

    .pdf-thumbs-wrapper-btn01 {
        background: #2d3748;
        border-top-color: #4a5568;
    }

    .pdf-thumb-btn01 {
        background: #1a202c;
        border-color: #4a5568;
        color: #e2e8f0;
    }

    .pdf-thumb-btn01:hover {
        background: #2d3748;
        border-color: #667eea;
    }

    .pdf-thumb-btn01.active {
        color: #fff;
    }
}

/* ================================
   PDF Modal - Reduced Motion
   ================================ */
@media (prefers-reduced-motion: reduce) {
    .pdf-modal-content-btn01,
    .pdf-viewer-iframe-btn01,
    .pdf-thumb-btn01,
    .pdf-modal-close-btn01,
    .pdf-loading-spinner-btn01 {
        animation: none;
        transition: none;
    }
}

/* ================================
   PDF Modal - Print (hide)
   ================================ */
@media print {
    .pdf-modal-btn01 {
        display: none !important;
    }
}

/* ================================
   Contact Modal (Phone & LINE)
   ================================ */
.contact-modal-btn01 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-modal-btn01.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
}

.contact-modal-overlay-btn01 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}

.contact-modal-content-btn01 {
    position: relative;
    width: 90%;
    max-width: 400px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    animation: contactModalSlideIn-btn01 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes contactModalSlideIn-btn01 {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Modal Header */
.contact-modal-header-btn01 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
}

/* LINE Header Color */
.contact-modal-header-line-btn01 {
    background: linear-gradient(135deg, #00b900 0%, #00a000 100%);
}

.contact-modal-title-btn01 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.contact-modal-title-btn01 svg {
    opacity: 0.95;
}

.contact-modal-close-btn01 {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fff;
}

.contact-modal-close-btn01:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.contact-modal-close-btn01:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Modal Body */
.contact-modal-body-btn01 {
    padding: 24px 20px;
}

/* Contact Info Card */
.contact-info-card-btn01 {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-radius: 16px;
    margin-bottom: 20px;
}

.contact-info-line-card-btn01 {
    flex-direction: column;
    text-align: center;
    background: linear-gradient(135deg, #f0fff0 0%, #e8ffe8 100%);
}

.contact-icon-btn01 {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
    flex-shrink: 0;
}

.contact-icon-phone-btn01 {
    color: #10b981;
}

.contact-details-btn01 {
    flex: 1;
    min-width: 0;
}

.contact-phone-number-btn01 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.contact-line-id-btn01 {
    font-size: 16px;
    font-weight: 600;
    color: #00a000;
    margin-bottom: 4px;
}

.contact-sales-name-btn01 {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* LINE QR Code */
.line-qr-wrapper-btn01 {
    width: 180px;
    height: 180px;
    background: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 185, 0, 0.1);
    margin-bottom: 16px;
}

.line-qr-image-btn01 {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

.line-qr-placeholder-btn01 {
    color: #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Action Button */
.contact-action-btn-btn01 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.contact-call-btn-btn01 {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.contact-call-btn-btn01:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
    color: #fff;
}

.contact-line-btn-btn01 {
    background: linear-gradient(135deg, #00b900 0%, #00a000 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 185, 0, 0.35);
}

.contact-line-btn-btn01:hover {
    background: linear-gradient(135deg, #00a000 0%, #008a00 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 185, 0, 0.45);
    color: #fff;
}

/* No Data State */
.contact-no-data-btn01 {
    text-align: center;
    padding: 30px 20px;
    color: #9ca3af;
}

.contact-no-data-btn01 svg {
    margin-bottom: 12px;
    opacity: 0.5;
}

.contact-no-data-btn01 p {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
}

/* Modal Footer (Admin Edit Button) */
.contact-modal-footer-btn01 {
    padding: 12px 20px;
    border-top: 1px solid #f3f4f6;
    background: #f9fafb;
    display: flex;
    justify-content: flex-end;
}

.contact-edit-trigger-btn01 {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.contact-edit-trigger-btn01:hover {
    color: #374151;
    background: #fff;
    border-color: #d1d5db;
}

/* Edit Form */
.contact-edit-mode-btn01 {
    animation: fadeInUp-btn01 0.3s ease;
}

@keyframes fadeInUp-btn01 {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-edit-form-btn01 {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form-group-btn01 {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-form-group-btn01 label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.contact-input-btn01 {
    padding: 12px 14px;
    font-size: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.2s ease;
    background: #fff;
    color: #1f2937;
}

.contact-input-btn01:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.line-modal-btn01 .contact-input-btn01:focus {
    border-color: #00b900;
    box-shadow: 0 0 0 3px rgba(0, 185, 0, 0.1);
}

.contact-input-btn01::placeholder {
    color: #9ca3af;
}

/* QR Upload */
.qr-upload-wrapper-btn01 {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* QR Dropzone */
.qr-dropzone-btn01 {
    position: relative;
    width: 100%;
    min-height: 160px;
    background: linear-gradient(135deg, #f0fff0 0%, #e8ffe8 100%);
    border: 2px dashed #00b900;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.qr-dropzone-btn01:hover {
    background: linear-gradient(135deg, #e8ffe8 0%, #d8ffd8 100%);
    border-color: #00a000;
    box-shadow: 0 4px 12px rgba(0, 185, 0, 0.15);
}

.qr-dropzone-btn01:focus {
    outline: none;
    border-color: #00a000;
    box-shadow: 0 0 0 3px rgba(0, 185, 0, 0.2);
}

.qr-dropzone-btn01.dragover {
    background: linear-gradient(135deg, #d8ffd8 0%, #c8ffc8 100%);
    border-color: #008a00;
    border-style: solid;
    transform: scale(1.02);
}

.qr-dropzone-btn01.uploading {
    pointer-events: none;
    opacity: 0.7;
}

/* QR Preview inside Dropzone */
.qr-dropzone-btn01 .qr-preview-btn01 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    border-radius: 0;
    z-index: 2;
    pointer-events: none;
}

.qr-preview-image-btn01 {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    display: none;
    background: #fff;
}

/* Dropzone Content */
.qr-dropzone-content-btn01 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    color: #00a000;
    text-align: center;
    z-index: 1;
}

.qr-dropzone-content-btn01 svg {
    opacity: 0.6;
}

.qr-dropzone-text-btn01 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #00a000;
}

.qr-dropzone-hint-btn01 {
    margin: 0;
    font-size: 12px;
    color: #6b9f6b;
}

/* Dropzone Hover Overlay */
.qr-dropzone-hover-btn01 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 185, 0, 0.9);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    z-index: 10;
}

.qr-dropzone-hover-btn01 p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.qr-dropzone-btn01.dragover .qr-dropzone-hover-btn01 {
    display: flex;
}

.qr-dropzone-btn01.dragover .qr-dropzone-content-btn01 {
    opacity: 0;
}

/* Upload Status */
.qr-upload-status-btn01 {
    min-height: 20px;
    text-align: center;
    font-size: 13px;
}

.qr-uploading-btn01 {
    color: #00a000;
    animation: pulse-btn01 1s infinite;
}

@keyframes pulse-btn01 {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.qr-upload-success-btn01 {
    color: #10b981;
}

.qr-upload-error-btn01 {
    color: #ef4444;
}

/* Legacy button style (if needed elsewhere) */
.qr-upload-btn-btn01 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #00a000;
    background: #f0fff0;
    border: 2px dashed #00b900;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qr-upload-btn-btn01:hover {
    background: #e8ffe8;
    border-color: #00a000;
}

/* Form Actions */
.contact-form-actions-btn01 {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.contact-cancel-btn-btn01,
.contact-save-btn-btn01 {
    flex: 1;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.contact-cancel-btn-btn01 {
    background: #f3f4f6;
    color: #6b7280;
}

.contact-cancel-btn-btn01:hover {
    background: #e5e7eb;
    color: #374151;
}

.contact-save-btn-btn01 {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.contact-save-btn-btn01:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.contact-save-btn-btn01:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.line-modal-btn01 .contact-save-btn-btn01 {
    background: linear-gradient(135deg, #00b900 0%, #00a000 100%);
    box-shadow: 0 2px 8px rgba(0, 185, 0, 0.25);
}

.line-modal-btn01 .contact-save-btn-btn01:hover {
    background: linear-gradient(135deg, #00a000 0%, #008a00 100%);
    box-shadow: 0 4px 12px rgba(0, 185, 0, 0.35);
}

/* Toast Notification */
.contact-toast-btn01 {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 14px 24px;
    background: #1f2937;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 9999999;
    opacity: 0;
    transition: all 0.3s ease;
}

.contact-toast-btn01.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.contact-toast-success-btn01 {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.contact-toast-error-btn01 {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* ================================
   Contact Modal - Responsive
   ================================ */
@media (max-width: 480px) {
    .contact-modal-content-btn01 {
        width: 95%;
        border-radius: 16px;
    }

    .contact-modal-header-btn01 {
        padding: 16px 18px;
    }

    .contact-modal-title-btn01 {
        font-size: 16px;
    }

    .contact-modal-body-btn01 {
        padding: 20px 18px;
    }

    .contact-info-card-btn01 {
        padding: 16px;
        gap: 14px;
    }

    .contact-icon-btn01 {
        width: 56px;
        height: 56px;
    }

    .contact-icon-btn01 svg {
        width: 28px;
        height: 28px;
    }

    .contact-phone-number-btn01 {
        font-size: 20px;
    }

    .contact-sales-name-btn01 {
        font-size: 13px;
    }

    .line-qr-wrapper-btn01 {
        width: 150px;
        height: 150px;
    }

    .contact-action-btn-btn01 {
        padding: 14px 20px;
        font-size: 15px;
    }

    .contact-modal-footer-btn01 {
        padding: 10px 18px;
    }

    .contact-input-btn01 {
        padding: 11px 12px;
        font-size: 14px;
    }

    .qr-dropzone-btn01 {
        min-height: 140px;
    }

    .qr-dropzone-content-btn01 svg {
        width: 32px;
        height: 32px;
    }

    .qr-dropzone-text-btn01 {
        font-size: 14px;
    }

    .qr-dropzone-hint-btn01 {
        font-size: 11px;
    }

    .contact-cancel-btn-btn01,
    .contact-save-btn-btn01 {
        padding: 11px 16px;
        font-size: 14px;
    }

    .contact-toast-btn01 {
        left: 16px;
        right: 16px;
        transform: translateX(0) translateY(20px);
        text-align: center;
    }

    .contact-toast-btn01.active {
        transform: translateX(0) translateY(0);
    }
}

/* ================================
   Contact Modal - Dark Mode
   ================================ */
@media (prefers-color-scheme: dark) {
    .contact-modal-content-btn01 {
        background: #1f2937;
    }

    .contact-modal-body-btn01 {
        background: #1f2937;
    }

    .contact-info-card-btn01 {
        background: linear-gradient(135deg, #1a2e25 0%, #1a2e25 100%);
    }

    .contact-info-line-card-btn01 {
        background: linear-gradient(135deg, #1a2e1a 0%, #1a2e1a 100%);
    }

    .contact-icon-btn01 {
        background: #2d3748;
    }

    .contact-phone-number-btn01 {
        color: #f3f4f6;
    }

    .contact-sales-name-btn01 {
        color: #9ca3af;
    }

    .line-qr-wrapper-btn01 {
        background: #2d3748;
    }

    .contact-no-data-btn01 {
        color: #6b7280;
    }

    .contact-modal-footer-btn01 {
        background: #111827;
        border-top-color: #374151;
    }

    .contact-edit-trigger-btn01 {
        color: #9ca3af;
        border-color: #374151;
    }

    .contact-edit-trigger-btn01:hover {
        color: #f3f4f6;
        background: #374151;
        border-color: #4b5563;
    }

    .contact-form-group-btn01 label {
        color: #e5e7eb;
    }

    .contact-input-btn01 {
        background: #374151;
        border-color: #4b5563;
        color: #f3f4f6;
    }

    .contact-input-btn01:focus {
        background: #1f2937;
    }

    .contact-input-btn01::placeholder {
        color: #6b7280;
    }

    .qr-dropzone-btn01 {
        background: linear-gradient(135deg, #1a2e1a 0%, #1a2e1a 100%);
        border-color: #00a000;
    }

    .qr-dropzone-btn01:hover {
        background: linear-gradient(135deg, #1f3a1f 0%, #1f3a1f 100%);
    }

    .qr-dropzone-content-btn01 {
        color: #00d900;
    }

    .qr-dropzone-text-btn01 {
        color: #00d900;
    }

    .qr-dropzone-hint-btn01 {
        color: #6b9f6b;
    }

    .qr-preview-image-btn01 {
        background: #2d3748;
    }

    .qr-upload-btn-btn01 {
        background: #1a2e1a;
        border-color: #00a000;
        color: #00d900;
    }

    .contact-cancel-btn-btn01 {
        background: #374151;
        color: #9ca3af;
    }

    .contact-cancel-btn-btn01:hover {
        background: #4b5563;
        color: #f3f4f6;
    }
}

/* ================================
   Contact Modal - Reduced Motion
   ================================ */
@media (prefers-reduced-motion: reduce) {
    .contact-modal-btn01,
    .contact-modal-content-btn01,
    .contact-modal-close-btn01,
    .contact-edit-mode-btn01,
    .contact-toast-btn01 {
        animation: none;
        transition: none;
    }
}

/* ================================
   Contact Modal - Print (hide)
   ================================ */
@media print {
    .contact-modal-btn01 {
        display: none !important;
    }
}

/* ================================
   LINE Modal - Multiple QR Carousel
   ================================ */
.line-modal-content-multi-btn01 {
    max-width: 580px;
    width: 95%;
}

.line-contacts-carousel-btn01 {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    position: relative;
}

.line-contacts-slider-btn01 {
    flex: 1;
    overflow: hidden;
    border-radius: 12px;
}

.line-contacts-track-btn01 {
    display: flex;
    transition: transform 0.3s ease;
}

.line-contact-card-btn01 {
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    text-align: center;
}

.line-contact-card-btn01 .line-qr-wrapper-btn01 {
    width: 200px;
    height: 200px;
    margin-bottom: 16px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.line-contact-card-btn01 .line-qr-image-btn01 {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.line-contact-card-btn01 .line-qr-placeholder-btn01 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0fff0 0%, #e8ffe8 100%);
    color: #00b900;
}

.line-contact-card-btn01 .contact-name-btn01 {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

/* Carousel Navigation */
.carousel-nav-btn01 {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #00b900 0%, #00a000 100%);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.carousel-nav-btn01:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 185, 0, 0.3);
}

.carousel-nav-btn01:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Carousel Indicators */
.carousel-indicators-btn01 {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 8px 0 16px;
}

.carousel-dot-btn01 {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}

.carousel-dot-btn01:hover {
    background: #9ca3af;
}

.carousel-dot-btn01.active {
    background: #00b900;
    transform: scale(1.2);
}

/* ================================
   LINE Modal - Edit Mode Multiple Contacts
   ================================ */
.line-global-settings-btn01 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.line-contacts-section-btn01 {
    margin-top: 8px;
}

.line-contacts-header-btn01 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.line-contacts-header-btn01 h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
}

.line-add-contact-btn01 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 2px dashed #00b900;
    border-radius: 8px;
    background: transparent;
    color: #00b900;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.line-add-contact-btn01:hover {
    background: #f0fff0;
    border-style: solid;
}

.line-contacts-list-btn01 {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 340px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    position: relative;
}

/* WordPress Media Library z-index fix */
.media-modal {
    z-index: 9999999 !important;
}

.media-modal-backdrop {
    z-index: 9999998 !important;
}

.line-contacts-list-btn01::-webkit-scrollbar {
    width: 6px;
}

.line-contacts-list-btn01::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.line-contacts-list-btn01::-webkit-scrollbar-thumb {
    background: #c5c5c5;
    border-radius: 3px;
}

.line-contacts-list-btn01::-webkit-scrollbar-thumb:hover {
    background: #a5a5a5;
}

/* Contact Entry Card */
.line-contact-entry-btn01 {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: visible;
    position: relative;
    z-index: 1;
}

.line-contact-entry-header-btn01 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: linear-gradient(135deg, #00b900 0%, #00a000 100%);
    color: #fff;
}

.line-contact-entry-number-btn01 {
    font-size: 13px;
    font-weight: 600;
}

.line-contact-remove-btn01 {
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.line-contact-remove-btn01:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.line-contact-entry-body-btn01 {
    padding: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.line-contact-entry-body-btn01 .contact-form-group-btn01 {
    margin-bottom: 0;
    position: relative;
}

.line-contact-entry-body-btn01 .qr-dropzone-btn01 {
    min-height: 120px;
    height: 120px;
    position: relative;
}

/* Empty State */
.line-contacts-empty-btn01 {
    text-align: center;
    padding: 32px 20px;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    color: #6b7280;
}

.line-contacts-empty-btn01 p {
    margin: 0;
    font-size: 14px;
}

/* ================================
   LINE Modal - Responsive
   ================================ */
@media (max-width: 480px) {
    .line-modal-content-multi-btn01 {
        max-width: 100%;
    }

    .line-contacts-carousel-btn01 {
        padding: 12px 4px;
    }

    .line-contact-card-btn01 .line-qr-wrapper-btn01 {
        width: 160px;
        height: 160px;
    }

    .carousel-nav-btn01 {
        width: 32px;
        height: 32px;
    }

    .line-global-settings-btn01 {
        grid-template-columns: 1fr;
    }

    .line-contact-entry-body-btn01 {
        grid-template-columns: 1fr;
    }

    .line-contact-entry-body-btn01 .qr-dropzone-btn01 {
        min-height: 100px;
    }
}

/* ================================
   LINE Modal - Dark Mode Carousel
   ================================ */
@media (prefers-color-scheme: dark) {
    .line-contact-card-btn01 .line-qr-wrapper-btn01 {
        background: #2d3748;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .line-contact-card-btn01 .contact-name-btn01 {
        color: #f3f4f6;
    }

    .line-contact-card-btn01 .line-qr-placeholder-btn01 {
        background: linear-gradient(135deg, #1f3a1f 0%, #1a2e1a 100%);
    }

    .carousel-dot-btn01 {
        background: #4b5563;
    }

    .carousel-dot-btn01:hover {
        background: #6b7280;
    }

    .line-global-settings-btn01 {
        border-bottom-color: #4b5563;
    }

    .line-contacts-header-btn01 h4 {
        color: #f3f4f6;
    }

    .line-add-contact-btn01:hover {
        background: #1f3a1f;
    }

    .line-contacts-list-btn01::-webkit-scrollbar-track {
        background: #374151;
    }

    .line-contacts-list-btn01::-webkit-scrollbar-thumb {
        background: #6b7280;
    }

    .line-contact-entry-btn01 {
        background: #374151;
        border-color: #4b5563;
    }

    .line-contacts-empty-btn01 {
        background: #374151;
        border-color: #4b5563;
        color: #9ca3af;
    }
}

/* ================================
   Phone Modal - Multiple Contacts
   ================================ */

/* Modal Sizing for Phone Multi */
.phone-modal-content-multi-btn01 {
    max-width: 520px;
    width: 95%;
}

/* Header Styling */
.contact-modal-header-phone-btn01 {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Phone Contacts Grid - 2x2 Layout */
.phone-contacts-grid-btn01 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px;
}

/* Contact Card in Grid */
.phone-contact-card-btn01 {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.phone-contact-card-btn01:hover {
    background: #ecfdf5;
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.phone-contact-card-btn01:active {
    transform: scale(0.98);
}

/* Circular Photo */
.phone-contact-photo-btn01 {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #10b981;
}

.phone-contact-photo-btn01 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-contact-photo-btn01 svg {
    width: 28px;
    height: 28px;
    color: #9ca3af;
}

/* Contact Info (Right Side) */
.phone-contact-info-btn01 {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.phone-contact-name-btn01 {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.phone-contact-number-btn01 {
    font-size: 15px;
    font-weight: 700;
    color: #059669;
    display: flex;
    align-items: center;
    gap: 6px;
}

.phone-contact-number-btn01 svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Legacy Contact Hidden */
.phone-legacy-contact-btn01 {
    display: none !important;
}

/* Edit Mode Styles for Phone */
.phone-global-settings-btn01 {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.phone-global-settings-btn01 h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
}

.phone-contacts-section-btn01 {
    margin-top: 8px;
}

.phone-contacts-header-btn01 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.phone-contacts-header-btn01 h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
}

.phone-add-contact-btn01 {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #ecfdf5;
    color: #059669;
    border: 1px dashed #10b981;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.phone-add-contact-btn01:hover {
    background: #d1fae5;
    border-style: solid;
}

.phone-contacts-list-btn01 {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 340px;
    overflow-y: auto;
    padding-right: 4px;
}

.phone-contacts-list-btn01::-webkit-scrollbar {
    width: 6px;
}

.phone-contacts-list-btn01::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.phone-contacts-list-btn01::-webkit-scrollbar-thumb {
    background: #c5c5c5;
    border-radius: 3px;
}

.phone-contacts-list-btn01::-webkit-scrollbar-thumb:hover {
    background: #a5a5a5;
}

/* Phone Contact Entry Card */
.phone-contact-entry-btn01 {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

/* Photo Upload Section */
.phone-photo-wrapper-btn01 {
    width: 80px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.photo-preview-container-btn01 {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 3px dashed #d1d5db;
    position: relative;
}

.photo-preview-container-btn01:hover {
    border-color: #10b981;
    background: #ecfdf5;
}

.photo-preview-container-btn01.has-photo {
    border-style: solid;
    border-color: #10b981;
}

.photo-preview-image-btn01 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.photo-preview-container-btn01.has-photo .photo-preview-image-btn01 {
    display: block;
}

.photo-preview-placeholder-btn01 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #9ca3af;
}

.photo-preview-container-btn01.has-photo .photo-preview-placeholder-btn01 {
    display: none;
}

.photo-preview-placeholder-btn01 svg {
    width: 24px;
    height: 24px;
}

.photo-preview-placeholder-btn01 span {
    font-size: 10px;
    font-weight: 500;
}

.photo-upload-text-btn01 {
    font-size: 11px;
    color: #6b7280;
}

/* Contact Details Section */
.phone-contact-details-btn01 {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.phone-contact-field-btn01 {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.phone-contact-field-btn01 label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
}

.phone-contact-field-btn01 input {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.phone-contact-field-btn01 input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Delete Contact Button */
.phone-delete-contact-btn01 {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fecaca;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.phone-delete-contact-btn01:hover {
    background: #ef4444;
    color: #fff;
}

.phone-contact-entry-btn01 {
    position: relative;
}

/* Empty State */
.phone-contacts-empty-btn01 {
    text-align: center;
    padding: 32px 20px;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    color: #6b7280;
}

.phone-contacts-empty-btn01 p {
    margin: 0;
    font-size: 14px;
}

.phone-contacts-list-btn01:not(:empty) + .phone-contacts-empty-btn01 {
    display: none;
}

/* ================================
   Phone Modal - Mobile Responsive
   ================================ */
@media (max-width: 480px) {
    .phone-modal-content-multi-btn01 {
        max-width: 100%;
    }

    .phone-contacts-grid-btn01 {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
    }

    .phone-contact-card-btn01 {
        padding: 12px;
    }

    .phone-contact-photo-btn01 {
        width: 48px;
        height: 48px;
    }

    .phone-contact-name-btn01 {
        font-size: 13px;
    }

    .phone-contact-number-btn01 {
        font-size: 14px;
    }

    .phone-contact-entry-btn01 {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .phone-contact-details-btn01 {
        width: 100%;
    }
}

/* ================================
   Phone Modal - Dark Mode
   ================================ */
@media (prefers-color-scheme: dark) {
    .phone-modal-content-multi-btn01 .contact-modal-body-btn01 {
        background: #1f2937;
    }

    .phone-contact-card-btn01 {
        background: #374151;
        border-color: #4b5563;
    }

    .phone-contact-card-btn01:hover {
        background: #064e3b;
        border-color: #10b981;
    }

    .phone-contact-name-btn01 {
        color: #f3f4f6;
    }

    .phone-contact-number-btn01 {
        color: #34d399;
    }

    .phone-contact-photo-btn01 {
        background: #4b5563;
    }

    .phone-global-settings-btn01 {
        border-bottom-color: #4b5563;
    }

    .phone-global-settings-btn01 h4 {
        color: #9ca3af;
    }

    .phone-contacts-header-btn01 h4 {
        color: #f3f4f6;
    }

    .phone-add-contact-btn01 {
        background: #064e3b;
        color: #34d399;
    }

    .phone-add-contact-btn01:hover {
        background: #065f46;
    }

    .phone-contacts-list-btn01::-webkit-scrollbar-track {
        background: #374151;
    }

    .phone-contacts-list-btn01::-webkit-scrollbar-thumb {
        background: #6b7280;
    }

    .phone-contact-entry-btn01 {
        background: #374151;
        border-color: #4b5563;
    }

    .phone-contacts-empty-btn01 {
        background: #374151;
        border-color: #4b5563;
        color: #9ca3af;
    }

    .photo-preview-container-btn01 {
        background: #4b5563;
        border-color: #6b7280;
    }

    .photo-preview-container-btn01:hover {
        background: #064e3b;
        border-color: #10b981;
    }

    .phone-contact-field-btn01 input {
        background: #1f2937;
        border-color: #4b5563;
        color: #f3f4f6;
    }

    .phone-contact-field-btn01 input:focus {
        border-color: #10b981;
    }
}

/* ========================================
   COMBINED CONTACT MODAL - Card Grid
======================================== */
.combined-modal-btn01.active {
    z-index: 2147483647 !important;
}

.combined-modal-content-btn01 {
    max-width: 1060px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.combined-modal-content-btn01 .contact-modal-body-btn01 {
    overflow-y: auto;
    flex: 1;
}

@media (max-width: 768px) {
    .combined-modal-content-btn01 .contact-modal-body-btn01 {
        padding-bottom: 120px;
    }
}

.contact-modal-header-combined-btn01 {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.combined-contacts-grid-btn01 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 4px;
}

.combined-contact-card-btn01 {
    background: #ffffff;
    border: 2px solid #10b981;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.combined-contact-info-btn01 {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.combined-contact-card-btn01:hover {
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
    transform: translateY(-2px);
}

.combined-contact-name-btn01 {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}

.combined-contact-phone-btn01 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #059669;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.combined-contact-phone-btn01:hover {
    color: #047857;
}

.combined-contact-phone-btn01 svg {
    flex-shrink: 0;
    color: #059669;
}

.combined-contact-line-btn01 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #00b900;
}

.combined-contact-line-btn01 svg {
    flex-shrink: 0;
}

.combined-contact-qr-btn01 {
    flex-shrink: 0;
    text-align: center;
}

.combined-contact-qr-btn01 img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    display: block;
}

/* Tablet: 2 columns */
@media (max-width: 640px) {
    .combined-contacts-grid-btn01 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .combined-contact-card-btn01 {
        padding: 12px;
    }

    .combined-contact-name-btn01 {
        font-size: 13px;
    }

    .combined-contact-phone-btn01 {
        font-size: 13px;
    }
}

/* Mobile: 1 column */
@media (max-width: 420px) {
    .combined-contacts-grid-btn01 {
        grid-template-columns: 1fr;
    }

    .combined-modal-content-btn01 {
        max-width: 100%;
        margin: 0 8px;
    }
}

/* Mobile Bottom Bar - see mobile-bottom-bar.css */
