/* Publikatorcen Units Widget Styles */

.puw-units-container {
    margin: 20px 0;
    font-family: var(--puw-font-family, inherit);
    /* Keep desktop spacing, but scale down on smaller laptop widths */
    padding-left: min(var(--puw-container-padding-desktop, 64px), 5vw);
    padding-right: min(var(--puw-container-padding-desktop, 64px), 5vw);
    box-sizing: border-box;
}

.puw-layout-mobile {
    display: none;
}

.puw-controls {
    margin-bottom: 20px;
    text-align: right;
}

.puw-refresh-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: var(--puw-font-size-body, 14px);
    transition: background-color 0.3s ease;
}

.puw-refresh-btn:hover {
    background: #005a87;
}

.puw-refresh-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.puw-refresh-icon {
    margin-right: 5px;
}

/* Grid Layout */
.puw-units-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.puw-unit-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.puw-unit-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.puw-unit-number {
    font-size: var(--puw-font-size-xl, 18px);
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 8px;
}

.puw-investment {
    font-size: var(--puw-font-size-large, 16px);
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.puw-developer {
    font-size: var(--puw-font-size-body, 14px);
    color: #666;
    margin-bottom: 12px;
}

.puw-area {
    font-size: var(--puw-font-size-body, 14px);
    color: #555;
    margin-bottom: 12px;
}

.puw-prices {
    border-top: 1px solid #eee;
    padding-top: 12px;
}

.puw-price-per-sqm {
    font-size: var(--puw-font-size-large, 16px);
    color: #0073aa;
    font-weight: bold;
    margin-bottom: 4px;
    white-space: nowrap;
}

.puw-total-price {
    font-size: var(--puw-font-size-xl, 18px);
    color: #2c5530;
    font-weight: bold;
    white-space: nowrap;
}

/* List Layout */
.puw-units-list {
    margin-top: 20px;
}

.puw-unit-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.puw-unit-info {
    flex: 1;
}

.puw-unit-header {
    margin-bottom: 8px;
}

.puw-unit-number {
    font-size: var(--puw-font-size-xl, 18px);
    font-weight: bold;
    color: #0073aa;
}

.puw-investment {
    color: #333;
    font-weight: 500;
}

.puw-developer {
    font-size: var(--puw-font-size-body, 14px);
    color: #666;
    margin-bottom: 4px;
}

.puw-area {
    font-size: var(--puw-font-size-body, 14px);
    color: #555;
}

.puw-prices {
    text-align: right;
    min-width: 150px;
}

.puw-price-per-sqm {
    font-size: var(--puw-font-size-large, 16px);
    color: #0073aa;
    font-weight: bold;
    margin-bottom: 4px;
    white-space: nowrap;
}

.puw-total-price {
    font-size: var(--puw-font-size-xl, 18px);
    color: #2c5530;
    font-weight: bold;
    white-space: nowrap;
}

/* Table Layout */
.puw-units-table-container {
    margin-top: 20px;
    overflow-x: auto;
}

.puw-units-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
}

.puw-units-table th {
    color: #40392f;
    padding: 18px 16px 14px;
    text-align: left;
    font-weight: 600;
    font-size: var(--puw-font-size-body, 14px);
    background: transparent !important;
    border-bottom: 1px solid rgba(90, 78, 63, 0.45);
    white-space: nowrap;
}

.puw-units-table td {
    padding: 16px;
    border-bottom: 1px solid rgba(90, 78, 63, 0.35);
    color: #4f473d;
    font-size: var(--puw-font-size-body, 14px);
    vertical-align: middle;
}

.puw-units-table tr:hover {
    background: rgba(255, 255, 255, 0.18);
}

.puw-client-table-wrap {
    background: transparent;
    padding-top: 6px;
}

.puw-client-table .puw-col-karta_lokalu {
    width: 140px;
}

.puw-client-table .puw-col-szczegoly,
.puw-client-table .puw-col-opis,
.puw-client-table .puw-col-uwagi {
    width: 170px;
    text-align: right;
}

.puw-client-table td.puw-col-price_per_sqm,
.puw-client-table td.puw-col-total_price {
    white-space: nowrap;
}

/* Unified table - Units and Price History together */
.puw-unified-table .puw-unit-row {
    background: transparent;
    font-weight: 400;
}

.puw-unified-table .puw-unit-row:hover {
    background: rgba(255, 255, 255, 0.18);
}

.puw-unified-table .puw-ph-row {
    background: #fafafa;
    font-size: 0.95em;
}

.puw-unified-table .puw-ph-row:hover {
    background: #f0f0f0;
}

.puw-unified-table .puw-ph-cell {
    color: #555;
    font-style: italic;
}

.puw-unified-table .puw-unit-ref {
    color: #70665a;
    font-size: 0.95em;
}

.puw-unified-table .puw-ph-empty {
    background: #fafafa;
}

/* Status badges */
.puw-status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: var(--puw-font-size-small, 12px);
    font-weight: 600;
    letter-spacing: .2px;
}
.puw-status-wolne {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.puw-status-rezerwacja {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}
.puw-status-sprzedane {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.puw-status-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4f473d;
    white-space: nowrap;
}

.puw-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #928679;
    flex: 0 0 8px;
}

.puw-status-inline-wolne .puw-status-dot {
    background: #4baa45;
}

.puw-status-inline-rezerwacja .puw-status-dot {
    background: #efb021;
}

.puw-status-inline-sprzedane .puw-status-dot {
    background: #d55442;
}

.puw-empty-value {
    color: #8f8578;
}

 

/* Error and No Units Messages */
.puw-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 20px 0;
}

.puw-no-units {
    background: #d1ecf1;
    color: #0c5460;
    padding: 15px;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    margin: 20px 0;
    text-align: center;
}

/* Loading State */
.puw-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.puw-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: puw-spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes puw-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .puw-units-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .puw-unit-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .puw-prices {
        text-align: left;
        margin-top: 10px;
        min-width: auto;
    }
    
    .puw-units-table-container {
        font-size: 14px;
    }
    
    .puw-units-table th,
    .puw-units-table td {
        padding: 8px;
    }

    /* Keep thumbnails in table large but slightly smaller on tablets */
    .puw-client-table .puw-product-card-thumb,
    .puw-client-table .puw-product-card-thumb--pdf {
        width: 90px;
        height: 90px;
        min-width: 90px;
        min-height: 90px;
    }
    .puw-client-table .puw-product-card-thumb--pdf .puw-pdf-icon svg {
        width: 30px;
        height: 30px;
    }

    .puw-details-button,
    .puw-product-card-button {
        padding: 8px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .puw-unit-card {
        padding: 15px;
    }
    
    .puw-unit-item {
        padding: 15px;
    }
    
    .puw-units-table {
        font-size: 12px;
    }
    
    .puw-units-table th,
    .puw-units-table td {
        padding: 6px;
    }

    /* On very small screens keep table thumbnails readable but a bit smaller */
    .puw-client-table .puw-product-card-thumb,
    .puw-client-table .puw-product-card-thumb--pdf {
        width: 80px;
        height: 80px;
        min-width: 80px;
        min-height: 80px;
    }
    .puw-client-table .puw-product-card-thumb--pdf .puw-pdf-icon svg {
        width: 26px;
        height: 26px;
    }
}

/* Product Card Icon in Table */
.puw-product-card-cell {
    text-align: left;
}

.puw-product-card-link {
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.puw-product-card-link:hover {
    transform: translateY(-1px);
}

.puw-product-card-button,
.puw-details-button {
    display: inline-block;
    padding: 10px 16px;
    background: #0a6b2d;
    color: #fff;
    border: 1px solid #0a6b2d;
    border-radius: 4px;
    text-decoration: none;
    font-family: inherit;
    font-size: var(--puw-font-size-button, 13px);
    line-height: 1.5;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    white-space: nowrap;
}

.puw-product-card-button:hover,
.puw-details-button:hover {
    background: #085a23;
    color: #fff;
    border-color: #085a23;
    text-decoration: none;
}

.puw-product-card-button:active {
    background: #06471c;
    border-color: #06471c;
}

.puw-product-card-thumb {
    width: 68px;
    height: 68px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #d5cec4;
    padding: 6px;
    box-sizing: border-box;
}

/* Larger thumbnails specifically inside the table layout */
.puw-client-table .puw-product-card-thumb,
.puw-client-table .puw-product-card-thumb--pdf {
    width: 110px;
    height: 110px;
    min-width: 110px;
    min-height: 110px;
}

.puw-rzut-link:hover .puw-product-card-thumb {
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

/* PDF tile (same size as image thumb, icon inside) */
.puw-product-card-thumb--pdf {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    min-width: 68px;
    min-height: 68px;
    background: #fff;
    border: 1px solid #d5cec4;
    padding: 6px;
    box-sizing: border-box;
    color: #8b7355;
}
.puw-product-card-thumb--pdf .puw-pdf-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 0;
}
.puw-product-card-thumb--pdf .puw-pdf-icon svg {
    width: 28px;
    height: 28px;
}
.puw-product-card-thumb--pdf .puw-pdf-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.puw-rzut-link:hover .puw-product-card-thumb--pdf {
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

/* Cards Layout */
.puw-units-cards-container {
    margin-top: 20px;
}

/* Keep cards aligned with the theme content width */
.puw-cards-layout {
    max-width: var(--puw-cards-container-maxwidth, 1200px);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.puw-floor-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.puw-floor-filter {
    border: 1px solid #c7ccd3;
    background: #fff;
    color: #7f8daa;
    min-height: 40px;
    padding: 8px 20px;
    border-radius: 8px;
    font-family: var(--puw-font-family, inherit);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    line-height: 1.1;
    box-shadow: none;
}

.puw-floor-filter.is-active {
    background: #7b8ea9;
    border-color: #7b8ea9;
    color: #fff;
    font-weight: 600;
}

.puw-floor-filter:hover {
    border-color: #a8b2c2;
    color: #5f6f88;
}

.puw-floor-filter:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(104, 119, 135, 0.25);
}

.puw-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--puw-card-min-width-desktop, 320px)), 1fr));
    gap: var(--puw-cards-gap, 20px);
}

/* Fixed card width mode (desktop only; tablet/phone are handled by media queries below) */
.puw-cards-layout.is-fixed-width .puw-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(var(--puw-card-width, 360px), var(--puw-card-width, 360px)));
    justify-content: center;
}

.puw-card-unit {
    background: transparent;
    border: 1px solid rgba(90, 78, 63, 0.35);
    border-radius: 10px;
    padding: 16px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #1f252d;
}

.puw-card-unit:hover {
    box-shadow: none;
}

.puw-card-plan {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 205px;
}

/* Larger thumbnails specifically inside cards layout */
.puw-cards-layout .puw-product-card-link {
    display: block;
    width: 100%;
}
.puw-cards-layout .puw-product-card-thumb,
.puw-cards-layout .puw-product-card-thumb--pdf {
    width: 100%;
    height: 205px;
    min-width: 100%;
    min-height: 205px;
    max-width: 100%;
}

.puw-card-title {
    font-size: 18px;
    font-weight: 500;
    color: #1f252d;
    line-height: 1.3;
    margin-bottom: 2px;
}

.puw-card-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.puw-card-meta-item {
    padding: 6px 2px;
    background: transparent;
    border: none;
    border-radius: 0;
}

.puw-card-meta-label {
    font-size: 13px;
    color: #6f7780;
    font-weight: 400;
    margin-bottom: 3px;
    line-height: 1.2;
}

.puw-card-meta-value {
    font-size: 20px;
    color: #111820;
    font-weight: 500;
    line-height: 1.2;
}

.puw-card-status {
    margin-top: -2px;
    display: flex;
    justify-content: flex-end;
}

.puw-card-prices {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.puw-card-prices-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.puw-card-prices-right {
    flex: 0 0 auto;
    align-self: flex-end;
    margin-top: 6px;
}

.puw-cards-layout .puw-card-price-label {
    font-size: 14px;
    color: #c0a57e;
    font-weight: 400;
    line-height: 1.1;
    margin-top: 2px;
}

.puw-card-price-total,
.puw-card-price-sqm {
    font-weight: 500;
    color: #111820;
    line-height: 1.15;
}

.puw-card-price-sqm {
    font-weight: 400;
    color: #111820;
    font-size: 18px;
    white-space: nowrap;
}

.puw-card-price-total {
    font-size: 22px;
    white-space: nowrap;
}

.puw-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}

.puw-contact-button {
    display: inline-block;
    padding: 10px 16px;
    background: var(--puw-accent, #0073aa);
    color: #fff;
    border: 1px solid var(--puw-accent, #0073aa);
    border-radius: 6px;
    text-decoration: none;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    font-weight: 400;
    white-space: nowrap;
}

.puw-contact-button:hover {
    background: #005a87;
    border-color: #005a87;
}

.puw-history-button {
    display: inline-block;
    padding: 10px 16px;
    background: #f4f6f8;
    color: #1f2933;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    text-decoration: none;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    font-weight: 400;
    white-space: nowrap;
}

.puw-history-button:hover {
    background: #e9edf2;
    border-color: #b8c2cc;
}

/* Cards layout - buttons, hover, and status to keep site design consistent */
.puw-cards-layout .puw-contact-button {
    background: #fff;
    border-color: #7b8ea9;
    color: #2f3a4a;
    padding: 10px 18px;
    border-radius: 6px;
}

.puw-cards-layout .puw-contact-button:hover {
    background: #f3f6f9;
    border-color: #6b7d93;
}

.puw-cards-layout .puw-history-button {
    background: #fff;
    border-color: #7b8ea9;
    color: #2f3a4a;
    padding: 10px 18px;
    border-radius: 6px;
}

.puw-cards-layout .puw-history-button:hover {
    background: #f3f6f9;
    border-color: #6b7d93;
}

.puw-cards-layout .puw-card-details .puw-details-button {
    background: #7b8ea9;
    border-color: #7b8ea9;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    margin-left: auto;
    font-weight: 500;
}

.puw-cards-layout .puw-card-details .puw-details-button:hover {
    background: #6b7d93;
    border-color: #6b7d93;
    color: #fff;
}

.puw-cards-layout .puw-card-status .puw-status-badge {
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 6px 12px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .2px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.puw-cards-layout .puw-card-status .puw-status-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    flex: 0 0 auto;
}

.puw-cards-layout .puw-status-wolne {
    background: #2ea043;
    color: #ffffff;
    border-color: #238b3a;
}

.puw-cards-layout .puw-status-rezerwacja {
    background: #f6b118;
    color: #ffffff;
    border-color: #d89a0a;
}

.puw-cards-layout .puw-status-sprzedane {
    background: #d34d42;
    color: #ffffff;
    border-color: #b93f36;
}

.puw-card-details .puw-details-button {
    margin-left: auto;
    font-size: 16px;
    font-weight: 400;
}

@media (max-width: 1280px) {
    .puw-floor-filter {
        font-size: 14px;
        min-height: 38px;
        padding: 8px 16px;
    }
    .puw-card-title {
        font-size: 24px;
    }
    .puw-card-meta-label {
        font-size: 14px;
    }
    .puw-card-meta-value {
        font-size: 18px;
    }
    .puw-card-price-total {
        font-size: 21px;
    }
    .puw-card-price-sqm {
        font-size: 17px;
    }
    .puw-contact-button,
    .puw-card-details .puw-details-button,
    .puw-history-button {
        font-size: 15px;
    }
}

@media (max-width: 991px) {
    .puw-units-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .puw-layout-desktop {
        display: none;
    }

    .puw-layout-mobile {
        display: block;
    }

    .puw-cards-layout {
        max-width: var(--puw-cards-container-maxwidth-mobile, 100%);
        margin-left: var(--puw-cards-mobile-margin-x, 0px);
        margin-right: var(--puw-cards-mobile-margin-x, 0px);
        padding-left: var(--puw-cards-mobile-padding-x, 0px);
        padding-right: var(--puw-cards-mobile-padding-x, 0px);
        box-sizing: border-box;
    }

    .puw-cards-layout .puw-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--puw-card-min-width-mobile, 280px)), 1fr));
    }

    /* Override desktop fixed-width rule on mobile/tablet */
    .puw-cards-layout.is-fixed-width .puw-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--puw-card-min-width-mobile, 280px)), 1fr));
        justify-content: stretch;
    }

    /* If mobile fixed mode is explicitly enabled, use mobile px width */
    .puw-cards-layout.is-mobile-fixed-width .puw-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(var(--puw-card-mobile-width, 320px), var(--puw-card-mobile-width, 320px)));
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .puw-cards-layout {
        max-width: 100%;
    }
    .puw-floor-filters {
        gap: 8px;
    }
    .puw-floor-filter {
        font-size: 14px;
        padding: 8px 14px;
    }
    .puw-card-title {
        font-size: 20px;
    }
    .puw-card-meta-label {
        font-size: 13px;
    }
    .puw-card-meta-value {
        font-size: 17px;
    }
    .puw-card-price-total {
        font-size: 20px;
    }
    .puw-card-price-sqm {
        font-size: 16px;
    }
    .puw-contact-button,
    .puw-card-details .puw-details-button,
    .puw-history-button {
        font-size: 14px;
    }

    .puw-card-prices {
        flex-direction: column;
        align-items: flex-start;
    }

    .puw-card-prices-right {
        align-self: flex-start;
        margin-top: 6px;
    }
}

.puw-phone-popup-number {
    font-size: 22px;
    font-weight: 800;
    color: #333;
}

.puw-history-list {
    text-align: left;
    max-height: 55vh;
    overflow-y: auto;
    padding: 6px 2px;
}

.puw-history-item {
    padding: 10px 0;
    border-bottom: 1px solid #eceff3;
}

.puw-history-item:last-child {
    border-bottom: none;
}

.puw-history-date {
    font-size: 13px;
    color: #6b7785;
    margin-bottom: 4px;
}

.puw-history-line {
    font-size: 15px;
    color: #1f2933;
    line-height: 1.45;
}

.puw-history-empty {
    color: #6b7785;
    font-size: 15px;
    padding: 10px 0;
}

/* Modal Styles */
.puw-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.puw-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.puw-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
}

.puw-modal-body {
    position: relative;
}

.puw-modal-content img {
    max-width: 100%;
    max-height: 80vh;
    height: auto;
    display: block;
    border-radius: 4px;
}

.puw-modal-content iframe {
    width: 100%;
    height: 80vh;
    border: none;
    border-radius: 4px;
}

.puw-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
    z-index: 10001;
    background: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.puw-modal-close:hover {
    color: #0073aa;
    background: #f0f0f0;
}

/* Responsive modal */
@media (max-width: 768px) {
    .puw-modal-content {
        max-width: 95%;
        padding: 15px;
    }
    
    .puw-modal-close {
        top: 5px;
        right: 10px;
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    
    .puw-modal-content img,
    .puw-modal-content iframe {
        max-height: 70vh;
    }
}
