.ofg-evtcal{font:inherit;color:inherit;position:relative}.ofg-evtcal [hidden]{display:none!important}.ofg-evtcal-controls{display:flex;justify-content:flex-end;margin-bottom:12px}.ofg-evtcal-view-switch{display:flex;gap:6px}.ofg-evtcal-view-switch button,.ofg-evtcal-month-nav button{cursor:pointer;font:inherit;border:1px solid #bbb;background:transparent;padding:5px 12px;border-radius:4px;color:inherit}.ofg-evtcal-view-switch [aria-pressed=true]{background:#eee;color:#222}.ofg-evtcal-table-wrap{width:100%}.ofg-evtcal-table{width:100%;border-collapse:collapse;font:inherit}.ofg-evtcal-table-default th,.ofg-evtcal-table-default td{padding:12px 10px;border-bottom:1px solid #ddd;text-align:left;vertical-align:top}.ofg-evtcal-table-default th{font-weight:700}.ofg-evtcal-table th:first-child{width:23%}.ofg-evtcal-table th:nth-child(2){width:19%}.ofg-evtcal-table th:nth-child(3){width:19%}.ofg-evtcal-links{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-top:8px}.ofg-evtcal-links:empty{display:none}.ofg-evtcal-default-button{display:inline-block;font:inherit;font-size:.9em;text-decoration:none!important;padding:6px 12px;border:1px solid currentColor;border-radius:4px;color:inherit;background:transparent;cursor:pointer}.ofg-evtcal-more{margin-top:12px}.ofg-evtcal-calendar{width:100%}.ofg-evtcal-month-nav{display:flex;align-items:center;justify-content:center;gap:16px;margin-bottom:12px}.ofg-evtcal-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}.ofg-evtcal-weekday{padding:7px 2px;text-align:center;font-weight:700;font-size:.85em;background:var(--ofg-weekday-header-bg,#F5F5F5)}.ofg-evtcal-day{min-width:0;min-height:var(--ofg-cell-height);border:1px solid #ddd;padding:4px;box-sizing:border-box}.ofg-evtcal-day-number{font-size:.8em;display:block;margin-bottom:4px}.ofg-evtcal-day-event,.ofg-evtcal-day-more{display:block;width:100%;box-sizing:border-box;text-align:left;cursor:pointer;border:0;border-radius:3px;padding:3px;background:#eee;color:#222;font:inherit;font-size:.74em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:2px 0}.ofg-evtcal-day-more{background:transparent;text-decoration:underline}.ofg-evtcal-panel-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.38);z-index:999990}.ofg-evtcal-panel{position:fixed;top:0;right:0;height:100dvh;width:min(390px,100vw);overflow-y:auto;box-sizing:border-box;padding:26px;background:#fff;color:#222;z-index:999991;box-shadow:-4px 0 25px rgba(0,0,0,.15)}.ofg-evtcal-panel-close{position:absolute;top:8px;right:12px;border:0;background:transparent;font-size:30px;cursor:pointer}.ofg-evtcal-panel-body img{max-width:100%;height:auto;display:block;margin-bottom:18px}.ofg-evtcal-panel-body h3{margin:0 0 10px}.ofg-evtcal-panel-body p{margin:0 0 12px}.ofg-evtcal-panel-body .ofg-evtcal-links{margin-top:18px}.ofg-evtcal-panel-body a{color:inherit}@media(max-width:767px){.ofg-evtcal-table,.ofg-evtcal-table tbody,.ofg-evtcal-table tr,.ofg-evtcal-table td{display:block;width:100%!important;box-sizing:border-box}.ofg-evtcal-table thead{display:none}.ofg-evtcal-table tr{border:1px solid #ddd;padding:12px;margin-bottom:12px;border-radius:5px}.ofg-evtcal-table td{border:0!important;padding:3px 0!important}.ofg-evtcal-table td[data-label=Event]{font-size:1.1em}.ofg-evtcal-day{min-height:55px;padding:2px}.ofg-evtcal-day-event{font-size:.64em}.ofg-evtcal-weekday{font-size:.7em}}
.ofg-evtcal-links{display:inline;vertical-align:middle;margin:0}.ofg-evtcal-links a,.ofg-evtcal-calendar-add{margin-left:5px}.ofg-evtcal-placement-below{display:block;margin-top:7px}.ofg-evtcal-booking-text{text-decoration:underline}.ofg-evtcal-calendar-add{display:inline-block;position:relative;vertical-align:middle}.ofg-evtcal-calendar-action{font:inherit;font-size:.83em;border:0;background:transparent;text-decoration:underline;color:inherit;cursor:pointer;padding:3px}.ofg-evtcal-calendar-options{position:absolute;z-index:100;left:0;top:100%;width:200px;background:#fff;color:#222;box-shadow:0 4px 16px #0003;border:1px solid #ddd;padding:6px}.ofg-evtcal-calendar-options a{display:block!important;padding:7px!important;color:#222!important;text-decoration:none}.ofg-evtcal-calendar-options a:hover{background:#f2f2f2}

/* v0.3.0: compact, consistently sized three-column list */
.ofg-evtcal-table{font-size:inherit;line-height:inherit}
.ofg-evtcal-table th,.ofg-evtcal-table td{font-size:inherit;line-height:inherit}
.ofg-evtcal-table th:first-child{width:23%}
.ofg-evtcal-table th:nth-child(2){width:25%}
.ofg-evtcal-table th:nth-child(3){width:52%}
.ofg-evtcal-datetime{display:flex;flex-direction:column;align-items:flex-start;gap:2px}
.ofg-evtcal-datetime strong{font-size:inherit;line-height:inherit;font-weight:700}
.ofg-evtcal-datetime .ofg-evtcal-calendar-add{margin:3px 0 0}
.ofg-evtcal-calendar-action{font-size:inherit;line-height:inherit}
.ofg-evtcal-calendar-options{font-size:inherit;line-height:inherit;width:max-content;min-width:170px;max-width:min(250px,80vw)}
.ofg-evtcal-calendar-options a{font-size:inherit;line-height:inherit}
.ofg-evtcal-links{margin:0;vertical-align:baseline}
.ofg-evtcal-links .ofg-evtcal-details{margin:0 6px 0 6px;vertical-align:baseline}
.ofg-evtcal-details-text{font:inherit;font-size:inherit;line-height:inherit;color:inherit;background:none;border:0;text-decoration:underline;cursor:pointer;padding:0}
.ofg-evtcal-default-button{font-size:inherit}
.ofg-evtcal-panel-body .ofg-evtcal-links{display:flex;flex-wrap:wrap;gap:7px}
@media(max-width:767px){.ofg-evtcal-table td[data-label=Event]{font-size:inherit}.ofg-evtcal-datetime{gap:2px}.ofg-evtcal-table td{font-size:inherit!important}}

/* Ensure theme table rules do not cancel the intended hierarchy. */
.ofg-evtcal .ofg-evtcal-table tbody td[data-label="Event"] strong:not(.ofg-evtcal-event-title),
.ofg-evtcal .ofg-evtcal-table tbody td[data-label="Date & Time"] strong,
.ofg-evtcal .ofg-evtcal-datetime strong {font-weight:700 !important; font-size:inherit; color:inherit;}
.ofg-evtcal .ofg-evtcal-table tbody td {font-size:inherit;}

/* v0.3.2: give date/time enough horizontal space without changing mobile cards. */
@media (min-width:768px){
 .ofg-evtcal .ofg-evtcal-table{table-layout:fixed;width:100%}
 .ofg-evtcal .ofg-evtcal-table th:first-child{width:20%}
 .ofg-evtcal .ofg-evtcal-table th:nth-child(2){width:34%}
 .ofg-evtcal .ofg-evtcal-table th:nth-child(3){width:46%}
 .ofg-evtcal .ofg-evtcal-datetime strong{white-space:nowrap;display:block}
}

/* v0.3.3: enforce identical type size across all three list columns.
   The theme can still provide the base size on the containing shortcode. */
.ofg-evtcal .ofg-evtcal-table { font-size: inherit; }
.ofg-evtcal .ofg-evtcal-table tbody td { font-size: 1em !important; }
.ofg-evtcal .ofg-evtcal-table tbody td[data-label="Event"] strong:not(.ofg-evtcal-event-title),
.ofg-evtcal .ofg-evtcal-table tbody td[data-label="Date & Time"] strong,
.ofg-evtcal .ofg-evtcal-table tbody .ofg-evtcal-datetime,
.ofg-evtcal .ofg-evtcal-table tbody .ofg-evtcal-description { font-size: 1em !important; line-height: inherit; }
.ofg-evtcal .ofg-evtcal-table tbody td[data-label="Event"] strong:not(.ofg-evtcal-event-title),
.ofg-evtcal .ofg-evtcal-table tbody td[data-label="Date & Time"] strong { font-weight: 700 !important; }

/* v0.3.4: date and time share a single horizontal line; calendar action stays below. */
.ofg-evtcal .ofg-evtcal-datetime-line {display:flex; flex-direction:row; flex-wrap:nowrap; align-items:baseline; gap:.45em; white-space:nowrap; font-size:inherit; line-height:inherit;}
.ofg-evtcal .ofg-evtcal-datetime-line strong {display:inline; font-size:inherit; font-weight:700;}
.ofg-evtcal .ofg-evtcal-datetime-separator {flex:none;}
.ofg-evtcal .ofg-evtcal-datetime .ofg-evtcal-calendar-add {display:block; margin:3px 0 0;}
@media(max-width:767px){.ofg-evtcal .ofg-evtcal-datetime-line {white-space:normal;flex-wrap:wrap;}}

/* v0.3.5: admin-configurable desktop column widths */
@media(min-width:768px){
.ofg-evtcal .ofg-evtcal-table th:first-child{width:var(--ofg-col-event,20%)}
.ofg-evtcal .ofg-evtcal-table th:nth-child(2){width:var(--ofg-col-datetime,34%)}
.ofg-evtcal .ofg-evtcal-table th:nth-child(3){width:var(--ofg-col-description,46%)}
}

/* v0.3.6: global Add to Calendar placement and website calendar colors. */
.ofg-evtcal .ofg-evtcal-calendar-placement-inline .ofg-evtcal-calendar-add{display:inline-block;margin:0 0 0 .65em;white-space:nowrap;vertical-align:baseline}
.ofg-evtcal .ofg-evtcal-calendar-placement-newline .ofg-evtcal-calendar-add{display:block;margin:3px 0 0}
.ofg-evtcal .ofg-evtcal-day-event{background:var(--ofg-event-bg,#FFF0E5);color:var(--ofg-event-text,#C65300)}
.ofg-evtcal .ofg-evtcal-month-name,.ofg-evtcal .ofg-evtcal-day-more{color:var(--ofg-calendar-accent,#E66B20)}
@media(max-width:767px){.ofg-evtcal .ofg-evtcal-calendar-placement-inline .ofg-evtcal-datetime-line{flex-wrap:wrap;white-space:normal}}

/* v0.3.8 — tablet/desktop defaults, safe wrapping, selectable visual system. */
.ofg-evtcal .ofg-evtcal-table th,.ofg-evtcal .ofg-evtcal-table td{padding:var(--ofg-cell-padding,12px)!important;vertical-align:top}
.ofg-evtcal .ofg-evtcal-table td{overflow-wrap:anywhere}
.ofg-evtcal .ofg-evtcal-datetime-line{display:flex;flex-wrap:wrap;gap:.35em;align-items:baseline;white-space:normal;min-width:0}
.ofg-evtcal .ofg-evtcal-datetime-line > strong,.ofg-evtcal .ofg-evtcal-datetime-separator{white-space:nowrap;flex-shrink:0}
.ofg-evtcal .ofg-evtcal-calendar-placement-inline .ofg-evtcal-calendar-add{margin:0;display:inline-flex;flex-shrink:0;max-width:100%;vertical-align:middle}
.ofg-evtcal .ofg-evtcal-calendar-placement-newline .ofg-evtcal-calendar-add,.ofg-evtcal[data-wrap-mode="stack"] .ofg-evtcal-calendar-add{display:block;margin:4px 0 0}
.ofg-evtcal[data-wrap-mode="stack"] .ofg-evtcal-calendar-placement-inline .ofg-evtcal-calendar-add{flex-basis:100%}
.ofg-evtcal[data-style-mode="fallback"] .ofg-evtcal-table-default td,.ofg-evtcal[data-style-mode="fallback"] .ofg-evtcal-table-default th{border-bottom:1px solid #ddd}
@media(max-width:767px){.ofg-evtcal .ofg-evtcal-table td{padding:3px 0!important}.ofg-evtcal .ofg-evtcal-table tr{padding:12px}}

/* Compact non-Bootstrap fallback without overriding theme-wide classes. */
.ofg-evtcal[data-style-mode="bootstrap"] .ofg-evtcal-table{border-collapse:collapse}
.ofg-evtcal[data-style-mode="bootstrap"] .ofg-evtcal-table th,.ofg-evtcal[data-style-mode="bootstrap"] .ofg-evtcal-table td{border-bottom:1px solid #e4e4e4}
.ofg-evtcal[data-style-mode="bootstrap"] .ofg-evtcal-table tbody tr:nth-child(odd){background-color:rgba(0,0,0,.025)}

/* v0.3.9: configurable table header size; date expansion uses naturally aligned grid rows. */
.ofg-evtcal[data-header-size="body"] .ofg-evtcal-table thead th{font-size:1em!important}
.ofg-evtcal .ofg-evtcal-day-event[hidden]{display:none!important}
.ofg-evtcal .ofg-evtcal-calendar-grid{align-items:stretch}
.ofg-evtcal .ofg-evtcal-day{min-height:var(--ofg-cell-height);height:auto}

/* v0.3.11 — real theme heading tags, not approximate font-size presets. */
.ofg-evtcal .ofg-evtcal-table thead th .ofg-evtcal-column-heading{margin:0; padding:0;}
/* Sidebar Add to Calendar is a secondary utility beneath the date/time. */
.ofg-evtcal .ofg-evtcal-panel-datetime{margin-bottom:0!important;}
.ofg-evtcal .ofg-evtcal-panel-calendar{margin:0 0 16px;}
.ofg-evtcal .ofg-evtcal-panel-calendar .ofg-evtcal-calendar-add{display:inline-block;margin:0;}
.ofg-evtcal .ofg-evtcal-panel-calendar .ofg-evtcal-calendar-action{font:inherit;font-size:.88em!important;color:inherit;background:transparent!important;border:0!important;box-shadow:none!important;padding:4px 0!important;text-decoration:underline;cursor:pointer;}
.ofg-evtcal .ofg-evtcal-panel-calendar .ofg-evtcal-calendar-action:before{content:"\1F4C5";display:inline-block;margin-right:.4em;text-decoration:none;}
.ofg-evtcal .ofg-evtcal-panel-booking{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px;align-items:center;}

.ofg-evtcal-pdf-form{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 12px}.ofg-evtcal-pdf-form label{display:flex;align-items:center;gap:6px;font-size:.9em}.ofg-evtcal-pdf-form select{padding:5px 8px;max-width:180px}/* Low-specificity structural fallback: designer classes from Global Settings own the colors, border, fonts, and shape. */
:where(.ofg-evtcal-pdf-download){cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:5px;max-width:100%;box-sizing:border-box;white-space:nowrap}

.ofg-evtcal-pdf-form{margin:18px 0 4px!important;justify-content:flex-end}.ofg-evtcal-pdf-form select{max-width:none}.ofg-evtcal-pdf-form label{margin:0}.ofg-evtcal-pdf-form button{white-space:nowrap}

/* v0.4.3: match font size across all three List View data columns. */
.ofg-evtcal .ofg-evtcal-table tbody tr > td {font-size:inherit!important;line-height:inherit;}
.ofg-evtcal .ofg-evtcal-table tbody tr > td strong:not(.ofg-evtcal-event-title),
.ofg-evtcal .ofg-evtcal-table tbody tr > td .ofg-evtcal-description,
.ofg-evtcal .ofg-evtcal-table tbody tr > td .ofg-evtcal-datetime,
.ofg-evtcal .ofg-evtcal-table tbody tr > td .ofg-evtcal-datetime-line {font-size:inherit!important;line-height:inherit;}

/* v0.4.7: detail panel hierarchy and utilities */
.ofg-evtcal .ofg-evtcal-panel-body .ofg-evtcal-panel-title{margin:0 0 16px!important;}
.ofg-evtcal .ofg-evtcal-panel-date-row,.ofg-evtcal .ofg-evtcal-panel-time-row{display:flex;gap:9px;align-items:center;line-height:1.45;margin:0 0 7px;font-size:inherit;font-weight:400;}
.ofg-evtcal .ofg-evtcal-panel-icon{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;flex:0 0 18px;color:inherit;}
.ofg-evtcal .ofg-evtcal-panel-icon svg{display:block;width:18px;height:18px;}
.ofg-evtcal .ofg-evtcal-panel-calendar{display:flex;align-items:center;gap:9px;margin:9px 0 0 0!important;}
.ofg-evtcal .ofg-evtcal-panel-calendar .ofg-evtcal-calendar-action:before{content:none!important;}
.ofg-evtcal .ofg-evtcal-panel-calendar .ofg-evtcal-calendar-action{padding:2px 0!important;}
.ofg-evtcal .ofg-evtcal-panel-description{margin:20px 0 0!important;line-height:1.5;white-space:pre-line;}
.ofg-evtcal .ofg-evtcal-panel-booking{margin-top:16px;}

/* v0.4.9: link-mode More Details must not inherit plugin or theme button chrome. */
.ofg-evtcal button.ofg-evtcal-details[data-details-mode="link"]{appearance:none!important;-webkit-appearance:none!important;background:transparent!important;background-image:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;margin:0 6px!important;min-height:0!important;min-width:0!important;width:auto!important;height:auto!important;line-height:inherit!important;font-family:inherit!important;text-decoration:underline;cursor:pointer;vertical-align:baseline;}
.ofg-evtcal button.ofg-evtcal-details[data-details-mode="link"]:hover{background:transparent!important;box-shadow:none!important;}

.ofg-evtcal-recurrence-note{font-size:.88em;color:inherit;margin-top:3px;opacity:.8}
.ofg-evtcal-reschedule-note{margin-top:12px;margin-bottom:8px;font-size:.9em;font-weight:500}

/* 0.5.5: compact mobile cards. Never replace the site's body font family. */
.ofg-evtcal .ofg-evtcal-table tbody td[data-label="Event"] strong.ofg-evtcal-event-title:not(.ofg-evtcal-event-title-custom),
.ofg-evtcal .ofg-evtcal-datetime strong {font-family:inherit;font-weight:700!important;}
@media(max-width:767px){
 .ofg-evtcal .ofg-evtcal-table tbody tr {background:transparent!important;background-image:none!important;}
 .ofg-evtcal .ofg-evtcal-table tbody tr > td {background:transparent!important;background-image:none!important;box-shadow:none!important;}
 .ofg-evtcal .ofg-evtcal-table tbody tr > td[data-label="Event"] {padding:0 0 7px!important;border:0!important;}
 .ofg-evtcal .ofg-evtcal-table tbody tr > td[data-label="Date & Time"] {padding:0 0 12px!important;margin-bottom:12px!important;border:0!important;border-bottom:1px solid #d9d9d9!important;}
 .ofg-evtcal .ofg-evtcal-table tbody tr > td[data-label="Description"] {padding:0!important;}
 .ofg-evtcal .ofg-evtcal-datetime-line {display:flex;flex-direction:column;align-items:flex-start;gap:5px;}
 .ofg-evtcal .ofg-evtcal-datetime-separator {display:none;}
 .ofg-evtcal .ofg-evtcal-date-piece,.ofg-evtcal .ofg-evtcal-time-piece {display:flex;align-items:center;gap:8px;}
 .ofg-evtcal .ofg-evtcal-date-piece:before,.ofg-evtcal .ofg-evtcal-time-piece:before {content:"";display:inline-block;flex:none;width:17px;height:17px;background:currentColor;opacity:.65;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;}
 .ofg-evtcal .ofg-evtcal-date-piece:before { -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E");}
 .ofg-evtcal .ofg-evtcal-time-piece:before { -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");}
}

/* v0.5.6: intentional mobile hierarchy, respecting theme typography and
   existing global booking-button classes. No colors, fonts or button skins
   are forced onto links configured by the site designer. */
@media (max-width:767px) {
 .ofg-evtcal .ofg-evtcal-table tbody tr {
  border:1px solid #dedede;
  border-radius:8px;
  padding:14px;
  margin-bottom:14px;
  background:transparent!important;
 }
 .ofg-evtcal .ofg-evtcal-table tbody td[data-label="Event"] {
  padding:0 0 10px!important;
  font-family:inherit;
  font-size:1.2em!important;
  line-height:1.3;
 }
 .ofg-evtcal .ofg-evtcal-event-title:not(.ofg-evtcal-event-title-custom) {
  font-weight:700!important;
 }
 .ofg-evtcal .ofg-evtcal-table tbody td[data-label="Date & Time"] {
  padding:0 0 13px!important;
  margin-bottom:12px!important;
  border:0!important;
  border-bottom:1px solid #dedede!important;
 }
 .ofg-evtcal .ofg-evtcal-datetime .ofg-evtcal-date-piece strong,
 .ofg-evtcal .ofg-evtcal-datetime .ofg-evtcal-time-piece strong {
  font-weight:700!important;
 }
 .ofg-evtcal .ofg-evtcal-table tbody td[data-label="Description"] {
  padding:0!important;
  line-height:1.5;
 }
 .ofg-evtcal .ofg-evtcal-table tbody td .ofg-evtcal-links {
  display:flex!important;
  align-items:center;
  justify-content:flex-start;
  flex-wrap:wrap;
  column-gap:9px;
  row-gap:8px;
  margin:12px 0 0!important;
  width:100%;
 }
 .ofg-evtcal .ofg-evtcal-table tbody .ofg-evtcal-links > .ofg-evtcal-booking {
  display:inline-flex;
  align-items:center;
  width:auto!important;
  margin:0!important;
  float:none!important;
  flex:0 0 auto;
 }
 .ofg-evtcal .ofg-evtcal-table tbody .ofg-evtcal-links > .ofg-evtcal-details {
  display:inline-flex!important;
  align-items:center;
  width:auto!important;
  float:none!important;
  flex:0 0 auto;
 }
 .ofg-evtcal .ofg-evtcal-table tbody .ofg-evtcal-links > .ofg-evtcal-mobile-action-separator {
  display:inline-flex;
  align-items:center;
  color:inherit;
  opacity:.65;
  font-weight:400;
  padding:0;
 }
}

/* v0.5.7 — Keep theme-owned Bootstrap button styles intact. */
.ofg-evtcal .ofg-evtcal-booking-button:not(.ofg-evtcal-default-button){
 text-decoration:none;
}
/* On desktop, a below-placed booking action breaks to the next line without
   changing the anchor's intrinsic display type, padding or theme button style. */
@media(min-width:768px){
 .ofg-evtcal .ofg-evtcal-table tbody .ofg-evtcal-links:has(> .ofg-evtcal-placement-below){display:block;}
 .ofg-evtcal .ofg-evtcal-table tbody .ofg-evtcal-links > .ofg-evtcal-placement-below{display:block;width:max-content;max-width:100%;margin-top:7px;}
 .ofg-evtcal .ofg-evtcal-calendar-placement-inline{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;}
 .ofg-evtcal .ofg-evtcal-calendar-placement-inline .ofg-evtcal-calendar-add{display:inline-flex;margin:0;}
}
/* Title headings use actual theme heading font-family and font-size.
   Do not force body typography onto H4/H5/H6. */
.ofg-evtcal .ofg-evtcal-table .ofg-evtcal-event-title:is(h4,h5,h6){
 margin:0!important;
 padding:0;
 font-weight:700;
}
@media(max-width:767px){
 .ofg-evtcal .ofg-evtcal-table tbody td[data-label="Event"] .ofg-evtcal-event-title:is(h4,h5,h6){
  line-height:1.25;
  font-weight:700;
 }
 /* Date and time stay on the left; Add to Calendar is a compact utility at right. */
 .ofg-evtcal .ofg-evtcal-table tbody .ofg-evtcal-datetime:not(.ofg-evtcal-panel-datetime){
  display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;
 }
 .ofg-evtcal .ofg-evtcal-table tbody .ofg-evtcal-datetime-line{flex:1 1 auto;min-width:0;}
 .ofg-evtcal .ofg-evtcal-table tbody .ofg-evtcal-datetime > .ofg-evtcal-calendar-add{
  display:inline-flex!important;flex:0 1 auto;align-self:center;margin:0!important;max-width:45%;
 }
 .ofg-evtcal .ofg-evtcal-table tbody .ofg-evtcal-calendar-add button{white-space:normal;text-align:center;}

}


/* v0.5.8: Desktop titles must not inherit the table cell's small font size.
   Default titles retain the BODY font, but now have a visible bold hierarchy.
   H4/H5/H6 selectors retain their theme-defined heading font and sizing. */
.ofg-evtcal .ofg-evtcal-table tbody tr > td[data-label="Event"] > .ofg-evtcal-event-title {
  display:block;
  margin:0;
  padding:0;
  line-height:1.3!important;
}
.ofg-evtcal .ofg-evtcal-table tbody tr > td[data-label="Event"] > strong.ofg-evtcal-event-title:not(.ofg-evtcal-event-title-custom) {
  font-family:inherit;
  font-size:1.25em!important;
}
.ofg-evtcal .ofg-evtcal-table tbody tr > td[data-label="Event"] > .ofg-evtcal-event-title:is(h4,h5,h6):not(.ofg-evtcal-event-title-custom) {
  font-weight:700!important;
  /* Leave font-family and font-size to the chosen theme heading style. */
}

/* Mobile: date and time stay LEFT, Add to Calendar sits RIGHT of both.
   Use an explicit two-column grid so theme flex/text-align rules cannot
   reposition the left-hand date/time block or push the button underneath. */
@media (max-width:767px) {
 .ofg-evtcal .ofg-evtcal-table tbody tr > td[data-label="Event"] > strong.ofg-evtcal-event-title:not(.ofg-evtcal-event-title-custom) {
   font-size:1em!important; /* The mobile Event cell already uses 1.2em. */
 }
 .ofg-evtcal .ofg-evtcal-table tbody tr > td[data-label="Date & Time"] .ofg-evtcal-datetime {
   display:grid!important;
   grid-template-columns:minmax(0,1fr) auto;
   align-items:center;
   justify-content:stretch;
   column-gap:10px;
   width:100%;
   max-width:100%;
   text-align:left;
 }
 .ofg-evtcal .ofg-evtcal-table tbody tr > td[data-label="Date & Time"] .ofg-evtcal-datetime-line {
   grid-column:1;
   grid-row:1;
   display:flex;
   flex-direction:column;
   align-items:flex-start;
   justify-self:start;
   text-align:left;
   min-width:0;
 }
 .ofg-evtcal .ofg-evtcal-table tbody tr > td[data-label="Date & Time"] .ofg-evtcal-datetime > .ofg-evtcal-calendar-add {
   grid-column:2;
   grid-row:1;
   display:inline-flex!important;
   justify-self:end;
   align-self:center;
   width:auto;
   max-width:100%;
   margin:0!important;
 }
 .ofg-evtcal .ofg-evtcal-table tbody tr > td[data-label="Date & Time"] .ofg-evtcal-datetime > .ofg-evtcal-calendar-add > button {
   white-space:nowrap;
 }
 /* Recurring entries may have exception notes: let them span the grid. */
 .ofg-evtcal .ofg-evtcal-table tbody tr > td[data-label="Date & Time"] .ofg-evtcal-recurrence-note {
   grid-column:1 / -1;
 }
}

/* Custom title classes receive no plugin font-size or font-weight overrides. */

/* v0.5.10: grouped recurrence shows weekday(s) and time separately, once each. */
.ofg-evtcal .ofg-evtcal-grouped-datetime .ofg-evtcal-datetime-line {
  display:flex;flex-direction:column;align-items:flex-start;gap:5px;white-space:normal;
}

/* v0.5.11: shared actions aligned on one desktop row; stack cleanly on mobile. */
.ofg-evtcal .ofg-evtcal-footer-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:12px;}
.ofg-evtcal .ofg-evtcal-footer-actions > .ofg-evtcal-more{margin:0;}
.ofg-evtcal .ofg-evtcal-footer-actions > .ofg-evtcal-pdf-form{margin:0 0 0 auto!important;justify-content:flex-end;}
@media (max-width:767px){
 .ofg-evtcal .ofg-evtcal-footer-actions{flex-direction:column;align-items:stretch;gap:12px;}
 .ofg-evtcal .ofg-evtcal-footer-actions > .ofg-evtcal-more{align-self:flex-start;}
 .ofg-evtcal .ofg-evtcal-footer-actions > .ofg-evtcal-pdf-form{margin:0!important;align-self:flex-end;}
}
/* Table header class is provided by the theme. Don't force header sizes. */

/* v0.5.13: website-only treatment, no changes to printable PDFs. */
@media (min-width:768px){
 .ofg-evtcal .ofg-evtcal-table tbody tr > td {
  --bs-table-bg-type:transparent!important;--bs-table-accent-bg:transparent!important;
  box-shadow:none!important;background-color:transparent!important;
 }
 .ofg-evtcal .ofg-evtcal-table tbody tr:nth-child(odd) > td {background-color:var(--ofg-web-shade,#F0F0F0)!important;}
}
/* The whole row isn't transparent on mobile: the card itself gets one coherent surface. */
@media (max-width:767px){
 .ofg-evtcal .ofg-evtcal-table tbody tr {background:#fff!important;}
}
/* Designer date/time classes control font size and weight on both viewports. */
.ofg-evtcal .ofg-evtcal-table tbody tr > td[data-label="Date & Time"] .ofg-evtcal-datetime-text strong,
.ofg-evtcal .ofg-evtcal-table tbody tr > td[data-label="Date & Time"] .ofg-evtcal-datetime-text .ofg-evtcal-date-piece strong,
.ofg-evtcal .ofg-evtcal-table tbody tr > td[data-label="Date & Time"] .ofg-evtcal-datetime-text .ofg-evtcal-time-piece strong {font-size:inherit!important;font-weight:inherit!important;color:inherit;}
.ofg-evtcal .ofg-evtcal-table tbody .ofg-evtcal-datetime-text:not([class*="fw-"]) {font-weight:700;}
.ofg-evtcal .ofg-evtcal-panel-calendar-source[hidden]{display:none!important;}
/* More Details link mode: preserve designer font utilities rather than resetting them with font:inherit!important. */
.ofg-evtcal button.ofg-evtcal-details[data-details-mode="link"] {font-family:inherit!important;font-size:inherit;}
/* Respect Bootstrap font-size utilities applied directly to the visible control. */
.ofg-evtcal button.ofg-evtcal-details[data-details-mode="link"].small {font-size:.875em!important;}
.ofg-evtcal button.ofg-evtcal-details[data-details-mode="link"].fs-1 {font-size:calc(1.375rem + 1.5vw)!important;}
.ofg-evtcal button.ofg-evtcal-details[data-details-mode="link"].fs-2 {font-size:calc(1.325rem + .9vw)!important;}
.ofg-evtcal button.ofg-evtcal-details[data-details-mode="link"].fs-3 {font-size:calc(1.3rem + .6vw)!important;}
.ofg-evtcal button.ofg-evtcal-details[data-details-mode="link"].fs-4 {font-size:calc(1.275rem + .3vw)!important;}
.ofg-evtcal button.ofg-evtcal-details[data-details-mode="link"].fs-5 {font-size:1.25rem!important;}
.ofg-evtcal button.ofg-evtcal-details[data-details-mode="link"].fs-6 {font-size:1rem!important;}
/* The download glyph inherits the site's existing button color. */
.ofg-evtcal .ofg-evtcal-download-icon{display:inline-block;vertical-align:-.18em;flex:none;margin-right:3px;}

/* v0.5.15: PDF download is now a primary action beside the view toggle. */
.ofg-evtcal .ofg-evtcal-controls{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.ofg-evtcal .ofg-evtcal-controls .ofg-evtcal-pdf-form{margin:0!important;justify-content:flex-end}
.ofg-evtcal .ofg-evtcal-footer-actions{justify-content:flex-start}
@media(max-width:767px){.ofg-evtcal .ofg-evtcal-controls{gap:8px;align-items:center}.ofg-evtcal .ofg-evtcal-controls .ofg-evtcal-pdf-form{margin:0!important}}

/* v0.5.18: desktop Date & Time matches the approved stacked mobile presentation. */
@media (min-width:768px){
 .ofg-evtcal .ofg-evtcal-table tbody .ofg-evtcal-datetime-line{display:flex;flex-direction:column;align-items:flex-start;gap:6px;white-space:normal;}
 .ofg-evtcal .ofg-evtcal-table tbody .ofg-evtcal-datetime-separator{display:none;}
 .ofg-evtcal .ofg-evtcal-table tbody .ofg-evtcal-date-piece,
 .ofg-evtcal .ofg-evtcal-table tbody .ofg-evtcal-time-piece{display:flex;align-items:center;gap:8px;}
 .ofg-evtcal .ofg-evtcal-table tbody .ofg-evtcal-date-piece:before,
 .ofg-evtcal .ofg-evtcal-table tbody .ofg-evtcal-time-piece:before{content:"";display:inline-block;flex:none;width:17px;height:17px;background:currentColor;opacity:.65;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;}
 .ofg-evtcal .ofg-evtcal-table tbody .ofg-evtcal-date-piece:before { -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E");}
 .ofg-evtcal .ofg-evtcal-table tbody .ofg-evtcal-time-piece:before { -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");}
}
/* The old bold rules targeted <strong>; date/time values are now neutral spans.
   Designer classes on the date/time wrapper set the font weight and size. */
.ofg-evtcal .ofg-evtcal-table tbody .ofg-evtcal-datetime-text .ofg-evtcal-date-value,
.ofg-evtcal .ofg-evtcal-table tbody .ofg-evtcal-datetime-text .ofg-evtcal-time-value{font:inherit;color:inherit;}
.ofg-evtcal .ofg-evtcal-table tbody .ofg-evtcal-datetime-text:not([class*="fw-"]){font-weight:400;}

/* v1.0.2: keep mobile month grid within its component, never expand page width. */
@media(max-width:767px){
 .ofg-evtcal,.ofg-evtcal .ofg-evtcal-calendar,.ofg-evtcal .ofg-evtcal-calendar-grid{min-width:0;max-width:100%;box-sizing:border-box;}
 .ofg-evtcal .ofg-evtcal-calendar{overflow-x:clip;}
 .ofg-evtcal .ofg-evtcal-calendar-grid{width:100%;grid-template-columns:repeat(7,minmax(0,1fr));}
 .ofg-evtcal .ofg-evtcal-weekday,.ofg-evtcal .ofg-evtcal-day{min-width:0;max-width:100%;box-sizing:border-box;overflow:hidden;}
 .ofg-evtcal .ofg-evtcal-day-event,.ofg-evtcal .ofg-evtcal-day-more{display:block;min-width:0!important;max-width:100%;width:100%;box-sizing:border-box;padding:3px 1px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
 .ofg-evtcal .ofg-evtcal-month-nav{min-width:0;max-width:100%;}
 .ofg-evtcal .ofg-evtcal-month-name{min-width:0;overflow-wrap:anywhere;text-align:center;}
}
/* v1.0.3: button sizing only. Do not override class_print background, color, borders, font or rounding. */
.ofg-evtcal .ofg-evtcal-pdf-form button.ofg-evtcal-pdf-download{
 width:auto;min-width:0;min-height:0;max-width:100%;
 padding:.4rem .85rem!important;
}
.ofg-evtcal-portal{position:static!important;transform:none!important;filter:none!important;contain:none!important;}
