.styp-calendar-widget {
    --styp-primary-color: #1B7340;
    --styp-primary-hover: #145A32;
    --styp-primary-light: #E4F1E8;
    --styp-success-bg: #def7ec;
    --styp-success-text: #03543f;
    --styp-error-bg: #fde8e8;
    --styp-error-text: #9b1c1c;
    --styp-occupied-bg: #F3E1E1;
    --styp-occupied-text: #812D2D;
    --styp-card-bg: #ffffff;
    --styp-card-border: #e5e7eb;
    --styp-text-color: #111827;
    --styp-label-color: #4b5563;
    --styp-radius: 8px;
    --styp-font-family: inherit;
}

.styp-calendar-widget {
    font-family: var(--styp-font-family);
    background: var(--styp-card-bg);
    border: 1px solid var(--styp-card-border);
    border-radius: var(--styp-radius);
    padding: 24px;
    margin: 20px 0;
    max-width: 640px;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

.styp-current-month-label {
    font-size: 18px;
    font-weight: 700;
    color: var(--styp-text-color);
}

.styp-nav-btn {
    background: none;
    border: 1px solid var(--styp-card-border);
    border-radius: var(--styp-radius);
    padding: 6px 14px;
    font-size: 16px;
    cursor: pointer;
    color: var(--styp-text-color);
}

.styp-nav-btn:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #d1d5db;
}

.styp-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.styp-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--styp-label-color);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.styp-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 20px;
}

.styp-day-cell {
    aspect-ratio: 1;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--styp-text-color);
    background: #fff;
    border: 1px solid transparent;
    cursor: pointer;
    user-select: none;
    position: relative;
    padding: 2px;
}

.styp-day-cell.styp-empty {
    cursor: default;
    background: transparent;
}

.styp-day-price {
    font-size: 10px;
    font-weight: 500;
    color: var(--styp-label-color);
    margin-top: 2px;
}

.styp-day-cell:hover:not(.styp-day-disabled):not(.styp-empty) {
    background: #F6F0DC;
    border-color: var(--styp-primary-color);
}

.styp-day-cell.styp-day-disabled {
    cursor: not-allowed;
    background: #fff;
    color: var(--styp-text-color);
}

.styp-day-cell.styp-day-disabled .styp-day-price {
    display: none;
}

.styp-day-cell.styp-day-selected-arrival {
    background: var(--styp-primary-color) !important;
    color: #ffffff !important;
    border-color: var(--styp-primary-color);
}

.styp-day-cell.styp-day-selected-arrival .styp-day-price {
    color: #ffffff;
}

.styp-day-cell.styp-day-selected-departure {
    background: var(--styp-primary-color) !important;
    color: #ffffff !important;
    border-color: var(--styp-primary-color);
}

.styp-day-cell.styp-day-selected-departure .styp-day-price {
    color: #ffffff;
}

.styp-day-cell.styp-day-in-range {
    background: var(--styp-primary-light);
    border-radius: 0;
}

.styp-calendar-controls {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--styp-card-border);
    margin-bottom: 16px;
}

.styp-guests-selectors {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.styp-control-group {
    display: flex;
    flex-direction: column;
}

.styp-control-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--styp-label-color);
    margin-bottom: 4px;
}

.styp-control-group select {
    height: 38px;
    padding: 6px 12px;
    border: 1px solid var(--styp-card-border);
    border-radius: var(--styp-radius);
    background: #fff;
    font-size: 13px;
    color: var(--styp-text-color);
}

.styp-reset-btn {
    background: none;
    border: none;
    color: var(--styp-label-color);
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
    padding: 8px 0;
}

.styp-calendar-summary {
    background: #f9fafb;
    border: 1px solid var(--styp-card-border);
    border-radius: var(--styp-radius);
    padding: 16px;
    margin-top: 12px;
}

.styp-summary-dates {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.styp-summary-item {
    display: flex;
    flex-direction: column;
}

.styp-summary-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--styp-label-color);
}

.styp-summary-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--styp-text-color);
}

.styp-summary-pricing {
    padding-top: 12px;
    border-top: 1px solid var(--styp-card-border);
}

.styp-total-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--styp-primary-color);
    margin-right: 10px;
}

.styp-per-day-price {
    font-size: 13px;
    color: var(--styp-label-color);
}

.styp-summary-message {
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: var(--styp-radius);
}

.styp-summary-message.styp-msg-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fef3c7;
}

.styp-summary-message.styp-msg-error {
    background: var(--styp-error-bg);
    color: var(--styp-error-text);
    border: 1px solid #f8b4b4;
}

.styp-spinner-dark {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid var(--styp-primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: styp-spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

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

.styp-calendar-widget button, .styp-calendar-widget select { font-family: inherit; }
.styp-calendar-widget button:focus-visible, .styp-calendar-widget select:focus-visible {
    outline: 2px solid var(--styp-primary-color); outline-offset: 2px;
}
@media (max-width: 480px) {
    .styp-calendar-widget { padding: 12px; width: 100%; }
    .styp-calendar-grid { gap: 2px; }
    .styp-day-cell { min-height: 40px; }
}

/* Availability status is independent of selection eligibility. */
.styp-calendar-widget .styp-day-occupied {
    background-color: var(--styp-occupied-bg);
    background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgba(129,45,45,.08) 6px 7px);
    color: var(--styp-occupied-text);
}
.styp-calendar-widget .styp-day-past,
.styp-calendar-widget .styp-day-unknown {
    background: #f3f4f6;
    color: #606873;
}
.styp-calendar-widget .styp-day-selected-arrival,
.styp-calendar-widget .styp-day-selected-departure {
    background-image: none;
}
.styp-calendar-widget .styp-day-cell:focus-visible {
    outline: 3px solid #111827;
    outline-offset: 2px;
    z-index: 1;
}
.styp-calendar-widget .styp-calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
    font-size: 12px;
    color: var(--styp-label-color);
}
.styp-calendar-widget .styp-calendar-legend li {
    display: flex;
    align-items: center;
    gap: 6px;
}
.styp-legend-swatch { width: 14px; height: 14px; border: 1px solid #b8c0ba; border-radius: 3px; }
.styp-legend-free { background: #fff; }
.styp-legend-occupied { background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(129,45,45,.08) 6px 7px), #F3E1E1; }
.styp-legend-selected { background: #1B7340; border-color: #1B7340; }
.styp-calendar-hint { font-size: 12px; color: var(--styp-label-color); margin: 0 0 16px; }
.styp-calendar-widget .styp-day-checkout { border: 2px solid var(--styp-primary-color); cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .styp-calendar-widget .styp-spinner-dark { animation: none; } }

.styp-calendar-widget .styp-day-in-range:hover { background: var(--styp-primary-light); }
.styp-calendar-widget .styp-day-occupied:hover:not(:disabled) { background-color: var(--styp-occupied-bg); }

/* Opt-in Villa Stipino prototype; all controls remain inside the widget. */
.styp-calendar-widget .styp-mode-panel { margin-bottom: 1.25rem; padding: 1rem; background: #f6f0dc; border-radius: 8px; }
.styp-calendar-widget .styp-mode-panel h3 { margin: 0 0 .75rem; font-size: 1.2em; }
.styp-calendar-widget .styp-mode-panel p { font-size: .9em; line-height: 1.5; }
.styp-calendar-widget .styp-mode-panel label { display: block; margin: .65rem 0; }
.styp-calendar-widget .styp-mode-panel select,
.styp-calendar-widget .styp-mode-panel input[type="number"] { width: 100%; max-width: 100%; box-sizing: border-box; padding: .65rem; font: inherit; }
.styp-calendar-widget .styp-per-day-price { overflow-wrap: anywhere; }
.styp-calendar-widget [hidden] { display: none !important; }

/* Read-only calendar reuses the existing grid and status colors. */
.styp-calendar-widget[data-status-only="true"] { max-width: 640px; }
.styp-calendar-widget[data-status-only="true"] .styp-day-cell:not(.styp-empty) {
    cursor: default;
    background: #e4f1e8;
    color: #145a32;
}
.styp-calendar-widget[data-status-only="true"] .styp-day-cell.styp-day-occupied,
.styp-calendar-widget[data-status-only="true"] .styp-day-cell.styp-day-occupied:hover {
    background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(129,45,45,.08) 6px 7px), var(--styp-occupied-bg);
    color: var(--styp-occupied-text);
}
.styp-calendar-widget[data-status-only="true"] .styp-day-cell.styp-day-unknown,
.styp-calendar-widget[data-status-only="true"] .styp-day-cell.styp-day-unknown:hover {
    background: #f3f4f6;
    color: #606873;
}
.styp-calendar-widget[data-status-only="true"] .styp-legend-free { background: #e4f1e8; }
.styp-calendar-widget .styp-status-message { color: var(--styp-error-text); font-size: 14px; margin: 10px 0 0; }

/* Preserve the viewport gutter while the modal locks page scrolling. */
html.styp-myrent-modal-gutter { scrollbar-gutter: stable; }
html.styp-myrent-modal-gutter.styp-myrent-modal-open { background-color: #0d3a20; }
html.styp-myrent-modal-open, body.styp-myrent-modal-open { overflow: hidden !important; }
.styp-myrent-modal[hidden] { display: none !important; }
.styp-myrent-modal {
    --styp-modal-free-bg: #b0c6a7;
    --styp-modal-occupied-bg: #bf6a55;
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 12px 20px;
    box-sizing: border-box;
    background: rgba(13, 58, 32, .62);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .32s ease, visibility 0s linear .34s;
}
.styp-myrent-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .32s ease, visibility 0s;
}
.styp-myrent-modal__panel {
    position: relative;
    box-sizing: border-box;
    width: min(100%, 960px);
    max-height: calc(100dvh - 24px);
    overflow: auto;
    padding: 0;
    border: 1px solid rgba(209, 178, 119, .65);
    border-radius: 20px;
    background: #fbf8ef;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .36);
    opacity: 0;
    transform: translateY(10px) scale(.99);
    transition: opacity .34s ease, transform .34s ease;
}
.styp-myrent-modal.is-open .styp-myrent-modal__panel {
    opacity: 1;
    transform: none;
}
.styp-myrent-modal__hero {
    position: relative;
    box-sizing: border-box;
    min-height: 176px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px 88px 30px 100px;
    background: linear-gradient(110deg, #082719, #103526);
    color: #fdfaf0;
}
.styp-myrent-modal--villa .styp-myrent-modal__hero {
    background-image: linear-gradient(90deg, rgba(5, 32, 20, .12), rgba(5, 32, 20, .08)), url('../img/villa-availability-header-stipino-v3.jpg');
    background-size: cover;
    background-position: center 70%;
}
.styp-myrent-modal__title {
    position: relative;
    z-index: 1;
    margin: 0 54px 10px 0;
    color: #fdfaf0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(30px, 3.6vw, 51px);
    font-weight: 400;
    line-height: 1.12;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .30);
}
.styp-myrent-modal__subtitle {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    color: #e2bc6e;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 13px;
    letter-spacing: .29em;
    line-height: 1.5;
    text-transform: uppercase;
}
.styp-myrent-modal__subtitle::before { content: ''; width: 42px; height: 1px; flex: none; background: #d7aa60; }
.styp-myrent-modal .styp-myrent-modal__close {
    position: absolute !important;
    top: 18px !important;
    right: 18px !important;
    left: auto !important;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1.5px solid #e2bc6e;
    border-radius: 50%;
    background: rgba(5, 30, 19, .74);
    color: #f4d794;
    font: inherit;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}
.styp-myrent-modal .styp-myrent-modal__close:hover { background: rgba(15, 58, 37, .95); }
.styp-myrent-modal__close:focus-visible { outline: 3px solid #f4d794; outline-offset: 3px; }
.styp-myrent-modal .styp-calendar-widget {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 26px 32px 30px;
    border: 0;
    border-radius: 0;
    background: #fbf8ef;
    box-shadow: none;
}
.styp-myrent-modal .styp-calendar-header { margin-bottom: 18px; }
.styp-myrent-modal .styp-nav-btn {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1.5px solid #c99a50;
    border-radius: 50%;
    background: transparent;
    color: #ab7937;
    font-size: 27px;
    line-height: 1;
}
.styp-myrent-modal .styp-nav-btn:hover:not(:disabled) { background: #f3e8d0; border-color: #ab7937; }
.styp-myrent-modal .styp-current-month-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    color: #161d17;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(25px, 3vw, 37px);
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
}
.styp-myrent-modal .styp-current-month-label::before,
.styp-myrent-modal .styp-current-month-label::after { content: ''; width: clamp(38px, 7vw, 110px); height: 1px; background: #d1a35b; }
.styp-myrent-modal .styp-calendar-weekdays {
    padding-bottom: 11px;
    border-bottom: 1px solid #d1a35b;
    margin-bottom: 13px;
    color: #1d271e;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 15px;
    font-weight: 400;
}
.styp-myrent-modal .styp-calendar-grid {
    --styp-modal-day-height: clamp(54px, 4.6vw, 66px);
    --styp-modal-day-gap: 5px;
    gap: var(--styp-modal-day-gap);
    min-height: calc(6 * var(--styp-modal-day-height) + 5 * var(--styp-modal-day-gap));
    align-content: start;
    margin-bottom: 30px;
}
.styp-myrent-modal .styp-day-cell {
    aspect-ratio: auto;
    height: var(--styp-modal-day-height);
    min-height: 0;
    border: 0;
    border-radius: 10px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(20px, 2.1vw, 28px);
    font-weight: 400;
}
.styp-myrent-modal .styp-day-cell.styp-empty { background: #efe9dc; }
.styp-myrent-modal .styp-calendar-widget[data-status-only="true"] .styp-day-cell.styp-day-available,
.styp-myrent-modal .styp-calendar-widget[data-status-only="true"] .styp-day-cell.styp-day-available:hover {
    background: var(--styp-modal-free-bg);
    color: #173924;
}
.styp-myrent-modal .styp-calendar-widget[data-status-only="true"] .styp-day-cell.styp-day-occupied,
.styp-myrent-modal .styp-calendar-widget[data-status-only="true"] .styp-day-cell.styp-day-occupied:hover {
    background: repeating-linear-gradient(135deg, transparent 0 7px, rgba(89, 37, 27, .13) 7px 8px), var(--styp-modal-occupied-bg);
    color: #fffaf0;
    text-shadow: 0 1px 2px rgba(70, 26, 18, .4);
}
.styp-myrent-modal .styp-calendar-widget[data-status-only="true"] .styp-day-cell.styp-day-transition-occupied,
.styp-myrent-modal .styp-calendar-widget[data-status-only="true"] .styp-day-cell.styp-day-transition-occupied:hover {
    background: var(--styp-modal-free-bg);
    color: #0b2415;
    text-shadow: 0 1px 2px rgba(255, 255, 255, .4);
}
.styp-myrent-modal .styp-calendar-widget[data-status-only="true"] .styp-day-cell.styp-day-transition-free,
.styp-myrent-modal .styp-calendar-widget[data-status-only="true"] .styp-day-cell.styp-day-transition-free:hover {
    background: var(--styp-modal-free-bg);
    color: #0b2415;
    text-shadow: 0 1px 2px rgba(255, 255, 255, .4);
}
.styp-myrent-modal .styp-day-cell.styp-day-transition-occupied,
.styp-myrent-modal .styp-day-cell.styp-day-transition-free { overflow: hidden; }
.styp-myrent-modal .styp-day-cell.styp-day-transition-occupied::before,
.styp-myrent-modal .styp-day-cell.styp-day-transition-free::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(135deg, transparent 0 7px, rgba(89, 37, 27, .13) 7px 8px), var(--styp-modal-occupied-bg);
}
.styp-myrent-modal .styp-day-cell.styp-day-transition-occupied::before {
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.styp-myrent-modal .styp-day-cell.styp-day-transition-free::before {
    clip-path: polygon(0 0, 100% 0, 0 100%);
}
.styp-myrent-modal .styp-day-cell.styp-day-transition-occupied > span,
.styp-myrent-modal .styp-day-cell.styp-day-transition-free > span { position: relative; z-index: 1; }
.styp-myrent-modal .styp-calendar-widget .styp-calendar-legend {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    margin: 0;
    color: #17251a;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 17px;
}
.styp-myrent-modal .styp-calendar-legend::before,
.styp-myrent-modal .styp-calendar-legend::after { content: ''; height: 1px; flex: 1; max-width: 200px; background: #d1a35b; }
.styp-myrent-modal .styp-calendar-legend li { gap: 10px; }
.styp-myrent-modal .styp-legend-swatch { width: 30px; height: 30px; border: 0; border-radius: 8px; }
.styp-myrent-modal .styp-calendar-widget[data-status-only="true"] .styp-legend-free { background: var(--styp-modal-free-bg); }
.styp-myrent-modal .styp-legend-occupied { background: repeating-linear-gradient(135deg, transparent 0 7px, rgba(89, 37, 27, .13) 7px 8px), var(--styp-modal-occupied-bg); }
@media (max-width: 700px) {
    .styp-myrent-modal { padding: 12px; }
    .styp-myrent-modal__panel { max-height: calc(100dvh - 24px); border-radius: 16px; }
    .styp-myrent-modal__hero { min-height: 126px; padding: 24px 58px 20px 22px; }
    .styp-myrent-modal--villa .styp-myrent-modal__hero { background-position: 57% center; }
    .styp-myrent-modal__title { margin-right: 0; font-size: clamp(27px, 7vw, 36px); }
    .styp-myrent-modal__subtitle { gap: 10px; font-size: 10px; letter-spacing: .16em; }
    .styp-myrent-modal__subtitle::before { width: 22px; }
    .styp-myrent-modal .styp-myrent-modal__close { top: 14px !important; right: 14px !important; width: 40px; height: 40px; font-size: 25px; }
    .styp-myrent-modal .styp-calendar-widget { padding: 18px 16px 24px; }
    .styp-myrent-modal .styp-calendar-header { margin-bottom: 14px; }
    .styp-myrent-modal .styp-nav-btn { width: 42px; height: 42px; font-size: 22px; }
    .styp-myrent-modal .styp-current-month-label { gap: 8px; font-size: clamp(20px, 5vw, 26px); }
    .styp-myrent-modal .styp-current-month-label::before,
    .styp-myrent-modal .styp-current-month-label::after { width: 22px; }
    .styp-myrent-modal .styp-calendar-weekdays { padding-bottom: 8px; margin-bottom: 9px; font-size: 11px; }
    .styp-myrent-modal .styp-calendar-grid { --styp-modal-day-height: clamp(42px, 11vw, 52px); --styp-modal-day-gap: 3px; margin-bottom: 20px; }
    .styp-myrent-modal .styp-day-cell { font-size: 18px; border-radius: 6px; }
    .styp-myrent-modal .styp-calendar-widget .styp-calendar-legend { gap: 16px; font-size: 14px; }
    .styp-myrent-modal .styp-calendar-legend::before,
    .styp-myrent-modal .styp-calendar-legend::after { display: none; }
    .styp-myrent-modal .styp-legend-swatch { width: 22px; height: 22px; border-radius: 6px; }
}
@media (max-width: 370px) {
    .styp-myrent-modal .styp-current-month-label::before,
    .styp-myrent-modal .styp-current-month-label::after { display: none; }
    .styp-myrent-modal__subtitle { letter-spacing: .1em; }
}
/* Keep all six calendar rows visible when the browser window is shorter. */
@media (min-width: 701px) and (max-height: 900px) {
    .styp-myrent-modal__hero {
        min-height: clamp(100px, calc(25dvh - 50px), 176px);
        padding-top: clamp(12px, calc(7.33dvh - 32px), 34px);
        padding-right: clamp(66px, calc(7.33dvh + 22px), 88px);
        padding-bottom: clamp(10px, calc(6.67dvh - 30px), 30px);
        padding-left: clamp(62px, calc(12.67dvh - 14px), 100px);
    }
    .styp-myrent-modal__title { font-size: clamp(31px, calc(6.33dvh - 6px), 51px); }
    .styp-myrent-modal .styp-myrent-modal__close {
        width: clamp(40px, calc(4dvh + 16px), 52px);
        height: clamp(40px, calc(4dvh + 16px), 52px);
    }
    .styp-myrent-modal .styp-calendar-widget {
        padding-top: clamp(12px, calc(4.67dvh - 16px), 26px);
        padding-right: clamp(20px, calc(4dvh - 4px), 32px);
        padding-bottom: clamp(14px, calc(5.33dvh - 18px), 30px);
        padding-left: clamp(20px, calc(4dvh - 4px), 32px);
    }
    .styp-myrent-modal .styp-calendar-header { margin-bottom: clamp(10px, calc(2.67dvh - 6px), 18px); }
    .styp-myrent-modal .styp-nav-btn {
        width: clamp(40px, calc(5.33dvh + 8px), 56px);
        height: clamp(40px, calc(5.33dvh + 8px), 56px);
    }
    .styp-myrent-modal .styp-current-month-label { font-size: clamp(25px, calc(4dvh + 1px), 37px); }
    .styp-myrent-modal .styp-calendar-weekdays {
        padding-bottom: clamp(6px, calc(1.67dvh - 4px), 11px);
        margin-bottom: clamp(6px, calc(2.33dvh - 8px), 13px);
    }
    .styp-myrent-modal .styp-calendar-grid {
        --styp-modal-day-gap: clamp(3px, calc(.67dvh - 1px), 5px);
        --styp-modal-day-height: clamp(30px, calc(10dvh - 24px), 66px);
        margin-bottom: clamp(10px, calc(6.67dvh - 30px), 30px);
    }
    .styp-myrent-modal .styp-legend-swatch {
        width: clamp(22px, calc(2.67dvh + 6px), 30px);
        height: clamp(22px, calc(2.67dvh + 6px), 30px);
    }
}
@media (max-width: 700px) and (max-height: 700px) {
    .styp-myrent-modal__hero { min-height: 108px; padding-top: 18px; padding-bottom: 16px; }
    .styp-myrent-modal__title { margin-bottom: 5px; }
    .styp-myrent-modal .styp-calendar-widget { padding: 14px 14px 18px; }
    .styp-myrent-modal .styp-calendar-header { margin-bottom: 10px; }
    .styp-myrent-modal .styp-nav-btn { width: 40px; height: 40px; }
    .styp-myrent-modal .styp-calendar-weekdays { padding-bottom: 6px; margin-bottom: 7px; }
    .styp-myrent-modal .styp-calendar-grid { --styp-modal-day-gap: 2px; --styp-modal-day-height: clamp(34px, calc((100dvh - 360px) / 6), 42px); margin-bottom: 12px; }
    .styp-myrent-modal .styp-legend-swatch { width: 20px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .styp-myrent-modal, .styp-myrent-modal__panel { transition: none; }
    .styp-myrent-modal__panel { transform: none; }
}
