/* Tingame — Мероприятия. Все селекторы изолированы префиксом tg-. */
.tg-events-filter{margin:0 0 20px;padding:10px 12px;border:1px solid #e7d8c2;border-radius:16px;background:#fff;box-sizing:border-box;box-shadow:0 7px 20px rgba(80,54,26,.055)}
.tg-filter-row{display:grid;gap:8px;box-sizing:border-box;align-items:end}
.tg-filter-row-top{grid-template-columns:minmax(240px,1.65fr) minmax(112px,128px) minmax(190px,1fr);margin-bottom:7px}
.tg-filter-row-bottom{grid-template-columns:minmax(145px,.9fr) minmax(125px,.72fr) minmax(155px,.95fr) max-content}
.tg-filter-field{min-width:0;box-sizing:border-box}
.tg-filter-field-search{width:100%;min-width:0}.tg-filter-field-date{min-width:112px;max-width:128px}
.tg-events-filter label{display:block;margin:0 0 2px;font-size:13px;font-weight:600;color:#625b54;line-height:1.1}
.tg-events-filter input,.tg-events-filter select{width:100%;height:34px;box-sizing:border-box;padding:4px 9px;border:1px solid #e0d2bf;border-radius:8px;background:#fff;color:#333;max-width:100%;font-size:13px}
.tg-filter-actions{display:flex;flex-wrap:nowrap;gap:6px;align-items:flex-end;min-height:34px}
.tg-filter-submit,.tg-filter-reset{display:inline-flex;align-items:center;justify-content:center;height:34px;box-sizing:border-box;padding:0 11px;border-radius:8px;border:1px solid #e0d2bf;background:#fff;color:#3f4a43!important;text-decoration:none!important;cursor:pointer;font-size:13px;font-weight:700;white-space:nowrap}
.tg-filter-submit:hover{background:#04513f;border-color:#04513f}.tg-filter-reset:hover{background:#f4ead8;border-color:#d7c4aa;color:#1f5b3a!important}
.tg-filter-submit{background:#0a7257;border-color:#0a7257;color:#fff!important}
.tg-events-context{margin:0 0 20px}
.tg-events-context-title{margin:0 0 4px!important;font-size:32px!important;line-height:1.2!important;font-weight:700!important}
.tg-events-context-subtitle{margin:0 0 10px;color:#6a6a6a;font-size:14px}
.tg-events-context-chips{display:flex;flex-wrap:wrap;gap:8px}
.tg-events-chip{display:inline-flex;align-items:center;padding:4px 10px;border:1px solid #d7d7d7;border-radius:999px;background:#fff;font-size:12px;color:#666}
.tg-events-empty{padding:22px;border:1px solid #e5e5e5;background:#fafafa}

.tg-events-list{display:block;margin:16px 0}
.tg-event-card{display:grid;grid-template-columns:170px minmax(0,1fr);gap:0;margin:0 0 32px;padding:16px;background:#fff;border:1px solid #e7d8c2;border-radius:20px;box-shadow:0 9px 24px rgba(80,54,26,.065)}
.tg-event-calendar-badge{display:flex;align-items:flex-start;justify-content:center;padding-top:6px;padding-right:26px;color:#1f5b3a;box-sizing:border-box}
.tg-calendar-icon{position:relative;display:block;width:108px;height:108px;border:4px solid currentColor;border-radius:11px;box-sizing:border-box;background:#fff}
.tg-calendar-icon:after{display:none;content:none}
.tg-cal-rings:before,.tg-cal-rings:after{content:"";position:absolute;top:-12px;width:10px;height:24px;border:4px solid currentColor;border-radius:8px;background:#fff;box-sizing:border-box;z-index:2}
.tg-cal-rings:before{left:24px}.tg-cal-rings:after{right:24px}
.tg-cal-date-stack{position:absolute;z-index:3;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:78%;text-align:center;color:#1f5b3a}
.tg-cal-day-big{position:static;font-size:44px;font-weight:700;color:#1f5b3a;line-height:.95;text-align:center}
.tg-cal-month-big{position:static;font-size:15px;font-weight:700;color:#1f5b3a;letter-spacing:.05em;line-height:1;text-align:center}
.tg-event-card-body{min-width:0;border-left:2px solid #a9a9a9;padding:2px 0 0 28px}
.tg-event-card h3{margin:0 0 14px!important;padding:0!important;font-size:28px!important;line-height:1.22!important;font-weight:700!important}
.tg-event-card h3 a{color:#1f5b3a!important;font-weight:700!important;text-decoration:none!important}.tg-event-card h3 a:hover{color:#17482d!important;text-decoration:underline!important}
.tg-event-meta{display:grid;gap:7px;margin:0 0 14px}
.tg-meta-row{display:flex;align-items:center;gap:10px;min-height:20px;color:#555;line-height:1.25}
.tg-meta-row a{color:#666!important;text-decoration:underline!important;text-decoration-style:dotted!important;font-style:italic}
.tg-meta-icon{display:inline-flex;width:20px;min-width:20px;color:#888}
.tg-meta-row-datetime strong{font-weight:700;color:#444}.tg-meta-row-price strong{font-weight:800;color:#1f5b3a}.tg-meta-time{display:inline-block;margin-left:10px;font-weight:400;color:#555}
.tg-event-excerpt{max-width:760px;margin:0 0 16px;color:#444;font-size:15px;line-height:1.32}
.tg-event-more-wrap{padding-top:2px}
.tg-event-more{display:inline-flex;align-items:center;justify-content:center;min-width:154px;min-height:40px;padding:0 18px;border:1px solid #e0d2bf;border-radius:9px;background:#fbf7ef;color:#1f5b3a!important;text-decoration:none!important;font-size:13px;font-weight:700;letter-spacing:.01em;transition:all .15s ease}
.tg-event-more:hover{border-color:#d7c4aa;background:#f4ead8;color:#17482d!important}
.tg-events-pagination{display:flex;justify-content:space-between;gap:20px;margin:28px 0}.tg-events-pagination a{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 14px;border:1px solid #e0d2bf;border-radius:9px;background:#fff;color:#1f5b3a!important;text-decoration:none!important;font-weight:700}.tg-events-pagination a:hover{background:#fbf7ef}

.tg-event-single-summary{margin:0 0 24px;padding:0;font-size:16px;line-height:1.4}.tg-event-single-facts>div{margin:4px 0}.tg-event-single-facts strong,.tg-event-single-dates>strong{color:#1f5b3a;font-weight:700}.tg-event-single-facts a,.tg-event-single-dates a{color:inherit;text-decoration:underline;text-decoration-style:dotted}.tg-event-single-dates{margin-top:12px}.tg-event-single-dates span{display:block;margin-top:4px}.tg-event-single-action{margin-top:16px}.tg-event-register,.tg-button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 16px;background:#0a7257;color:#fff!important;text-decoration:none!important;border:0;border-radius:10px;cursor:pointer;font-weight:700}.tg-event-register:hover,.tg-button:hover{background:#04513f;color:#fff!important}

.tg-event-form{max-width:900px}.tg-event-form>label{display:block;margin:0 0 18px;font-weight:700;color:#544d46}.tg-event-location-section{margin:0 0 18px}.tg-event-location-title{margin:0 0 6px;font-weight:700;color:#544d46}.tg-location-row label{font-weight:700;color:#544d46}.tg-admin-location-pickers label{font-weight:600}.tg-event-form fieldset{display:block;margin:0 0 18px;padding:14px 16px;border:1px solid #e7d8c2;border-radius:14px;background:#fff}.tg-event-form legend{padding:0 6px;font-weight:800;color:#544d46}.tg-event-form input[type=text],.tg-event-form input[type=url],.tg-event-form input[type=date],.tg-event-form input[type=time],.tg-event-form input[type=number],.tg-event-form select,.tg-event-form textarea{box-sizing:border-box;width:100%;padding:10px 11px;border:1px solid #e0d2bf;border-radius:10px;background:#fff;color:#333}.tg-event-form .tg-small{width:80px!important}.tg-form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.tg-host-choice{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;max-height:none;overflow:visible}.tg-host-choice label{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;flex:0 0 auto}.tg-host-choice input[type=radio]{margin:0}.tg-success{padding:12px;background:#ecf8ef;border:1px solid #80b98b;margin-bottom:15px}.tg-error{padding:12px;background:#fff1f1;border:1px solid #dc8e8e;margin-bottom:15px}.tg-my-events table{width:100%;border-collapse:collapse}.tg-my-events th,.tg-my-events td{padding:10px;border-bottom:1px solid #ddd;text-align:left}

.tg-calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:1px;background:#ddd}.tg-calendar-grid>div{background:#fff;min-height:90px;padding:6px}.tg-cal-head{min-height:auto!important;font-weight:700}.tg-cal-day a{display:block;font-size:12px;margin-top:5px}.tg-calendar-title{font-weight:700;font-size:20px;margin-bottom:10px}


.tg-location-single-extra{margin:18px 0 28px}.tg-location-section{margin:0 0 34px}.tg-location-section h2{margin:0 0 15px!important;font-size:24px!important;line-height:1.25!important;font-weight:400!important;color:#555}.tg-location-fact{display:flex;align-items:flex-start;gap:10px;color:#666;line-height:1.4}.tg-location-fact strong{font-weight:400}.tg-location-pin{color:#888;font-size:20px;line-height:1}.tg-location-description{margin:0 0 30px}.tg-location-next{padding-left:28px;position:relative;line-height:1.45}.tg-location-next:before{content:"□";position:absolute;left:0;top:0;color:#888}.tg-location-next a,.tg-location-events-list a{color:#4f67a7;text-decoration:underline;text-decoration-style:dotted;font-style:italic}.tg-location-event-date{color:#555;font-size:13px}.tg-location-events-list{margin:0;padding-left:22px}.tg-location-events-list li{margin:0 0 7px;padding-left:4px;line-height:1.35}

@media(max-width:1200px){.tg-filter-row-top{grid-template-columns:minmax(210px,1.45fr) minmax(112px,125px) minmax(180px,1fr)}.tg-filter-row-bottom{grid-template-columns:minmax(135px,.9fr) minmax(120px,.7fr) minmax(145px,.9fr) max-content}.tg-event-card{grid-template-columns:150px minmax(0,1fr)}}
@media(max-width:760px){.tg-filter-row-top{grid-template-columns:minmax(0,1fr) minmax(130px,145px)}.tg-filter-field-host{grid-column:1/-1}.tg-filter-row-bottom{grid-template-columns:repeat(2,minmax(0,1fr))}.tg-filter-field-type{grid-column:1/-1}.tg-filter-actions{grid-column:1/-1;justify-content:flex-start}.tg-event-card{grid-template-columns:112px minmax(0,1fr)}.tg-event-calendar-badge{padding-right:12px}.tg-calendar-icon{width:76px;height:76px;border-width:3px}.tg-calendar-icon:after{display:none;content:none}.tg-cal-rings:before,.tg-cal-rings:after{top:-10px;height:20px;border-width:3px;width:8px}.tg-cal-rings:before{left:16px}.tg-cal-rings:after{right:16px}.tg-cal-date-stack{gap:3px}.tg-cal-day-big{font-size:31px;color:#1f5b3a}.tg-cal-month-big{font-size:11px;color:#1f5b3a}.tg-event-card-body{padding-left:16px}.tg-event-card h3{font-size:23px!important}.tg-event-excerpt{font-size:14px}.tg-form-row{grid-template-columns:1fr}.tg-calendar-grid>div{min-height:60px;padding:3px}.tg-cal-day a{font-size:10px}}
@media(max-width:520px){.tg-events-filter{padding:11px}.tg-filter-row-top,.tg-filter-row-bottom{grid-template-columns:1fr}.tg-filter-field-date{max-width:none}.tg-filter-field-host,.tg-filter-field-type,.tg-filter-actions{grid-column:auto}.tg-filter-actions{width:100%;justify-content:flex-start}.tg-event-card{grid-template-columns:1fr}.tg-event-calendar-badge{display:none}.tg-event-card-body{border-left:2px solid #a9a9a9;padding-left:15px}.tg-event-card h3{font-size:22px!important}.tg-meta-row-datetime span{display:inline}.tg-meta-row-datetime .tg-meta-time{display:inline-block;margin-left:9px;margin-top:0}.tg-event-more{width:100%;box-sizing:border-box}.tg-my-events{overflow-x:auto}}


/* Личный кабинет ведущего */
.tg-account-events-link{margin:0 0 20px}
.tg-account-events-link a{display:inline-flex;align-items:center;gap:6px;font-size:18px;line-height:1.35;font-weight:700;text-decoration:none!important;color:#2f6f3e!important}
.tg-account-events-link a:hover{text-decoration:underline!important}
.tg-my-events-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 18px;flex-wrap:wrap}
.tg-my-events-add{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 16px;border-radius:10px;background:#0a7257;color:#fff!important;text-decoration:none!important;font-weight:700}
.tg-my-events-add:hover{background:#04513f;color:#fff!important}
.tg-my-events-back{color:#2f6f3e!important;text-decoration:none!important;font-weight:600}
.tg-my-events-back:hover{text-decoration:underline!important}
.tg-my-events-editor-nav{display:flex;align-items:center;gap:24px;flex-wrap:wrap}
.tg-my-events-editor-instructions{color:#2f6f3e!important;text-decoration:none!important;font-weight:600}
.tg-my-events-editor-instructions:hover{text-decoration:underline!important}
.tg-my-events-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
.tg-my-events table{min-width:720px}
.tg-my-events th{font-weight:700;background:#fafafa}
.tg-my-events-title{font-weight:600;text-decoration:none!important}
.tg-my-events-actions{white-space:nowrap}
.tg-my-events-delete{color:#a43838!important}
.tg-my-events-empty{padding:18px;border:1px solid #e2e2e2;background:#fafafa}
.tg-my-events-editor{max-width:940px}

/* Фильтры и действия на странице «Мои мероприятия» */
.tg-my-events-filters{display:grid;grid-template-columns:minmax(180px,220px) minmax(320px,1fr);gap:14px 18px;align-items:end;margin:0 0 20px;padding:16px;border:1px solid #e7d8c2;border-radius:18px;background:#fff;box-sizing:border-box;box-shadow:0 8px 24px rgba(80,54,26,.06)}
.tg-my-events-filters label{display:block;margin:0 0 5px;font-size:13px;font-weight:600;color:#555}
.tg-my-events-filters select,.tg-my-events-filters input[type=search]{width:100%;height:42px;box-sizing:border-box;padding:8px 11px;border:1px solid #e0d2bf;border-radius:10px;background:#fff}
.tg-my-events-search-row{display:flex;gap:8px;align-items:center}
.tg-my-events-search-row input{min-width:0;flex:1 1 auto}
.tg-my-events-search-submit,.tg-my-events-reset{display:inline-flex;align-items:center;justify-content:center;height:42px;box-sizing:border-box;padding:0 15px;border:1px solid #e0d2bf;border-radius:10px;white-space:nowrap;text-decoration:none!important;font-size:15px;font-weight:700}
.tg-my-events-search-submit{background:#0a7257;border-color:#0a7257;color:#fff;cursor:pointer}.tg-my-events-search-submit:hover{background:#04513f;border-color:#04513f}.tg-my-events-reset{background:#fbf7ef;color:#1f5b3a!important}.tg-my-events-reset:hover{background:#f4ead8}
.tg-event-form-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.tg-button-draft{background:#6b7280!important}.tg-event-form .wp-editor-area{min-height:360px!important}
@media(max-width:760px){.tg-my-events-filters{grid-template-columns:1fr}.tg-my-events-search-row{flex-wrap:wrap}.tg-my-events-search-row input{flex:1 1 100%}}

/* 1.2.13: форма и кабинет */
.tg-weekdays-list{display:flex;flex-wrap:wrap;gap:10px 24px;margin-top:8px}.tg-weekdays-list label{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;margin:0}.tg-weekdays-list input[type=checkbox]{margin:0}.tg-my-events-recurrence{margin-top:5px;font-size:13px;line-height:1.35;color:#6b7280}.tg-button-delete{background:#a43838!important}.tg-button-delete:hover{background:#872d2d!important;color:#fff!important}

/* Мои мероприятия: широкая колонка даты и мобильные карточки. */
.tg-my-events table{table-layout:auto}
.tg-my-events th:nth-child(2),.tg-my-events td:nth-child(2){width:160px;min-width:160px}.tg-my-events th:nth-child(3),.tg-my-events td:nth-child(3){min-width:160px}
.tg-my-events-next-date{white-space:nowrap}
.tg-my-events-datetime{display:inline-flex;align-items:baseline;gap:7px;white-space:nowrap}
.tg-my-events-date{font-weight:700;white-space:nowrap}
.tg-my-events-time{display:inline-block;margin-left:0;font-size:13px;color:#6b7280;font-weight:400;white-space:nowrap}
.tg-my-events-recurrence{white-space:normal}.tg-my-events-all-dates{display:flex;flex-wrap:wrap;gap:3px 8px;font-size:13px;line-height:1.35}.tg-series-date{display:inline-block;white-space:nowrap}.tg-series-date.is-past{color:#b5b5b5}.tg-series-date.is-future{color:#111;font-weight:400}.tg-my-events-all-dates-empty{color:#aaa}
@media(max-width:680px){
  .tg-my-events{overflow:visible}
  .tg-my-events-table-wrap{overflow:visible}
  .tg-my-events table{display:block;width:100%;min-width:0!important;border:0}
  .tg-my-events thead{display:none}
  .tg-my-events tbody{display:block;width:100%}
  .tg-my-events tr{display:block;width:100%;margin:0 0 14px;padding:12px 14px;border:1px solid #e7d8c2;border-radius:14px;box-sizing:border-box;background:#fff;box-shadow:0 6px 18px rgba(80,54,26,.05)}
  .tg-my-events td{display:grid;grid-template-columns:minmax(96px,34%) minmax(0,1fr);gap:8px;width:100%!important;min-width:0!important;padding:7px 0!important;border:0!important;box-sizing:border-box;white-space:normal!important;align-items:start}
  .tg-my-events td+td{border-top:1px solid #eeeeee!important}
  .tg-my-events td::before{content:attr(data-label);font-weight:700;color:#555;line-height:1.35}
  .tg-my-events td:first-child{padding-top:0!important}
  .tg-my-events td:last-child{padding-bottom:0!important}
  .tg-my-events-title{overflow-wrap:anywhere}
  .tg-my-events-next-date{white-space:normal!important}
  .tg-my-events-datetime{grid-column:2;display:inline-flex;align-items:baseline;gap:7px;white-space:nowrap!important}
  .tg-my-events-date{white-space:nowrap}
  .tg-my-events-time{margin-left:0;font-size:12px;white-space:nowrap}
  .tg-my-events-recurrence{grid-column:2;margin-top:4px;font-size:12px}.tg-my-events-all-dates-cell .tg-my-events-all-dates{grid-column:2}.tg-my-events-all-dates{font-size:12px;gap:3px 7px}
  .tg-my-events-actions{white-space:normal!important}
  .tg-my-events-action-links{grid-column:2;display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
}

/* 1.2.17 — компактная таблица «Мои мероприятия» и поиск внутри фильтров */
@media(min-width:761px){
  .tg-my-events th:nth-child(3),.tg-my-events td:nth-child(3){width:150px;min-width:146px;max-width:154px}
  .tg-my-events th:nth-child(5),.tg-my-events td:nth-child(5){width:78px;min-width:72px;max-width:90px}
  .tg-my-events-all-dates{display:grid;grid-template-columns:repeat(3,max-content);gap:3px 6px;justify-content:start;font-size:10px;line-height:1.3}
  .tg-series-date.is-past{color:#b8b8b8;font-weight:400}
  .tg-series-date.is-future{color:#111;font-weight:400}
  .tg-my-events-action-links{display:flex;flex-direction:column;align-items:flex-start;gap:4px;white-space:normal}
  .tg-my-events-action-links>span{display:none}
}
@media(max-width:760px){
  .tg-my-events-next-date{row-gap:2px!important}
  .tg-my-events-next-date .tg-my-events-datetime{grid-column:2;grid-row:1;white-space:nowrap!important}
  .tg-my-events-next-date .tg-my-events-recurrence{grid-column:2;grid-row:2;margin-top:0!important;padding-top:0!important;line-height:1.22}
  .tg-my-events-action-links{display:inline-flex!important;flex-direction:row!important;align-items:center!important;gap:9px!important;white-space:nowrap!important}.tg-my-events-action-links a{padding:3px 0!important}
  .tg-my-events-action-links>span{display:inline!important}
}

/* Поисковые выпадающие списки фильтра каталога */
.tg-searchable-select{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.tg-combobox{position:relative;width:100%;min-width:0}
.tg-combobox-input{width:100%!important;height:42px!important;box-sizing:border-box!important;padding:8px 36px 8px 11px!important;border:1px solid #e0d2bf!important;border-radius:10px!important;background:#fff!important;color:#333!important;font:inherit!important}.tg-events-filter .tg-combobox-input{height:34px!important;padding:4px 32px 4px 9px!important;border-radius:8px!important;font-size:13px!important}.tg-events-filter .tg-combobox-toggle{height:32px;line-height:32px}
.tg-combobox-toggle{position:absolute;right:1px;top:1px;width:34px;height:40px;border:0;background:transparent;color:#666;cursor:pointer;font-size:12px;line-height:40px;text-align:center}
.tg-combobox-list{position:absolute;z-index:1000;left:0;right:0;top:calc(100% + 4px);max-height:240px;overflow:auto;margin:0;padding:5px 0;list-style:none;border:1px solid #e0d2bf;border-radius:10px;background:#fff;box-shadow:0 10px 24px rgba(80,54,26,.10)}
.tg-combobox-list[hidden]{display:none!important}
.tg-combobox-option{padding:7px 10px;cursor:pointer;line-height:1.25;color:#333;background:#fff}
.tg-combobox-option:hover,.tg-combobox-option.is-active{background:#f4ead8;color:#17482d}
.tg-combobox-empty{padding:8px 10px;color:#888;font-size:13px}
.tg-combobox-more{padding:6px 10px;color:#777;font-size:12px;line-height:1.3;background:#fafafa;border-top:1px solid #eee}
.tg-combobox-search-only .tg-combobox-input{padding-right:9px!important}
.tg-events-filter .tg-combobox-option,.tg-events-filter .tg-combobox-empty{font-size:13px!important}

/* Главное изображение на публичной странице мероприятия: большая сторона до 400 px, по центру. */
body.single-event .post-thumbnail,body.single-event figure.post-thumbnail,body.single-event .entry-thumbnail{width:100%!important;max-width:none!important;margin:12px auto 24px!important;text-align:center!important}
body.single-event img.tg-event-single-image,body.single-event img.wp-post-image{display:block!important;width:auto!important;height:auto!important;max-width:min(100%,400px)!important;max-height:400px!important;margin:12px auto 24px!important;object-fit:contain!important}

/* 1.2.24 — форма мероприятия */
.tg-event-form select,.tg-grid select,.tg-combobox-input,.tg-combobox-option{font-weight:400!important}
.tg-event-form .tg-combobox-input,.tg-grid .tg-combobox-input{color:#333!important}
.tg-field-help{display:block;margin-top:5px;color:#777;font-size:12px;line-height:1.35;font-weight:400}
.tg-optional{font-weight:400;color:#777}
.tg-event-image-preview{margin:0 0 16px;min-height:0}
.tg-event-image-preview:empty{display:none}
.tg-event-image-preview img{display:block;max-width:260px;max-height:260px;width:auto;height:auto;border-radius:10px;border:1px solid #e5e5e5}
.tg-button-view{background:#f3f7f4!important;color:#1f5b3a!important;border:1px solid #b9cec0!important}
.tg-button-view:hover{background:#e9f2ec!important;color:#17482d!important}

/* 1.2.25 — компактнее таблица и более понятный редактор описания. */
.tg-my-events-action-links a{display:inline-block;font-size:12px;line-height:1.25;padding:4px 0}
.tg-description-field{display:block;margin:0 0 18px;position:relative}
.tg-description-heading{display:flex;align-items:center;gap:10px;min-height:30px;font-weight:700;color:#544d46}
#wp-tg_front_content-wrap .wp-editor-tools>.tg-description-heading{float:left;min-height:28px;margin:0 8px 0 0}
.tg-description-image-button{display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:3px 10px;border:1px solid #d5c4ad;border-radius:7px;background:#fff;color:#1f5b3a;cursor:pointer;font-size:12px;font-weight:600}
.tg-description-image-button:hover{border-color:#0a7257;background:#f7fbf8}
.tg-description-field>.tg-field-help{margin-top:7px}
@media(max-width:760px){#wp-tg_front_content-wrap .wp-editor-tools>.tg-description-heading{float:none;margin:0 0 5px;flex-wrap:wrap}.tg-description-heading{flex-wrap:wrap}}

.tg-description-upload-status{display:block;min-height:18px;margin:6px 0 0;font-size:12px;color:#2f6f3e}.tg-description-upload-status.is-error{color:#a43838}


/* 1.2.27 — описание: быстрый локальный предпросмотр и полноэкранный режим. */
.tg-description-image-uploading{opacity:.82;filter:saturate(.9)}
.tg-description-fullscreen{display:inline-flex!important;align-items:center;justify-content:center;min-width:34px;height:28px!important;padding:3px 9px!important;color:#50575e!important;font-size:18px!important;line-height:1!important;text-decoration:none!important;cursor:pointer}
.tg-description-fullscreen:hover,.tg-description-fullscreen.is-active{color:#0a7257!important;background:#f4faf7!important;border-color:#0a7257!important}
html.tg-description-fullscreen-open,body.tg-description-fullscreen-open{overflow:hidden!important}
.tg-description-field.is-fullscreen{position:fixed!important;inset:0!important;z-index:100000!important;margin:0!important;padding:16px!important;background:#fff!important;box-sizing:border-box!important;overflow:auto!important}
.tg-description-field.is-fullscreen #wp-tg_front_content-wrap{height:calc(100vh - 38px)!important;display:flex!important;flex-direction:column!important}
.tg-description-field.is-fullscreen #wp-tg_front_content-editor-container{flex:1 1 auto!important;display:flex!important;min-height:0!important}
.tg-description-field.is-fullscreen .mce-tinymce,.tg-description-field.is-fullscreen .mce-container-body,.tg-description-field.is-fullscreen .mce-edit-area{height:100%!important;box-sizing:border-box!important}
.tg-description-field.is-fullscreen iframe{height:calc(100vh - 155px)!important;min-height:420px!important}
.tg-description-field.is-fullscreen textarea.wp-editor-area{height:calc(100vh - 120px)!important;min-height:420px!important}
@media(max-width:760px){.tg-description-field.is-fullscreen{padding:8px!important}.tg-description-field.is-fullscreen iframe{height:calc(100vh - 145px)!important;min-height:300px!important}.tg-description-field.is-fullscreen textarea.wp-editor-area{height:calc(100vh - 110px)!important;min-height:300px!important}}


/* Единая высота вкладок редактора описания */
.tg-event-form .wp-editor-tabs .wp-switch-editor{
    height:30px!important;
    min-height:30px!important;
    line-height:24px!important;
    padding:3px 10px!important;
    box-sizing:border-box!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
}
.tg-event-form .wp-editor-tabs .tg-description-fullscreen{
    height:30px!important;
    min-height:30px!important;
    line-height:24px!important;
}

.tg-events-filter select:disabled,.tg-events-filter .tg-combobox-input:disabled,.tg-events-filter .tg-combobox-toggle:disabled{background:#f6f6f6!important;color:#9a9a9a!important;cursor:not-allowed!important}

/* Доступ ведущего к публикации мероприятий */
.tg-my-events-toolbar-main{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
/* Кнопки рядом имеют одинаковую высоту и типографику. */
.tg-my-events-add,.tg-my-events-instructions,.tg-my-events-access{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 15px;border-radius:7px;font-size:15px;font-weight:600;line-height:20px;text-decoration:none!important;box-sizing:border-box}
.tg-my-events-add{background:#0a7257;color:#fff!important}
.tg-my-events-instructions{background:#fff;border:1px solid #b9cec0;color:#1f5b3a!important}
.tg-my-events-instructions:hover{background:#f3f7f4;border-color:#8fb29a;color:#17482d!important}
.tg-my-events-add:hover{background:#04513f;color:#fff!important}
/* Спокойный терракотовый акцент для оплаты: заметно, но не режет глаз. */
.tg-my-events-access{background:#fff;border:1px solid #b45449;color:#a84d43!important}
.tg-my-events-access:hover{background:#fff4f2;color:#934239!important;border-color:#a84d43}
.tg-my-events-access.is-expired{background:#b45449;border-color:#b45449;color:#fff!important}
.tg-my-events-access.is-expired:hover{background:#9e473e;border-color:#9e473e;color:#fff!important}
.tg-my-events-access-note{width:100%;margin-top:-5px;font-size:13px;line-height:1.35;color:#56615d}
.tg-my-events-access-note.is-expired{color:#a84d43;font-weight:600}
.tg-access-warning{margin:0 0 14px;padding:11px 13px;border:1px solid #e4c27a;border-radius:8px;background:#fff9e9;font-size:13px;line-height:1.45}
.tg-access-warning-link{font-weight:600;white-space:nowrap}
.tg-button-disabled{opacity:.48!important;cursor:not-allowed!important;pointer-events:none!important}
@media(max-width:600px){.tg-my-events-toolbar-main{width:100%}.tg-my-events-add,.tg-my-events-instructions,.tg-my-events-access{justify-content:center}}

/* 1.2.39 — онлайн-бронирование */
.tg-booking-settings{margin-top:20px!important}
.tg-booking-toggle-label{display:flex!important;align-items:center;gap:8px;margin:0!important;font-weight:700!important;color:#544d46}
.tg-booking-toggle-label input{width:auto!important;margin:0}
.tg-booking-settings-fields{margin-top:14px}
.tg-booking-settings-fields[hidden]{display:none!important}
.tg-booking-settings-fields>label{display:block;margin:0 0 14px;font-weight:700;color:#544d46}
.tg-booking-settings-fields .tg-field-help{font-weight:400}

.tg-booking-box{margin:30px 0 10px;padding:20px 22px;border:1px solid #e7d8c2;border-radius:16px;background:#fff;box-shadow:0 7px 20px rgba(80,54,26,.055)}
.tg-booking-box h2{margin:0 0 16px!important;font-size:24px!important;line-height:1.25!important;color:#1f5b3a}
.tg-booking-form>label{display:block;margin:0 0 14px;font-weight:700;color:#544d46}
.tg-booking-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px;margin-bottom:14px}
.tg-booking-grid label{display:block;font-weight:700;color:#544d46}
.tg-booking-form input[type=text],.tg-booking-form input[type=tel],.tg-booking-form input[type=email],.tg-booking-form input[type=number],.tg-booking-form select,.tg-booking-form textarea{box-sizing:border-box;width:100%;margin-top:4px;padding:9px 10px;border:1px solid #e0d2bf;border-radius:9px;background:#fff;color:#333;font:inherit}
.tg-booking-selected-date{margin:0 0 14px;padding:10px 12px;border-radius:9px;background:#f7f3ec;color:#4e4a44}
.tg-booking-selected-date span{color:#6c746f;font-size:13px}
.tg-booking-note{margin:2px 0 12px;color:#6a625a;font-size:13px;line-height:1.4}
.tg-booking-consent{display:flex!important;align-items:flex-start;gap:8px;font-size:13px!important;font-weight:400!important;line-height:1.4}
.tg-booking-consent input{flex:0 0 auto;margin-top:3px}
.tg-booking-consent a{color:#1f5b3a!important}
.tg-booking-submit{margin-top:2px}
.tg-booking-message{margin:0 0 14px;padding:10px 12px;border-radius:9px;font-size:14px}
.tg-booking-message.is-success{background:#edf8f1;border:1px solid #8fc6a0;color:#245f38}
.tg-booking-message.is-error{background:#fff2f0;border:1px solid #dfa39d;color:#8c3d35}
.tg-booking-message.is-warning{background:#fff8e8;border:1px solid #e6c77a;color:#806114}
.tg-booking-closed{margin:0;color:#665e56}
.tg-booking-hp{position:absolute!important;left:-99999px!important;width:1px!important;height:1px!important;overflow:hidden!important}

.tg-my-events-booking-summary{margin-top:5px;font-size:11px;line-height:1.35;color:#6b7280}
.tg-my-events-booking-summary a{color:#1f5b3a!important;text-decoration:underline!important;text-decoration-style:dotted!important;font-weight:600}

.tg-bookings-manage{max-width:1100px}
.tg-bookings-manage h2{margin:0 0 8px!important}
.tg-bookings-summary{margin:0 0 14px;color:#555}
.tg-bookings-filter{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin:0 0 16px;padding:12px;border:1px solid #e7d8c2;border-radius:12px;background:#fff}
.tg-bookings-filter label{display:block;font-size:13px;font-weight:600;color:#555}
.tg-bookings-filter select{display:block;min-width:260px;height:36px;margin-top:3px;padding:5px 9px;border:1px solid #e0d2bf;border-radius:8px;background:#fff}
.tg-bookings-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
.tg-bookings-table{width:100%;min-width:0;table-layout:fixed;border-collapse:collapse}
.tg-bookings-table th,.tg-bookings-table td{padding:7px 8px;border-bottom:1px solid #e5e5e5;text-align:left;vertical-align:top;overflow-wrap:anywhere}
.tg-bookings-table th{background:#fafafa;font-size:12px}
.tg-bookings-table td{font-size:12px;line-height:1.32}
.tg-bookings-table small{color:#888}
.tg-bookings-delete{color:#a43838!important}

@media(max-width:700px){
  .tg-booking-box{padding:16px}
  .tg-booking-grid{grid-template-columns:1fr}
  .tg-bookings-table-wrap{overflow:visible}
  .tg-bookings-table{display:block;min-width:0}
  .tg-bookings-table thead{display:none}
  .tg-bookings-table tbody,.tg-bookings-table tr{display:block}
  .tg-bookings-table tr{margin:0 0 12px;padding:11px 12px;border:1px solid #e7d8c2;border-radius:12px;background:#fff}
  .tg-bookings-table td{display:grid;grid-template-columns:minmax(105px,34%) minmax(0,1fr);gap:8px;width:100%;padding:6px 0;border:0}
  .tg-bookings-table td+td{border-top:1px solid #f0f0f0}
  .tg-bookings-table td::before{content:attr(data-label);font-weight:700;color:#555}
  .tg-bookings-filter select{min-width:0;width:100%}
}
.tg-event-form .tg-booking-settings-fields input[type=email],.tg-event-form .tg-booking-settings-fields input[type=datetime-local]{box-sizing:border-box;width:100%;padding:10px 11px;border:1px solid #e0d2bf;border-radius:10px;background:#fff;color:#333}
.tg-booking-cutoff-relative{display:flex;gap:8px;align-items:center;margin-top:6px}.tg-event-form .tg-booking-cutoff-relative input[type=number]{box-sizing:border-box;width:110px;padding:10px 11px;border:1px solid #e0d2bf;border-radius:10px;background:#fff;color:#333}.tg-event-form .tg-booking-cutoff-relative select{box-sizing:border-box;min-width:130px;padding:10px 11px;border:1px solid #e0d2bf;border-radius:10px;background:#fff;color:#333}


/* 1.2.40 — инструкция ведущего */
.tg-event-instructions{max-width:900px;margin:0 auto;padding:4px 0 24px;color:#3f3b37;line-height:1.6}
.tg-event-instructions h2{margin:0 0 18px;color:#1f5b3a}
.tg-event-instructions h3{margin:24px 0 7px;color:#1f5b3a;font-size:20px}
.tg-event-instructions p{margin:0 0 10px}


@media(min-width:761px){
  .tg-bookings-table th:nth-child(1),.tg-bookings-table td:nth-child(1){width:15%}
  .tg-bookings-table th:nth-child(2),.tg-bookings-table td:nth-child(2){width:24%}
  .tg-bookings-table th:nth-child(3),.tg-bookings-table td:nth-child(3){width:18%}
  .tg-bookings-table th:nth-child(4),.tg-bookings-table td:nth-child(4){width:20%}
  .tg-bookings-table th:nth-child(5),.tg-bookings-table td:nth-child(5){width:72px;white-space:nowrap}
  .tg-bookings-table td a{font-size:12px}
  .tg-bookings-event-date{white-space:nowrap}
}
.tg-excerpt-help{margin:3px 0 4px!important}
.tg-excerpt-counter{display:block;margin:0 1px 4px;text-align:right;color:#777;font-size:12px;font-weight:500;line-height:1.2}
.tg-excerpt-counter.is-over{color:#b45449;font-weight:700}
.tg-excerpt-field textarea{margin-top:0!important}
.tg-instruction-toolbar-list{margin:8px 0 16px;padding-left:22px}
.tg-instruction-toolbar-list li{margin:0 0 5px;line-height:1.45}

/* 1.2.43 — адаптивные таблицы, фильтр и изображение одиночного мероприятия. */
body.single-event .post-thumbnail,
body.single-event figure.post-thumbnail,
body.single-event .entry-thumbnail{
    display:block!important;
    width:100%!important;
    max-width:none!important;
    margin:12px auto 24px!important;
    text-align:center!important;
}
body.single-event img.tg-event-single-image,
body.single-event .post-thumbnail img.wp-post-image,
body.single-event figure.post-thumbnail img.wp-post-image,
body.single-event .entry-thumbnail img.wp-post-image{
    display:block!important;
    margin:12px auto 24px!important;
    object-fit:contain!important;
}

/* Фильтр должен подстраиваться под ширину самого блока, а не только окна браузера. */
.tg-events-filter{container-type:inline-size;container-name:tg-events-filter-box;max-width:100%;overflow:visible}
.tg-filter-row-top{grid-template-columns:minmax(0,1.65fr) minmax(104px,126px) minmax(0,1fr)}
.tg-filter-row-bottom{grid-template-columns:minmax(0,.95fr) minmax(0,.78fr) minmax(0,1fr) max-content}
.tg-filter-actions{min-width:0;max-width:100%}
.tg-filter-submit,.tg-filter-reset{max-width:100%}
@container tg-events-filter-box (max-width:720px){
    .tg-filter-row-top{grid-template-columns:minmax(0,1fr) minmax(112px,135px)}
    .tg-filter-field-host{grid-column:1/-1}
    .tg-filter-row-bottom{grid-template-columns:repeat(2,minmax(0,1fr))}
    .tg-filter-field-type{grid-column:1/-1}
    .tg-filter-actions{grid-column:1/-1;justify-content:flex-start;flex-wrap:wrap}
}
@container tg-events-filter-box (max-width:460px){
    .tg-filter-row-top,.tg-filter-row-bottom{grid-template-columns:minmax(0,1fr)}
    .tg-filter-field-host,.tg-filter-field-type,.tg-filter-actions{grid-column:auto}
    .tg-filter-field-date{max-width:none}
    .tg-filter-actions{width:100%}
}

/* «Мои мероприятия»: пропорциональные колонки на широком блоке и карточки при сужении контейнера. */
.tg-my-events{container-type:inline-size;container-name:tg-my-events-box}
.tg-my-events table{table-layout:fixed!important;width:100%}
@container tg-my-events-box (min-width:821px){
    .tg-my-events th:nth-child(1),.tg-my-events td:nth-child(1){width:29%!important;min-width:0!important;max-width:none!important}
    .tg-my-events th:nth-child(2),.tg-my-events td:nth-child(2){width:20%!important;min-width:0!important;max-width:none!important}
    .tg-my-events th:nth-child(3),.tg-my-events td:nth-child(3){width:27%!important;min-width:0!important;max-width:none!important}
    .tg-my-events th:nth-child(4),.tg-my-events td:nth-child(4){width:10%!important;min-width:0!important;max-width:none!important}
    .tg-my-events th:nth-child(5),.tg-my-events td:nth-child(5){width:14%!important;min-width:0!important;max-width:none!important}
    .tg-my-events-title{overflow-wrap:anywhere}
    .tg-my-events-all-dates{grid-template-columns:repeat(3,minmax(0,max-content))}
}
@container tg-my-events-box (max-width:820px){
    .tg-my-events-table-wrap{overflow:visible}
    .tg-my-events table{display:block;width:100%;min-width:0!important;border:0}
    .tg-my-events thead{display:none}
    .tg-my-events tbody{display:block;width:100%}
    .tg-my-events tr{display:block;width:100%;margin:0 0 14px;padding:12px 14px;border:1px solid #e7d8c2;border-radius:14px;box-sizing:border-box;background:#fff;box-shadow:0 6px 18px rgba(80,54,26,.05)}
    .tg-my-events td{display:grid;grid-template-columns:minmax(104px,31%) minmax(0,1fr);gap:8px;width:100%!important;min-width:0!important;padding:7px 0!important;border:0!important;box-sizing:border-box;white-space:normal!important;align-items:start}
    .tg-my-events td+td{border-top:1px solid #eee!important}
    .tg-my-events td::before{content:attr(data-label);font-weight:700;color:#555;line-height:1.35}
    .tg-my-events-title,.tg-my-events-booking-summary{grid-column:2;overflow-wrap:anywhere}
    .tg-my-events-next-date{white-space:normal!important}
    .tg-my-events-datetime,.tg-my-events-recurrence,.tg-my-events-all-dates-cell .tg-my-events-all-dates,.tg-my-events-action-links{grid-column:2}
    .tg-my-events-datetime{display:flex;flex-wrap:wrap;gap:4px 7px;white-space:normal!important}
    .tg-my-events-all-dates{display:flex!important;flex-wrap:wrap;gap:3px 7px!important}
    .tg-my-events-action-links{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;gap:5px 9px!important}
    .tg-my-events-action-links>span{display:none!important}
}

/* Бронирования: компактная и адаптивная таблица. */
.tg-bookings-manage{container-type:inline-size;container-name:tg-bookings-box;max-width:100%}
.tg-bookings-table{table-layout:fixed;width:100%}
.tg-bookings-event-date{display:flex;flex-wrap:wrap;gap:1px 6px;white-space:normal!important;line-height:1.25}
.tg-bookings-event-day,.tg-bookings-event-time{display:inline-block;white-space:nowrap}
.tg-bookings-seats{display:block;margin-top:3px}
@container tg-bookings-box (min-width:781px){
    .tg-bookings-table th:nth-child(1),.tg-bookings-table td:nth-child(1){width:20%!important}
    .tg-bookings-table th:nth-child(2),.tg-bookings-table td:nth-child(2){width:34%!important}
    .tg-bookings-table th:nth-child(3),.tg-bookings-table td:nth-child(3){width:24%!important}
    .tg-bookings-table th:nth-child(4),.tg-bookings-table td:nth-child(4){width:10%!important}
    .tg-bookings-table th:nth-child(5),.tg-bookings-table td:nth-child(5){width:12%!important;white-space:normal!important}
}
@container tg-bookings-box (max-width:780px){
    .tg-bookings-table-wrap{overflow:visible}
    .tg-bookings-table{display:block;min-width:0!important}
    .tg-bookings-table thead{display:none}
    .tg-bookings-table tbody,.tg-bookings-table tr{display:block}
    .tg-bookings-table tr{margin:0 0 12px;padding:11px 12px;border:1px solid #e7d8c2;border-radius:12px;background:#fff}
    .tg-bookings-table td{display:grid;grid-template-columns:minmax(110px,32%) minmax(0,1fr);gap:8px;width:100%!important;padding:6px 0!important;border:0!important}
    .tg-bookings-table td+td{border-top:1px solid #f0f0f0!important}
    .tg-bookings-table td::before{content:attr(data-label);font-weight:700;color:#555}
    .tg-bookings-table td>*{grid-column:2}
    .tg-bookings-event-date{grid-column:2;display:flex;flex-wrap:wrap}
    .tg-bookings-seats{grid-column:2}
}

.tg-instruction-back{margin:0 0 14px!important}
.tg-instruction-back a{color:#1f5b3a!important;font-weight:700;text-decoration:none!important}
.tg-instruction-back a:hover{text-decoration:underline!important}
.tg-instruction-important{padding:10px 12px;border-left:3px solid #d99a43;background:#fff8ed}


/* 1.2.44 — точный размер изображения, более поздний переход таблиц в карточки и новый фильтр. */
.tg-event-main-image{
    display:flex!important;
    justify-content:center!important;
    align-items:center!important;
    width:100%!important;
    margin:12px 0 26px!important;
    text-align:center!important;
}
.tg-event-main-image img.tg-event-single-image{
    display:block!important;
    flex:0 0 auto!important;
    margin:0 auto!important;
    max-width:100%!important;
    max-height:none!important;
    object-fit:contain!important;
}
.tg-remove-event-image{display:flex!important;align-items:center;gap:7px;margin:-8px 0 18px!important;font-size:13px;font-weight:500!important;color:#6b625a!important}
.tg-remove-event-image input{width:auto!important;margin:0!important}

/* Каталог: ведущий и вид мероприятия всегда стоят рядом на одной строке, пока ширина это позволяет. */
.tg-events-filter{container-type:inline-size;container-name:tg-events-filter-box}
.tg-filter-row-top{grid-template-columns:minmax(190px,1.45fr) minmax(108px,124px) minmax(145px,.9fr) minmax(145px,.9fr)!important}
.tg-filter-row-bottom{grid-template-columns:minmax(145px,.95fr) minmax(135px,.85fr) max-content!important}
@container tg-events-filter-box (max-width:760px){
    .tg-filter-row-top{grid-template-columns:minmax(0,1fr) minmax(112px,132px)!important}
    .tg-filter-field-host{grid-column:1!important}
    .tg-filter-field-type{grid-column:2!important}
    .tg-filter-row-bottom{grid-template-columns:repeat(2,minmax(0,1fr))!important}
    .tg-filter-actions{grid-column:1/-1!important;justify-content:flex-start!important;flex-wrap:wrap!important}
}
@container tg-events-filter-box (max-width:520px){
    .tg-filter-row-top{grid-template-columns:minmax(0,1fr) minmax(105px,124px)!important}
    .tg-filter-field-search{grid-column:1/-1!important}
    .tg-filter-field-date{grid-column:1/-1!important;max-width:140px!important}
    .tg-filter-field-host{grid-column:1!important}
    .tg-filter-field-type{grid-column:2!important}
    .tg-filter-row-bottom{grid-template-columns:repeat(2,minmax(0,1fr))!important}
    .tg-filter-actions{grid-column:1/-1!important;width:100%!important}
}
@container tg-events-filter-box (max-width:390px){
    .tg-filter-row-top,.tg-filter-row-bottom{grid-template-columns:minmax(0,1fr)!important}
    .tg-filter-field-search,.tg-filter-field-date,.tg-filter-field-host,.tg-filter-field-type,.tg-filter-actions{grid-column:auto!important;max-width:none!important}
}

/* «Мои мероприятия»: таблица сохраняется таблицей до действительно узкого блока. */
.tg-my-events table{table-layout:auto!important;width:100%!important;min-width:0!important}
.tg-my-events-all-dates{display:flex!important;flex-wrap:wrap!important;gap:3px 7px!important;align-items:flex-start!important}
@container tg-my-events-box (min-width:521px){
    .tg-my-events-table-wrap{overflow-x:auto!important}
    .tg-my-events table{display:table!important;min-width:520px!important}
    .tg-my-events thead{display:table-header-group!important}
    .tg-my-events tbody{display:table-row-group!important}
    .tg-my-events tr{display:table-row!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
    .tg-my-events th,.tg-my-events td{display:table-cell!important;grid-template-columns:none!important;width:auto!important;min-width:0!important;max-width:none!important;padding:8px 7px!important;border-bottom:1px solid #ddd!important;vertical-align:top!important;white-space:normal!important}
    .tg-my-events td::before{display:none!important;content:none!important}
    .tg-my-events th:nth-child(1),.tg-my-events td:nth-child(1){width:auto!important}
    .tg-my-events th:nth-child(2),.tg-my-events td:nth-child(2){width:145px!important;min-width:128px!important}
    .tg-my-events th:nth-child(3),.tg-my-events td:nth-child(3){width:auto!important;min-width:115px!important}
    .tg-my-events th:nth-child(4),.tg-my-events td:nth-child(4){width:82px!important;min-width:72px!important}
    .tg-my-events th:nth-child(5),.tg-my-events td:nth-child(5){width:94px!important;min-width:94px!important}
    .tg-my-events-title,.tg-my-events-booking-summary,.tg-my-events-datetime,.tg-my-events-recurrence,.tg-my-events-all-dates-cell .tg-my-events-all-dates,.tg-my-events-action-links{grid-column:auto!important}
    .tg-my-events-action-links{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:7px!important;white-space:normal!important}
    .tg-my-events-action-links>span{display:none!important}
}
@container tg-my-events-box (max-width:520px){
    .tg-my-events{overflow:visible!important}
    .tg-my-events-table-wrap{overflow:visible!important}
    .tg-my-events table{display:block!important;width:100%!important;min-width:0!important;border:0!important}
    .tg-my-events thead{display:none!important}
    .tg-my-events tbody{display:block!important;width:100%!important}
    .tg-my-events tr{display:block!important;width:100%!important;margin:0 0 14px!important;padding:12px 14px!important;border:1px solid #e7d8c2!important;border-radius:14px!important;box-sizing:border-box!important;background:#fff!important;box-shadow:0 6px 18px rgba(80,54,26,.05)!important}
    .tg-my-events td{display:grid!important;grid-template-columns:minmax(96px,31%) minmax(0,1fr)!important;gap:8px!important;width:100%!important;min-width:0!important;padding:7px 0!important;border:0!important;box-sizing:border-box!important;white-space:normal!important;align-items:start!important}
    .tg-my-events td+td{border-top:1px solid #eee!important}
    .tg-my-events td::before{display:block!important;content:attr(data-label)!important;font-weight:700!important;color:#555!important;line-height:1.35!important}
    .tg-my-events-title,.tg-my-events-booking-summary,.tg-my-events-datetime,.tg-my-events-recurrence,.tg-my-events-all-dates-cell .tg-my-events-all-dates,.tg-my-events-action-links{grid-column:2!important}
    .tg-my-events-all-dates{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;gap:3px 7px!important}
    .tg-my-events-action-links{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;gap:5px 9px!important}
    .tg-my-events-action-links>span{display:none!important}
}

/* Бронирования: компактные заданные колонки, карточки только на узком мобильном блоке. */
.tg-bookings-table{table-layout:auto!important;width:100%!important;min-width:0!important}
.tg-bookings-event-date{display:flex!important;flex-wrap:wrap!important;gap:2px 6px!important;white-space:normal!important}
.tg-bookings-event-day,.tg-bookings-event-time{white-space:nowrap!important}
@container tg-bookings-box (min-width:561px){
    .tg-bookings-table-wrap{overflow-x:auto!important}
    .tg-bookings-table{display:table!important;min-width:560px!important}
    .tg-bookings-table thead{display:table-header-group!important}
    .tg-bookings-table tbody{display:table-row-group!important}
    .tg-bookings-table tr{display:table-row!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important}
    .tg-bookings-table th,.tg-bookings-table td{display:table-cell!important;grid-template-columns:none!important;width:auto!important;padding:7px 7px!important;border-bottom:1px solid #e5e5e5!important;vertical-align:top!important;white-space:normal!important}
    .tg-bookings-table td::before{display:none!important;content:none!important}
    .tg-bookings-table td>*{grid-column:auto!important}
    .tg-bookings-table th:nth-child(1),.tg-bookings-table td:nth-child(1){width:auto!important;min-width:105px!important}
    .tg-bookings-table th:nth-child(2),.tg-bookings-table td:nth-child(2){width:185px!important;min-width:165px!important;overflow-wrap:anywhere!important}
    .tg-bookings-table th:nth-child(3),.tg-bookings-table td:nth-child(3){width:128px!important;min-width:116px!important}
    .tg-bookings-table th:nth-child(4),.tg-bookings-table td:nth-child(4){width:92px!important;min-width:88px!important;max-width:110px!important;overflow-wrap:anywhere!important}
    .tg-bookings-table th:nth-child(5),.tg-bookings-table td:nth-child(5){width:72px!important;min-width:72px!important;white-space:nowrap!important}
}
@container tg-bookings-box (max-width:560px){
    .tg-bookings-table-wrap{overflow:visible!important}
    .tg-bookings-table{display:block!important;min-width:0!important}
    .tg-bookings-table thead{display:none!important}
    .tg-bookings-table tbody,.tg-bookings-table tr{display:block!important}
    .tg-bookings-table tr{margin:0 0 12px!important;padding:11px 12px!important;border:1px solid #e7d8c2!important;border-radius:12px!important;background:#fff!important}
    .tg-bookings-table td{display:grid!important;grid-template-columns:minmax(105px,32%) minmax(0,1fr)!important;gap:8px!important;width:100%!important;padding:6px 0!important;border:0!important;white-space:normal!important}
    .tg-bookings-table td+td{border-top:1px solid #f0f0f0!important}
    .tg-bookings-table td::before{display:block!important;content:attr(data-label)!important;font-weight:700!important;color:#555!important}
    .tg-bookings-table td>*{grid-column:2!important}
    .tg-bookings-event-date,.tg-bookings-seats{grid-column:2!important}
}


/* 1.2.45 — финальные правки одиночного изображения, фильтра и таблицы бронирований. */

/* Тема не должна показывать свою маленькую featured image на одиночном event. */
body.single-event article.type-event > .post-thumbnail,
body.single-event article.type-event > .entry-thumbnail,
body.single-event article.type-event > .featured-image,
body.single-event article.type-event > .featured-media,
body.single-event article.type-event > .wp-block-post-featured-image,
body.single-event article.type-event > a.post-thumbnail,
body.single-event article.type-event > figure.post-thumbnail,
body.single-event article.type-event > img.wp-post-image{
    display:none!important;
}
body.single-event .tg-event-main-image{
    display:flex!important;
    width:100%!important;
    justify-content:center!important;
    align-items:center!important;
    margin:12px auto 26px!important;
}
body.single-event .tg-event-main-image img.tg-event-single-image{
    display:block!important;
    margin:0 auto!important;
    max-width:600px!important;
    max-height:600px!important;
    width:auto!important;
    height:auto!important;
    object-fit:contain!important;
}

/* Фильтр: 1) поиск + дата, 2) ведущий + вид одинаковой ширины, 3) география + кнопки. */
.tg-filter-row-search-date{
    grid-template-columns:minmax(0,1fr) minmax(112px,140px)!important;
}
.tg-filter-row-host-type{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
.tg-filter-row-host-type .tg-filter-field-host,
.tg-filter-row-host-type .tg-filter-field-type{
    width:100%!important;
    min-width:0!important;
}
.tg-filter-row-host-type .tg-select-ui,
.tg-filter-row-host-type select{
    width:100%!important;
    min-width:0!important;
}
@container tg-events-filter-box (max-width:520px){
    .tg-filter-row-search-date{
        grid-template-columns:minmax(0,1fr) minmax(105px,125px)!important;
    }
    .tg-filter-row-host-type{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
    }
}
@container tg-events-filter-box (max-width:390px){
    .tg-filter-row-search-date,
    .tg-filter-row-host-type{
        grid-template-columns:minmax(0,1fr)!important;
    }
}

/* Бронирования: компактные колонки с предсказуемой шириной. */
@container tg-bookings-box (min-width:561px){
    .tg-bookings-table{
        table-layout:auto!important;
        min-width:690px!important;
    }
    .tg-bookings-table th:nth-child(1),
    .tg-bookings-table td:nth-child(1){
        width:145px!important;
        min-width:110px!important;
        max-width:165px!important;
        overflow-wrap:anywhere!important;
        word-break:normal!important;
    }
    .tg-bookings-table th:nth-child(2),
    .tg-bookings-table td:nth-child(2){
        width:205px!important;
        min-width:185px!important;
        max-width:220px!important;
        overflow-wrap:anywhere!important;
    }
    .tg-bookings-table th:nth-child(3),
    .tg-bookings-table td:nth-child(3){
        width:132px!important;
        min-width:122px!important;
        max-width:142px!important;
    }
    .tg-bookings-table th:nth-child(4){
        width:105px!important;
        min-width:105px!important;
        max-width:105px!important;
        white-space:nowrap!important;
    }
    .tg-bookings-table td:nth-child(4){
        width:105px!important;
        min-width:105px!important;
        max-width:105px!important;
        white-space:normal!important;
        overflow-wrap:anywhere!important;
    }
    .tg-bookings-table th:nth-child(5),
    .tg-bookings-table td:nth-child(5){
        width:72px!important;
        min-width:72px!important;
        max-width:72px!important;
        white-space:nowrap!important;
    }
}


/* 1.2.46 — компактнее одиночное мероприятие, точная сетка фильтра и таблица бронирований без горизонтальной прокрутки. */

/* Одиночное мероприятие: убираем лишние вертикальные пустоты вокруг изображения. */
body.single-event .entry-excerpt{
    margin-top:0!important;
    padding-top:0!important;
}
body.single-event .tg-event-main-image{
    margin:4px auto 12px!important;
    padding:0!important;
    line-height:0!important;
}
body.single-event .tg-event-main-image img.tg-event-single-image{
    margin:0 auto!important;
}
body.single-event .tg-event-single-summary{
    margin-top:0!important;
}

/* Фильтр: поиск занимает всё свободное место, дата — только необходимую ширину. */
.tg-filter-row-search-date{
    grid-template-columns:minmax(0,1fr) 132px!important;
    align-items:end!important;
}
.tg-filter-row-search-date .tg-filter-field-date{
    width:132px!important;
    min-width:132px!important;
    max-width:132px!important;
}
.tg-filter-row-host-type{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
.tg-filter-row-host-type .tg-filter-field-host,
.tg-filter-row-host-type .tg-filter-field-type{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
}
.tg-events-filter .tg-filter-field>label{
    margin-top:5px!important;
    margin-bottom:2px!important;
}
@container tg-events-filter-box (max-width:390px){
    .tg-filter-row-search-date{
        grid-template-columns:minmax(0,1fr) 124px!important;
    }
    .tg-filter-row-search-date .tg-filter-field-date{
        width:124px!important;
        min-width:124px!important;
        max-width:124px!important;
    }
    .tg-filter-row-host-type{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
    }
    .tg-filter-row-search-date .tg-filter-field-search,
    .tg-filter-row-search-date .tg-filter-field-date,
    .tg-filter-row-host-type .tg-filter-field-host,
    .tg-filter-row-host-type .tg-filter-field-type{
        grid-column:auto!important;
    }
}

/* Бронирования: на компьютере всегда укладываем таблицу в ширину блока. */
.tg-bookings-table-wrap{
    width:100%!important;
    max-width:100%!important;
    overflow-x:visible!important;
}
@container tg-bookings-box (min-width:461px){
    .tg-bookings-table{
        display:table!important;
        width:100%!important;
        min-width:0!important;
        max-width:100%!important;
        table-layout:fixed!important;
    }
    .tg-bookings-table thead{display:table-header-group!important}
    .tg-bookings-table tbody{display:table-row-group!important}
    .tg-bookings-table tr{
        display:table-row!important;
        margin:0!important;
        padding:0!important;
        border:0!important;
        border-radius:0!important;
        background:transparent!important;
    }
    .tg-bookings-table th,
    .tg-bookings-table td{
        display:table-cell!important;
        min-width:0!important;
        max-width:none!important;
        padding:7px 6px!important;
        border-bottom:1px solid #e5e5e5!important;
        vertical-align:top!important;
        white-space:normal!important;
        box-sizing:border-box!important;
    }
    .tg-bookings-table td::before{display:none!important;content:none!important}
    .tg-bookings-table td>*{grid-column:auto!important}

    /* Участник: ограниченная колонка; очень длинные имена переносятся. */
    .tg-bookings-table th:nth-child(1),
    .tg-bookings-table td:nth-child(1){
        width:20%!important;
        overflow-wrap:anywhere!important;
        word-break:normal!important;
        hyphens:auto;
    }
    /* Контакты: самая широкая служебная колонка — под обычный e-mail. */
    .tg-bookings-table th:nth-child(2),
    .tg-bookings-table td:nth-child(2){
        width:29%!important;
        overflow-wrap:anywhere!important;
        word-break:break-word!important;
    }
    .tg-bookings-table td:nth-child(2) a{
        display:block!important;
        max-width:100%!important;
        overflow-wrap:anywhere!important;
        word-break:break-word!important;
    }
    /* Дата + время: время при нехватке места переходит на следующую строку. */
    .tg-bookings-table th:nth-child(3),
    .tg-bookings-table td:nth-child(3){width:18%!important}
    .tg-bookings-event-date{
        display:flex!important;
        flex-wrap:wrap!important;
        gap:1px 6px!important;
        white-space:normal!important;
    }
    .tg-bookings-event-day,
    .tg-bookings-event-time{white-space:nowrap!important}

    /* «Комментарий» целиком в заголовке, сама колонка остаётся компактной. */
    .tg-bookings-table th:nth-child(4),
    .tg-bookings-table td:nth-child(4){
        width:19%!important;
        overflow-wrap:anywhere!important;
    }
    .tg-bookings-table th:nth-child(4){white-space:nowrap!important}

    .tg-bookings-table th:nth-child(5),
    .tg-bookings-table td:nth-child(5){
        width:14%!important;
        white-space:nowrap!important;
    }
}
@container tg-bookings-box (max-width:460px){
    .tg-bookings-table-wrap{overflow:visible!important}
}


/* 1.2.47 — точечная правка одиночного мероприятия и адаптивности фильтра. */

/* Тема добавляет на single-event вспомогательный вложенный article с таксономиями
 * и пустой entry-excerpt. Наш плагин выводит эти данные сам, поэтому эти блоки
 * не должны создавать пустое место между заголовком, изображением и описанием. */
body.single-event article[id^="post-"] > article[id^="post-"],
body.single-event .entry-taxonomies-wrapper,
body.single-event .entry-excerpt{
    display:none!important;
    margin:0!important;
    padding:0!important;
    min-height:0!important;
    height:0!important;
    border:0!important;
}
body.single-event .tg-event-main-image{
    margin:2px auto 10px!important;
    padding:0!important;
}
body.single-event .tg-event-main-image img.tg-event-single-image,
body.single-event .tg-event-single-image{
    margin:0 auto!important;
}
body.single-event .tg-event-single-summary{
    margin-top:0!important;
    padding-top:0!important;
}

/* Публичный фильтр.
 * Пока Регион и Город стоят рядом, Поиск и Дата тоже остаются рядом.
 * Поиск сжимается, а поле даты сохраняет компактную ширину. */
.tg-events-filter .tg-filter-row-search-date{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 126px!important;
    gap:8px!important;
    align-items:end!important;
}
.tg-events-filter .tg-filter-row-search-date .tg-filter-field-search{
    min-width:0!important;
    width:auto!important;
}
.tg-events-filter .tg-filter-row-search-date .tg-filter-field-date{
    width:126px!important;
    min-width:126px!important;
    max-width:126px!important;
}
.tg-events-filter .tg-filter-row-host-type{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
.tg-events-filter .tg-filter-row-bottom{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
.tg-events-filter .tg-filter-row-bottom .tg-filter-actions{
    grid-column:1/-1!important;
}
.tg-events-filter .tg-filter-field>label{
    margin-top:6px!important;
    margin-bottom:2px!important;
}

/* Один и тот же момент перестройки для пар Поиск+Дата и Регион+Город. */
@container tg-events-filter-box (max-width:520px){
    .tg-events-filter .tg-filter-row-search-date,
    .tg-events-filter .tg-filter-row-bottom{
        grid-template-columns:minmax(0,1fr)!important;
    }
    .tg-events-filter .tg-filter-row-search-date .tg-filter-field-date{
        width:100%!important;
        min-width:0!important;
        max-width:none!important;
    }
    .tg-events-filter .tg-filter-row-bottom .tg-filter-actions{
        grid-column:auto!important;
    }
}
@container tg-events-filter-box (max-width:420px){
    .tg-events-filter .tg-filter-row-host-type{
        grid-template-columns:minmax(0,1fr)!important;
    }
}


/* 1.2.48 — изображение 600 px и единая адаптивная сетка фильтра. */
body.single-event .tg-event-main-image img.tg-event-single-image,
body.single-event .tg-event-single-image{
    max-width:600px!important;
    max-height:600px!important;
}

/* Поиск + дата остаются в одной строке ровно до того же момента,
 * что и Ведущий + Вид мероприятия. Поиск занимает всё свободное место. */
.tg-events-filter .tg-filter-row-search-date{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 126px!important;
    gap:8px!important;
    align-items:end!important;
}
.tg-events-filter .tg-filter-row-search-date .tg-filter-field-search{
    min-width:0!important;
    width:auto!important;
}
.tg-events-filter .tg-filter-row-search-date .tg-filter-field-date{
    width:126px!important;
    min-width:126px!important;
    max-width:126px!important;
}

/* Ведущий + Вид мероприятия и Регион + Город имеют одинаковую сетку 50/50. */
.tg-events-filter .tg-filter-row-host-type,
.tg-events-filter .tg-filter-row-bottom{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
}
.tg-events-filter .tg-filter-row-host-type .tg-filter-field-host,
.tg-events-filter .tg-filter-row-host-type .tg-filter-field-type,
.tg-events-filter .tg-filter-row-bottom .tg-filter-field-region,
.tg-events-filter .tg-filter-row-bottom .tg-filter-field-city{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
}
.tg-events-filter .tg-filter-row-bottom .tg-filter-actions{
    grid-column:1/-1!important;
    width:auto!important;
}

/* Все три пары перестраиваются одновременно. */
@container tg-events-filter-box (max-width:420px){
    .tg-events-filter .tg-filter-row-search-date,
    .tg-events-filter .tg-filter-row-host-type,
    .tg-events-filter .tg-filter-row-bottom{
        grid-template-columns:minmax(0,1fr)!important;
    }
    .tg-events-filter .tg-filter-row-search-date .tg-filter-field-date{
        width:100%!important;
        min-width:0!important;
        max-width:none!important;
    }
    .tg-events-filter .tg-filter-row-bottom .tg-filter-actions{
        grid-column:auto!important;
        width:100%!important;
    }
}


/* 1.2.49 — поиск + дата не переносятся раньше пары Ведущий + Вид мероприятия. */
.tg-events-filter .tg-filter-row-search-date .tg-filter-field-search,
.tg-events-filter .tg-filter-row-search-date .tg-filter-field-date{
    grid-column:auto!important;
}
.tg-events-filter .tg-filter-row-search-date{
    grid-template-columns:minmax(0,1fr) 126px!important;
}
.tg-events-filter .tg-filter-row-search-date .tg-filter-field-date{
    width:126px!important;
    min-width:126px!important;
    max-width:126px!important;
}
@container tg-events-filter-box (max-width:420px){
    .tg-events-filter .tg-filter-row-search-date,
    .tg-events-filter .tg-filter-row-host-type,
    .tg-events-filter .tg-filter-row-bottom{
        grid-template-columns:minmax(0,1fr)!important;
    }
    .tg-events-filter .tg-filter-row-search-date .tg-filter-field-date{
        width:100%!important;
        min-width:0!important;
        max-width:none!important;
    }
}


/* 1.2.50 — главное изображение по ширине контента без увеличения сверх исходного размера. */
body.single-event .tg-event-main-image{
    width:100%!important;
    max-width:100%!important;
    margin:2px auto 10px!important;
    padding:0!important;
    text-align:center!important;
}
body.single-event .tg-event-main-image img.tg-event-single-image,
body.single-event .tg-event-single-image{
    display:block!important;
    width:auto!important;
    height:auto!important;
    max-width:100%!important;
    max-height:none!important;
    margin:0 auto!important;
    object-fit:contain!important;
}

/* Контакты в таблице бронирований: телефон и e-mail ближе друг к другу. */
.tg-bookings-table .tg-booking-contact-line{
    display:block!important;
    margin:0!important;
    padding:0!important;
    line-height:1.16!important;
}
.tg-bookings-table .tg-booking-contact-line + .tg-booking-contact-line{
    margin-top:1px!important;
}


/* 1.2.53 — читаемость дат в «Моих мероприятиях». */
.tg-my-events .tg-my-events-all-dates{font-size:13px!important;}
.tg-my-events .tg-my-events-time,
.tg-my-events .tg-my-events-recurrence{font-size:13px!important;}
@container tg-my-events-box (max-width:520px){
    .tg-my-events .tg-my-events-all-dates{font-size:12px!important;}
    .tg-my-events .tg-my-events-time,
    .tg-my-events .tg-my-events-recurrence{font-size:12px!important;}
}

/* 1.2.57 — ненавязчивая ссылка на продвижение профиля ведущего. */
.tg-account-shortcuts{margin:0 0 20px}
.tg-account-shortcuts .tg-account-events-link{margin:0 0 5px}
.tg-account-promotion-link{margin:0}
.tg-account-promotion-link a{font-size:14px;line-height:1.35;font-weight:500;color:#68756d!important;text-decoration:none!important}
.tg-account-promotion-link a:hover{color:#2f6f3e!important;text-decoration:underline!important}
.tg-my-events-promotion-note{width:100%;margin-top:-3px;font-size:13px;line-height:1.4;color:#68756d}
.tg-my-events-promotion-note a{color:#68756d!important;text-decoration:none!important}
.tg-my-events-promotion-note a:hover{color:#2f6f3e!important;text-decoration:underline!important}
.tg-my-events-promotion-note strong{font-weight:600;color:#4f5d55}
.tg-my-events-pagination{margin:18px 0 0}.tg-my-events-pagination ul{display:flex;gap:6px;flex-wrap:wrap;list-style:none;margin:0;padding:0}.tg-my-events-pagination a,.tg-my-events-pagination span{display:inline-flex;align-items:center;justify-content:center;min-width:34px;min-height:34px;padding:5px 9px;border:1px solid #ddd;border-radius:7px;text-decoration:none}.tg-my-events-pagination .current{font-weight:700;background:#f3f3f3}

/* AJAX-выбор ведущего в административной форме. Публичный фильтр с 1.2.113
 * использует общий .tg-combobox, как «Вид мероприятия» и «Город». */
.tg-host-user-picker{position:relative;display:block;max-width:520px}
.tg-host-user-search{width:100%;box-sizing:border-box;font:inherit}
.tg-host-user-source{display:none!important}
.tg-host-user-results{position:absolute;z-index:100000;left:0;right:0;top:calc(100% + 2px);max-height:260px;overflow:auto;background:#fff;border:1px solid #8c8f94;border-radius:0 0 6px 6px;box-shadow:0 3px 8px rgba(0,0,0,.14)}
.tg-host-user-result{display:block;width:100%;padding:8px 10px;border:0;border-bottom:1px solid #f0f0f1;background:#fff;text-align:left;cursor:pointer;font:inherit}
.tg-host-user-result:hover,.tg-host-user-result:focus,.tg-host-user-result.is-active{background:#f0f6fc}
.tg-host-user-result-empty{display:block;padding:7px 9px;color:#646970;font:inherit}

/* 1.2.72 — компактный выбор стоимости участия. */
.tg-price-fieldset .tg-price-options{display:flex;flex-wrap:wrap;gap:8px 18px;margin:0 0 10px}
.tg-price-fieldset .tg-price-options label{display:inline-flex;align-items:center;gap:5px;font-weight:600;color:#544d46}
.tg-price-fieldset .tg-price-options input[type=radio]{margin:0}
.tg-price-fieldset .tg-price-amount-wrap{max-width:260px;margin:4px 0 8px}
.tg-price-fieldset .tg-price-amount-wrap label{font-weight:600;color:#544d46}

/* 1.2.76 — обязательные подтверждения ведущего и подтверждение публикации. */
.tg-account-consents{margin:14px 0 4px;padding:16px 18px;border:1px solid #dfe7e2;border-radius:10px;background:#fbfdfc}
.tg-account-consents-title{margin:0 0 12px;font-size:16px;line-height:1.35;font-weight:700;color:#2f3d35}
.tg-account-consents-form{margin:0}
.tg-account-consent-row{padding:10px 0;border-top:1px solid #e7ece9}
.tg-account-consent-row:first-of-type{border-top:0;padding-top:0}
.tg-account-consent-row label{display:flex;align-items:flex-start;gap:9px;margin:0;font-size:14px;line-height:1.5;color:#354139;cursor:pointer}
.tg-account-consent-row input[type="checkbox"]{flex:0 0 auto;margin-top:4px}
.tg-account-consent-row.is-accepted label{cursor:default}
.tg-account-consent-row a,.tg-account-consents-withdrawal a,.tg-consents-required a,.tg-event-publication-confirm a{color:#2f6f3e!important;text-decoration:underline!important;text-underline-offset:2px}
.tg-account-consent-date{margin:4px 0 0 25px;font-size:12px;line-height:1.35;color:#6c7770}
.tg-consents-save{display:inline-flex;align-items:center;justify-content:center;min-height:38px;margin-top:8px;padding:7px 14px;border:0;border-radius:7px;background:#0a7257;color:#fff;font-size:14px;font-weight:600;cursor:pointer}
.tg-consents-save:hover{background:#04513f}
.tg-account-consents-success{margin:0 0 10px;padding:8px 10px;border-radius:7px;background:#edf7f0;color:#315f3f;font-size:13px;line-height:1.4}
.tg-account-consents-note{margin:0 0 10px;padding:8px 10px;border-radius:7px;background:#fff8e8;color:#775b23;font-size:13px;line-height:1.4}
.tg-account-consents-withdrawal{margin-top:13px;padding-top:12px;border-top:1px solid #e1e8e4;font-size:12px;line-height:1.5;color:#6a746e}

.tg-account-consents.is-complete{padding:12px 16px}
.tg-account-consents.is-complete .tg-account-consents-title{margin-bottom:8px;font-size:14px}
.tg-account-consents-accepted{display:grid;gap:5px}
.tg-account-consent-accepted-line,.tg-account-legacy-status{display:flex;align-items:flex-start;gap:7px;font-size:13px;line-height:1.4;color:#354139}
.tg-account-consent-check{flex:0 0 auto;color:#238636;font-size:15px;font-weight:700;line-height:1.25}
.tg-account-consent-inline-date{font-weight:400;color:#6c7770}
.tg-account-consent-accepted-line a{color:#2f6f3e!important;text-decoration:underline!important;text-underline-offset:2px}
.tg-account-legacy-status{padding:2px 0}
.tg-consents-required{margin:0 0 14px;padding:11px 13px;border:1px solid #e4c27a;border-radius:8px;background:#fff9e9;font-size:13px;line-height:1.5;color:#554a32}
.tg-my-events-add.is-disabled{opacity:.48;cursor:not-allowed;pointer-events:none}
.tg-action-disabled{opacity:.48;cursor:not-allowed}
.tg-event-publication-confirm{margin:18px 0 4px;padding:13px 14px;border:1px solid #dfe7e2;border-radius:8px;background:#fbfdfc}
.tg-event-publication-confirm label{display:flex;align-items:flex-start;gap:9px;margin:0;font-size:13px;line-height:1.5;color:#354139}
.tg-event-publication-confirm input[type="checkbox"]{flex:0 0 auto;margin-top:4px}
@media(max-width:600px){.tg-account-consents{padding:14px}.tg-account-consent-row label,.tg-event-publication-confirm label{font-size:13px}.tg-account-consent-date{margin-left:24px}}

/* Предупреждения о бронированиях и удалении. */
.tg-booking-schedule-warning,.tg-delete-bookings-warning{margin:14px 0;padding:13px 15px;border:1px solid #e2bf70;border-radius:11px;background:#fff8e8;color:#6f5618;line-height:1.45}
.tg-booking-schedule-warning p,.tg-delete-bookings-warning p{margin:6px 0 8px}
.tg-delete-bookings-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.tg-bookings-retention-note{margin:-4px 0 14px;color:#777;font-size:12px;line-height:1.4}


/* 1.2.95 — массовое удаление бронирований, не меняя колонки таблицы. */
.tg-bookings-bulk-actions{display:flex;align-items:center;gap:10px 14px;flex-wrap:wrap;margin:10px 0;padding:10px 12px;border:1px solid #e7d8c2;border-radius:10px;background:#fff}
.tg-bookings-bulk-actions-bottom{margin:12px 0}
.tg-bookings-select-all,.tg-bookings-person-select{display:flex!important;align-items:flex-start;gap:9px;cursor:pointer}
.tg-bookings-select-all{align-items:center;font-size:13px;font-weight:600;color:#3d4c3e}
.tg-bookings-bulk-form input[type=checkbox]{appearance:auto!important;-webkit-appearance:checkbox!important;position:static!important;display:inline-block!important;flex:0 0 auto;width:17px!important;height:17px!important;min-width:17px!important;margin:1px 0 0!important;accent-color:#245f38;cursor:pointer}
.tg-bookings-person-select span{min-width:0;overflow-wrap:anywhere}
.tg-bookings-selected-count{font-size:12px;color:#636363;margin-left:auto}
.tg-bookings-bulk-actions .tg-bookings-delete-selected{border:1px solid #ab3838!important;border-radius:8px!important;padding:8px 13px!important;background:#a43838!important;color:#fff!important;font-size:13px!important;line-height:1.2!important;cursor:pointer}
.tg-bookings-bulk-actions .tg-bookings-delete-selected:disabled{opacity:.45!important;cursor:not-allowed!important}
@container tg-bookings-box (max-width:460px){
  .tg-bookings-bulk-actions{align-items:stretch}
  .tg-bookings-select-all{width:100%}
  .tg-bookings-selected-count{margin-left:0}
  .tg-bookings-bulk-actions .tg-bookings-delete-selected{margin-left:auto}
  .tg-bookings-table .tg-bookings-person-select{display:flex!important;grid-column:2!important}
}
