/* GoComGo date range picker, GCG-1593. No external assets. */
.gdp {
    --gdp-ink: #1a1a1a;
    --gdp-muted: #8a8a8a;
    --gdp-line: #e3e3e3;
    --gdp-range: #fff1c9;
    --gdp-accent: #ffc327;
    --gdp-cell: 40px;
    box-sizing: border-box;
    font-family: inherit;
    color: var(--gdp-ink);
    background: #fff;
    z-index: 1060;
    -webkit-tap-highlight-color: transparent;
}
.gdp *, .gdp *::before, .gdp *::after { box-sizing: border-box; }
.gdp button { font-family: inherit; }

/* ---------- desktop dropdown ---------- */
.gdp--drop {
    position: absolute;
    width: 640px;
    max-width: calc(100vw - 16px);
    border: 1px solid var(--gdp-line);
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .16);
    padding: 16px 20px 0;
}
.gdp--drop .gdp-body { position: relative; }
.gdp-nav { position: absolute; left: 0; right: 0; top: 0; height: 32px; pointer-events: none; }
.gdp-prev, .gdp-next {
    position: absolute; top: 0; width: 32px; height: 32px; border: 0; border-radius: 50%;
    background: transparent; cursor: pointer; pointer-events: auto; padding: 0;
}
.gdp-prev { left: 0; }
.gdp-next { right: 0; }
.gdp-prev::before, .gdp-next::before {
    content: ""; position: absolute; top: 11px; width: 10px; height: 10px;
    border: solid var(--gdp-ink); border-width: 0 2px 2px 0;
}
.gdp-prev::before { left: 13px; transform: rotate(135deg); }
.gdp-next::before { left: 9px; transform: rotate(-45deg); }
.gdp-prev:hover:not(:disabled), .gdp-next:hover:not(:disabled) { background: #f2f2f2; }
.gdp-prev:disabled, .gdp-next:disabled { opacity: .25; cursor: default; }
.gdp--drop .gdp-months { display: flex; gap: 32px; }
.gdp--drop .gdp-month { flex: 1 1 0; min-width: 0; }
.gdp-month-title { font-weight: 500; font-size: 17px; text-align: center; line-height: 32px; margin-bottom: 6px; }

/* ---------- grid ---------- */
.gdp-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.gdp-wd { text-align: center; font-size: 12px; color: var(--gdp-muted); line-height: 28px; }
.gdp-day {
    position: relative; height: var(--gdp-cell); border: 0; padding: 0; margin: 0;
    background: transparent; cursor: pointer; font-size: 15px; color: var(--gdp-ink);
}
.gdp-day > span {
    position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center;
    width: var(--gdp-cell); height: var(--gdp-cell); max-width: 100%; border-radius: 50%;
}
.gdp-day:hover:not(:disabled) > span { box-shadow: inset 0 0 0 1px var(--gdp-ink); }
.gdp-day:disabled { color: #c8c8c8; cursor: default; }
.gdp-day.is-today > span { font-weight: 700; }
.gdp-day.is-today > span::after {
    content: ""; position: absolute; bottom: 6px; left: 50%; width: 4px; height: 4px; margin-left: -2px;
    border-radius: 50%; background: currentColor;
}
.gdp-day.is-in { background: var(--gdp-range); }
.gdp-day.is-ranged.is-start { background: linear-gradient(to right, transparent 50%, var(--gdp-range) 50%); }
.gdp-day.is-ranged.is-end { background: linear-gradient(to left, transparent 50%, var(--gdp-range) 50%); }
.gdp-day.is-start > span, .gdp-day.is-end > span { background: var(--gdp-ink); color: #fff; box-shadow: none; }
.gdp-day.is-preview.is-end > span { background: transparent; color: var(--gdp-ink); box-shadow: inset 0 0 0 1px var(--gdp-ink); }
.gdp-day.is-preview { opacity: .85; }
.gdp-empty { display: block; }
/* venue page: days with events - bold and a dot; today is underlined there so the two marks do not mix */
.gdp-day.has-ev > span { font-weight: 700; }
.gdp-day.has-ev > span::before {
    content: ""; position: absolute; bottom: 5px; left: 50%; width: 6px; height: 6px; margin-left: -3px;
    border-radius: 50%; background: #f5b400;
}
.gdp--days .gdp-day.is-today > span::after { display: none; }
.gdp--days .gdp-day.is-today > span { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- chips ---------- */
.gdp-chips { display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; }
.gdp-chips::-webkit-scrollbar { display: none; }
.gdp-chips-wrap { position: relative; }
.gdp--sheet .gdp-chips-wrap { flex: 0 0 auto; }
.gdp-chips-arrow { display: none; }
.gdp--drop .gdp-chips { cursor: grab; }
.gdp--drop .gdp-chips.is-dragging { cursor: grabbing; user-select: none; }
.gdp--drop .gdp-chips.is-dragging .gdp-chip { pointer-events: none; }
.gdp--drop .gdp-chip { user-select: none; }
.gdp--drop .gdp-chips-arrow {
    position: absolute; top: 0; z-index: 2; width: 32px; height: 32px; padding: 0;
    border: 1px solid #cfcfcf; border-radius: 50%; background: #fff; color: var(--gdp-ink);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .18); font-size: 22px; line-height: 28px; cursor: pointer;
    display: none; align-items: center; justify-content: center;
}
.gdp--drop .gdp-chips-arrow:hover { border-color: var(--gdp-ink); }
.gdp--drop .gdp-chips-arrow--prev { left: 0; }
.gdp--drop .gdp-chips-arrow--next { right: 0; }
.gdp--drop .gdp-chips-wrap.has-left .gdp-chips-arrow--prev,
.gdp--drop .gdp-chips-wrap.has-right .gdp-chips-arrow--next { display: flex; }
.gdp--drop .gdp-chips-wrap.has-left .gdp-chips { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 48px); mask-image: linear-gradient(to right, transparent 0, #000 48px); }
.gdp--drop .gdp-chips-wrap.has-right .gdp-chips { -webkit-mask-image: linear-gradient(to left, transparent 0, #000 48px); mask-image: linear-gradient(to left, transparent 0, #000 48px); }
.gdp--drop .gdp-chips-wrap.has-left.has-right .gdp-chips {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
}
.gdp-chip {
    flex: 0 0 auto; border: 1px solid #cfcfcf; background: #fff; color: var(--gdp-ink);
    border-radius: 999px; padding: 6px 14px; font-size: 14px; line-height: 20px; cursor: pointer;
}
.gdp-chip:hover { border-color: var(--gdp-ink); }
.gdp-chip.is-active { background: var(--gdp-ink); border-color: var(--gdp-ink); color: #fff; }
/* month without events (venue page): only the request form there */
.gdp-chip.is-request:not(.is-active) { border-style: dashed; color: #8a8a8a; }
.gdp-chip.is-request::after { content: " \2709"; font-size: 12px; }

/* ---------- footer ---------- */
.gdp-foot {
    display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--gdp-line);
    margin: 12px -20px 0; padding: 12px 20px;
}
.gdp-summary { flex: 1 1 auto; min-width: 0; font-size: 14px; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gdp-foot .btn { flex: 0 0 auto; min-width: 96px; height: 40px; font-weight: 500; }
.gdp-foot .gdp-reset { background: #fff; border: 1px solid #cfcfcf; color: var(--gdp-ink); }
.gdp-foot .gdp-apply { background: var(--gdp-accent); border-color: var(--gdp-accent); color: #000; }

/* ---------- mobile sheet ---------- */
.gdp-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 1059; }
.gdp--sheet {
    position: fixed; left: 0; right: 0; bottom: 0; top: 4vh; top: 4dvh;
    border-radius: 16px 16px 0 0; display: flex; flex-direction: column; overflow: hidden;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, .2);
    --gdp-cell: 44px;
}
.gdp--sheet .gdp-head { flex: 0 0 auto; display: flex; align-items: center; padding: 12px 16px 8px; }
.gdp-title { flex: 1 1 auto; font-size: 18px; font-weight: 500; }
.gdp-close {
    flex: 0 0 auto; width: 40px; height: 40px; margin-right: -8px; border: 0; background: transparent;
    font-size: 32px; line-height: 40px; color: var(--gdp-ink); cursor: pointer; padding: 0;
}
.gdp--sheet .gdp-chips { flex: 0 0 auto; padding: 0 16px 10px; }
.gdp-weekrow {
    flex: 0 0 auto; display: grid; grid-template-columns: repeat(7, 1fr); padding: 6px 12px;
    border-bottom: 1px solid var(--gdp-line); font-size: 12px; color: var(--gdp-muted); text-align: center;
}
.gdp--sheet .gdp-body {
    flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    padding: 0 12px 16px; position: relative;
}
.gdp--sheet .gdp-month-title { text-align: left; padding: 16px 4px 4px; font-size: 16px; }
.gdp--sheet .gdp-day:hover:not(:disabled) > span { box-shadow: none; }
.gdp--sheet .gdp-foot {
    flex: 0 0 auto; margin: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: #fff; box-shadow: 0 -2px 8px rgba(0, 0, 0, .06);
}
.gdp--sheet .gdp-summary { display: none; }
.gdp--sheet .gdp-foot .btn { flex: 1 1 0; height: 48px; font-size: 16px; }

html.gdp-html-lock { overflow: hidden; }
body.gdp-body-lock { position: fixed; left: 0; right: 0; overflow: hidden; width: 100%; }
