/* GTP Workshops — front end */

.gtpws {
	--gtpws-accent: #1a5f7a;
	--gtpws-border: #e2e5e9;
	--gtpws-muted: #5f6b76;
	max-width: 820px;
	margin: 0 auto;
}

.gtpws-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 250px, 1fr ) );
	gap: 18px;
}

.gtpws-card {
	position: relative;
	padding: 18px;
	border: 1px solid var( --gtpws-border );
	border-radius: 8px;
	background: #fff;
}

.gtpws-card-title {
	margin: 0 0 8px;
	font-size: 18px;
	line-height: 1.3;
}

.gtpws-card-title a {
	text-decoration: none;
	color: inherit;
}

.gtpws-when {
	margin: 0 0 4px;
	font-weight: 600;
	color: var( --gtpws-accent );
}

.gtpws-where,
.gtpws-price {
	margin: 0 0 4px;
	color: var( --gtpws-muted );
	font-size: 14px;
}

.gtpws-muted {
	color: var( --gtpws-muted );
	font-size: 13px;
}

.gtpws-tag {
	display: inline-block;
	margin-bottom: 8px;
	padding: 2px 8px;
	border-radius: 3px;
	font-size: 11px;
	letter-spacing: .04em;
	text-transform: uppercase;
	background: #eef4f7;
	color: var( --gtpws-accent );
}

.gtpws-badge {
	display: inline-block;
	margin: 4px 0;
	padding: 2px 8px;
	border-radius: 3px;
	font-size: 12px;
}

.gtpws-badge-full { background: #f4f4f5; color: #6b7280; }
.gtpws-badge-low  { background: #fff3e0; color: #92400e; }

.gtpws-btn {
	display: inline-block;
	margin-top: 12px;
	padding: 9px 18px;
	border: 0;
	border-radius: 5px;
	background: var( --gtpws-accent );
	color: #fff !important;
	font-size: 15px;
	text-decoration: none;
	cursor: pointer;
}

.gtpws-btn:hover { opacity: .9; }
.gtpws-btn-sm    { margin: 0; padding: 5px 12px; font-size: 13px; }
.gtpws-btn-primary { padding: 12px 26px; font-size: 16px; }

.gtpws-dates {
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.gtpws-dates li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var( --gtpws-border );
}

.gtpws-date-when  { flex: 1 1 220px; font-weight: 600; }
.gtpws-date-where { flex: 0 1 160px; color: var( --gtpws-muted ); font-size: 14px; }

.gtpws-summary {
	/* So the rows can stack against this box rather than the viewport. */
	container-type: inline-size;
	margin: 18px 0 24px;
	padding: 16px 18px;
	border-radius: 8px;
	background: #f7f9fa;
}

.gtpws-summary-row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 5px 0;
}

.gtpws-summary-row span { color: var( --gtpws-muted ); }

.gtpws-form h3 {
	margin: 28px 0 8px;
	padding-bottom: 6px;
	border-bottom: 1px solid var( --gtpws-border );
	font-size: 17px;
}

.gtpws-field {
	margin: 0 0 14px;
}

.gtpws-field label {
	display: block;
	margin-bottom: 4px;
	font-size: 14px;
	font-weight: 600;
}

.gtpws-field input[type="text"],
.gtpws-field input[type="email"],
.gtpws-field input[type="tel"],
.gtpws-field select,
.gtpws-field textarea {
	width: 100%;
	max-width: 420px;
	padding: 9px 10px;
	border: 1px solid #c9ced4;
	border-radius: 5px;
	font-size: 15px;
}

.gtpws-req  { color: #b91c1c; }

.gtpws-hint {
	display: block;
	margin-top: 3px;
	max-width: 420px;
	color: var( --gtpws-muted );
	font-size: 13px;
	font-weight: 400;
}

.gtpws-hint-block { margin-bottom: 14px; }

.gtpws-attendee {
	margin: 0 0 18px;
	padding: 14px 16px;
	border: 1px solid var( --gtpws-border );
	border-radius: 6px;
}

.gtpws-attendee legend {
	padding: 0 6px;
	font-size: 13px;
	font-weight: 600;
	color: var( --gtpws-muted );
	text-transform: uppercase;
	letter-spacing: .04em;
}

.gtpws-notice {
	padding: 10px 14px;
	border-left: 3px solid #e5a800;
	background: #fff8e5;
	font-size: 14px;
}

.gtpws-errors {
	margin-bottom: 18px;
	padding: 12px 16px;
	border-left: 3px solid #b91c1c;
	background: #fdf0f0;
}

.gtpws-errors p { margin: 0 0 4px; }

.gtpws-empty {
	padding: 24px;
	border: 1px dashed var( --gtpws-border );
	border-radius: 8px;
	color: var( --gtpws-muted );
	text-align: center;
}

/* Honeypot — hidden from people, reachable by bots. */
.gtpws-hp {
	position: absolute !important;
	left: -9999px !important;
	height: 1px;
	overflow: hidden;
}

.gtpws-confirm { text-align: center; }

.gtpws-tick {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: 8px;
	border-radius: 50%;
	background: #e6f4ea;
	color: #0a5c2a;
	font-size: 26px;
}

.gtpws-confirm .gtpws-summary { text-align: left; }

/* Wrap when the pair genuinely will not fit, not at a fixed width. */
.gtpws-summary-row,
.gtpws-dates li { flex-wrap: wrap; gap: 2px 14px; }

/*
 * The label holds its width, the value takes the rest and sits against
 * the right edge. Growing both — which is what this used to do — left
 * each value floating inside a stretched box, so a short one like
 * "Online" read as centred while a long date looked right-aligned.
 */
.gtpws-summary-row > :first-child { flex: 0 0 auto; }
.gtpws-summary-row > :last-child { flex: 1 1 auto; min-width: 0; text-align: right; }

/* Stacked, the value belongs under its label rather than off to the right. */
@supports ( container-type: inline-size ) {
	@container ( max-width: 22rem ) {
		.gtpws-summary-row > :last-child { text-align: left; }
	}
}

.gtpws-btn-quiet {
	background: transparent;
	border: 1px solid #c9ced4;
	color: var( --gtpws-muted ) !important;
}

.gtpws-btn-quiet:hover { border-color: #b91c1c; color: #b91c1c !important; }

.gtpws-attendee-list {
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.gtpws-attendee-list li {
	padding: 7px 0;
	border-bottom: 1px solid var( --gtpws-border );
}

.gtpws-portal h3 {
	margin: 30px 0 10px;
	padding-bottom: 6px;
	border-bottom: 1px solid var( --gtpws-border );
	font-size: 17px;
}

.gtpws-voucher-status {
	display: block;
	margin-top: 5px;
	font-size: 13px;
	font-weight: 500;
	min-height: 18px;
}

.gtpws-voucher-checking { color: var( --gtpws-muted ); font-weight: 400; }
.gtpws-voucher-valid    { color: #0a5c2a; }
.gtpws-voucher-invalid  { color: #b91c1c; }

.gtpws-errors:focus { outline: 2px solid #b91c1c; outline-offset: 3px; }

.gtpws-card-image img,
.gtpws-hero img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
}

.gtpws-card-image {
	display: block;
	margin: -18px -18px 14px;
	overflow: hidden;
	border-radius: 8px 8px 0 0;
}

.gtpws-card-image img { border-radius: 0; }

.gtpws-hero { margin: 0 0 20px; }

.gtpws-card-summary {
	margin: 0 0 10px;
	font-size: 14px;
	line-height: 1.5;
	color: var( --gtpws-muted );
}

.gtpws-voucher-partial { color: #92400e; }

.gtpws-rating { border: 0; padding: 0; margin: 0 0 18px; }
.gtpws-rating legend { font-weight: 600; margin-bottom: 8px; }

.gtpws-rating-option {
	display: inline-block;
	width: 68px;
	margin: 0 6px 6px 0;
	padding: 10px 4px;
	border: 1px solid var( --gtpws-line, #dfe4e8 );
	border-radius: 6px;
	text-align: center;
	cursor: pointer;
}

.gtpws-rating-option span { display: block; font-size: 18px; font-weight: 700; }
.gtpws-rating-option small { display: block; font-size: 11px; color: var( --gtpws-muted ); }
.gtpws-rating-option:has( input:checked ) { border-color: var( --gtpws-accent, #1a5f7a ); box-shadow: 0 0 0 1px var( --gtpws-accent, #1a5f7a ); }

.gtpws-consent { margin: 20px 0; padding: 16px 18px; border: 1px solid var( --gtpws-line, #dfe4e8 ); border-radius: 6px; }
.gtpws-consent legend { font-weight: 600; padding: 0 6px; }

.gtpws-name-option { display: block; margin-bottom: 8px; }
.gtpws-name-option em { display: inline-block; margin-left: 8px; font-style: normal; color: var( --gtpws-muted ); }

.gtpws-testimonials { margin: 28px 0; }
.gtpws-rating-summary { font-size: 15px; margin: 0 0 14px; }
.gtpws-stars { color: #e0a800; letter-spacing: 1px; }

.gtpws-testimonial {
	margin: 0 0 16px;
	padding: 16px 18px;
	border-left: 3px solid var( --gtpws-accent, #1a5f7a );
	background: #fafbfc;
}

.gtpws-testimonial blockquote { margin: 0 0 8px; font-size: 16px; line-height: 1.6; }
.gtpws-testimonial figcaption { font-size: 13px; color: var( --gtpws-muted ); font-weight: 600; }

.gtpws-survey { margin-top: 26px; padding-top: 20px; border-top: 1px solid var( --gtpws-line, #dfe4e8 ); }
.gtpws-survey-intro { font-size: 15px; color: var( --gtpws-muted ); }

.gtpws-q { border: 0; padding: 0; margin: 0 0 26px; }
.gtpws-q legend { font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.gtpws-required { color: #b91c1c; }

.gtpws-likert { width: 100%; border-collapse: collapse; margin-top: 6px; }
.gtpws-likert th { font-size: 12px; font-weight: 600; padding: 6px 4px; text-align: center; }
.gtpws-likert th[scope='row'] { text-align: left; font-weight: 400; font-size: 15px; padding-right: 12px; }
.gtpws-likert td { text-align: center; padding: 8px 4px; border-top: 1px solid var( --gtpws-line, #eef1f3 ); }
.gtpws-likert label { display: block; cursor: pointer; padding: 4px 0; }
.gtpws-likert-label { display: none; }

.gtpws-scale { display: flex; flex-wrap: wrap; gap: 6px; }
.gtpws-scale-option { flex: 0 0 auto; }
.gtpws-scale-option input { position: absolute; opacity: 0; }
.gtpws-scale-option span {
	display: block; width: 44px; padding: 10px 0; text-align: center;
	border: 1px solid var( --gtpws-line, #dfe4e8 ); border-radius: 6px; cursor: pointer;
}
.gtpws-scale-option input:checked + span { background: var( --gtpws-accent, #1a5f7a ); color: #fff; border-color: var( --gtpws-accent, #1a5f7a ); }
.gtpws-scale-ends { display: flex; justify-content: space-between; font-size: 12px; color: var( --gtpws-muted ); margin-top: 4px; }

.gtpws-terms { display: flex; flex-wrap: wrap; gap: 8px; }
.gtpws-term input { position: absolute; opacity: 0; }
.gtpws-term span {
	display: inline-block; padding: 7px 14px; border-radius: 16px;
	border: 1px solid var( --gtpws-line, #dfe4e8 ); cursor: pointer; font-size: 14px;
}
.gtpws-term input:checked + span { background: var( --gtpws-accent, #1a5f7a ); color: #fff; border-color: var( --gtpws-accent, #1a5f7a ); }
.gtpws-option { display: block; margin-bottom: 6px; }

@media ( max-width: 640px ) {
	.gtpws-likert thead { display: none; }
	.gtpws-likert, .gtpws-likert tbody, .gtpws-likert tr, .gtpws-likert td, .gtpws-likert th { display: block; width: 100%; }
	.gtpws-likert tr { margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var( --gtpws-line, #eef1f3 ); }
	.gtpws-likert th[scope='row'] { font-weight: 600; padding: 0 0 6px; }
	.gtpws-likert td { text-align: left; border: 0; padding: 3px 0; }
	.gtpws-likert-label { display: inline; margin-left: 8px; }
}

.gtpws-methods { border: 0; padding: 0; margin: 0 0 18px; }
.gtpws-methods legend { font-weight: 600; margin-bottom: 10px; }

.gtpws-method {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 14px;
	margin-bottom: 8px;
	border: 1px solid var( --gtpws-line, #dfe4e8 );
	border-radius: 6px;
	cursor: pointer;
}

.gtpws-method:has( input:checked ) {
	border-color: var( --gtpws-accent, #1a5f7a );
	box-shadow: 0 0 0 1px var( --gtpws-accent, #1a5f7a );
	background: #fbfcfd;
}

.gtpws-method input { margin-top: 3px; flex: 0 0 auto; }
.gtpws-method strong { display: block; }
.gtpws-method small { display: block; margin-top: 2px; color: var( --gtpws-muted ); }

.gtpws-invoice-block {
	margin: 22px 0;
	padding: 18px 20px;
	border: 1px solid var( --gtpws-line, #dfe4e8 );
	border-radius: 6px;
	background: #fbfcfd;
}

.gtpws-invoice-block h3 { margin-top: 0; }
.gtpws-po-form { margin-top: 14px; }
.gtpws-po { margin-bottom: 16px; }

.gtpws-enquiry { margin: 26px 0; }

.gtpws-workshop-enquiry {
	margin: 32px 0;
	padding: 22px 24px;
	border: 1px solid var( --gtpws-line, #dfe4e8 );
	border-radius: 8px;
	background: #fbfcfd;
}

.gtpws-workshop-enquiry h3 { margin-top: 0; }
.gtpws-enquiry-form .gtpws-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

/*
 * auto-fit against a minimum, so the columns collapse when the theme's
 * column is narrow rather than when the browser window is. A viewport
 * breakpoint here left two cramped columns inside a narrow container on
 * a wide screen.
 */
.gtpws-enquiry-form .gtpws-grid {
	grid-template-columns: repeat( auto-fit, minmax( 15rem, 1fr ) );
}

.gtpws-chooser {
	margin: 20px 0 26px;
	padding: 20px 22px;
	border: 1px solid var( --gtpws-line, #dfe4e8 );
	border-radius: 8px;
	background: #fbfcfd;
}

.gtpws-chooser-step { margin-bottom: 16px; }
.gtpws-chooser-step:last-of-type { margin-bottom: 0; }

.gtpws-chooser-label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
}





.gtpws-chooser-go { margin: 18px 0 0; display: flex; gap: 10px; flex-wrap: wrap; }
.gtpws-chooser-go [hidden] { display: none; }

/* The booking form now lives on the workshop page, under the chooser. */
.gtpws-inline-form { margin-top: 22px; }
.gtpws-inline-form[hidden] { display: none; }
.gtpws-inline-form .gtpws-form-wrap { padding: 0; }

/*
 * A destructive action on somebody's own row. Deliberately quiet — the
 * class was already in the markup but had no rules, so themes were
 * styling it as a primary button, which made "Remove" the loudest thing
 * on the manage-booking page.
 */
.gtpws-link-btn {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	font-size: 14px;
	color: var( --gtpws-muted, #6b7780 );
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

/*
 * Hover and focus have to restate the background. Setting it only on the
 * resting state left the theme's own button hover to fill it in, which
 * painted a black block over the word.
 */
.gtpws-link-btn:hover,
.gtpws-link-btn:focus,
.gtpws-link-btn:active,
.gtpws-link-btn:focus-visible {
	background: none;
	border: 0;
	box-shadow: none;
	color: #b32d2e;
	text-decoration: underline;
}

.gtpws-link-btn:focus-visible {
	outline: 2px solid #b32d2e;
	outline-offset: 2px;
}

/* Keeps the button on the person's row rather than below it. */
.gtpws-row-action { display: inline; margin-left: 10px; }

/*
 * The course badge sits over the top-left of the card image. It used to be
 * a sibling rendered before the image, which simply overlapped it and left
 * a sliver of text showing above.
 */
.gtpws-card-image { position: relative; display: block; }

.gtpws-card-image .gtpws-tag {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 1;
	margin: 0;
	background: rgba( 22, 35, 43, .82 );
	color: #fff;
	backdrop-filter: blur( 2px );
}

/* Cards with no image keep the badge inline, above the title. */
.gtpws-tag-row { margin: 0 0 8px; }

/*
 * A course lists its dates where a per-session workshop offers a choice.
 * Same container, so the two do not read as different products.
 */
.gtpws-course-dates {
	margin: 0;
	padding-left: 22px;
	max-width: 460px;
}

.gtpws-course-dates li { margin-bottom: 5px; }
.gtpws-course-dates .when { font-weight: 600; }
.gtpws-course-dates .where { color: var( --gtpws-muted, #6b7780 ); }

/* What a workshop offers, when it offers more than one thing. */
.gtpws-card-ways { margin: 2px 0 0; font-size: 14px; color: var( --gtpws-muted, #6b7780 ); }

/*
 * The chooser: one row per way of attending. Format is not asked
 * separately any more — each row says where it is, and a course is not a
 * format at all.
 */
.gtpws-options { display: grid; gap: 9px; margin-top: 10px; }

.gtpws-option {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 13px 15px;
	border: 1px solid var( --gtpws-line, #dfe4e8 );
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
}

.gtpws-option:has( input:checked ) {
	border-color: var( --gtpws-accent, #1a5f7a );
	box-shadow: 0 0 0 1px var( --gtpws-accent, #1a5f7a );
}

.gtpws-option.is-gone { opacity: .6; cursor: default; }
.gtpws-option input { margin-top: 5px; flex: 0 0 auto; }
.gtpws-option-body { min-width: 0; }
.gtpws-option-head { display: block; font-weight: 600; }
.gtpws-option-detail { display: block; color: var( --gtpws-muted, #6b7780 ); font-size: 15px; }
.gtpws-option-note { display: block; color: #8a5a00; font-size: 14px; margin-top: 2px; }

.gtpws-chooser-go [hidden] { display: none; }

/* A draft workshop is visible only to somebody who could edit it. */
.gtpws-draft-notice {
	padding: 12px 16px;
	margin-bottom: 18px;
	background: #fcf9e8;
	border: 1px solid #e8dfae;
	border-left: 4px solid #8a5a00;
	border-radius: 6px;
	font-size: 15px;
}

.gtpws-card-image .gtpws-tag-draft,
.gtpws-tag-draft { background: #8a5a00; color: #fff; }


/*
 * Attendees run sideways rather than stacking. Five people and fifteen
 * take the same height, and each pill says whether that person has been
 * filled in — so nobody has to click through to find the gaps.
 */
/*
 * An explicit display beats the browser's own [hidden] rule, so this
 * would stay on screen when the script hides it — a single attendee
 * would show an empty pill rail.
 */
.gtpws-pills[hidden] { display: none; }

.gtpws-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 14px;
}

.gtpws-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 14px;
	border: 1px solid var( --gtpws-line, #dfe4e8 );
	border-radius: 20px;
	background: #fff;
	color: var( --gtpws-muted, #6b7780 );
	font: inherit;
	font-size: 14px;
	cursor: pointer;
}

.gtpws-pill[aria-selected="true"] {
	background: var( --gtpws-accent, #1a5f7a );
	border-color: var( --gtpws-accent, #1a5f7a );
	color: #fff;
}

.gtpws-pill-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #c3ccd2;
	flex: 0 0 auto;
}

/*
 * Three states, because two were lying. Green means this person will
 * pass validation; amber means somebody started and left something
 * required blank; grey means untouched, which is fine for everybody
 * after the first.
 */
.gtpws-pill.is-done .gtpws-pill-dot { background: #0a7a3f; }
.gtpws-pill.is-part .gtpws-pill-dot { background: #d9820a; }
.gtpws-pill.is-empty .gtpws-pill-dot { background: #c3ccd2; }

/* Amber earns a little more than a dot — it is the state that needs
   attention before Submit. */
.gtpws-pill.is-part { border-color: #e8c48a; }
.gtpws-pill.is-part[aria-selected='true'] { border-color: var( --gtpws-accent, #1a5f7a ); }
.gtpws-pill[aria-selected="true"] .gtpws-pill-dot { background: #fff; }

.gtpws-pill:focus-visible { outline: 2px solid var( --gtpws-accent, #1a5f7a ); outline-offset: 2px; }

/* The block is now just a container — the pill is its heading. */
.gtpws-attendee-head[hidden] { display: none; }

/*
 * Paired fields sit side by side. The markup has asked for this since the
 * form was written — gtpws-half was on six fields with no rule behind it,
 * so first name and surname stacked when they were meant to share a line.
 *
 * Flex rather than grid, so a half-width field left on its own at the end
 * of a row simply takes the space rather than leaving a gap.
 */
.gtpws-attendee-body,
.gtpws-fieldrow {
	display: flex;
	flex-wrap: wrap;
	gap: 0 16px;
}

.gtpws-attendee-body > .gtpws-field,
.gtpws-fieldrow > .gtpws-field {
	flex: 1 1 100%;
	min-width: 0;
}

/*
 * A minimum width rather than a fraction. Two fields share a line while
 * both can have 15rem, and drop to one each when they cannot.
 *
 * This used to be 50% with a media query at 560px, which asks about the
 * VIEWPORT — so narrowing the site's own column left the fields at half
 * of a much smaller space on a wide screen, and the breakpoint never
 * fired. Sizing against the container means the theme can change width
 * whenever it likes and the form still reads.
 */
.gtpws-attendee-body > .gtpws-half,
.gtpws-fieldrow > .gtpws-half {
	flex: 1 1 15rem;
}

/* A hint under a paired field belongs to that field, not the row. */
.gtpws-attendee-body > .gtpws-field .gtpws-hint { display: block; }

/*
 * The pending page is not a success. A green tick there tells somebody
 * they are booked when their seat is still on a fifteen-minute timer and
 * the payment has not happened.
 */
.gtpws-tick-waiting {
	background: #fdf6e3;
	color: #8a5a00;
}

/*
 * The pills are real buttons, so a theme's button hover can repaint them
 * the way it repainted the Remove link. Pinning the hover state keeps them
 * looking like the plugin's own control on any theme.
 */
.gtpws-pill:hover,
.gtpws-pill:focus {
	background: #f4f6f7;
	border-color: #c3ccd2;
	color: var( --gtpws-ink, #16232b );
	box-shadow: none;
}

.gtpws-pill[aria-selected="true"]:hover,
.gtpws-pill[aria-selected="true"]:focus {
	background: var( --gtpws-accent, #1a5f7a );
	border-color: var( --gtpws-accent, #1a5f7a );
	color: #fff;
}

/* An attendee's email is optional — a name alone still books a place. */
.gtpws-optional { font-weight: 400; color: var( --gtpws-muted, #6b7780 ); font-size: 13px; }

/*
 * One list of places, named and unnamed together. They used to be a list
 * of people plus a separate form for the empties, which meant a typo
 * could only be fixed by removing somebody and adding them back.
 */
.gtpws-places-list { border: 1px solid var( --gtpws-line, #dfe4e8 ); border-radius: 8px; overflow: hidden; }

.gtpws-place { border-top: 1px solid var( --gtpws-line, #dfe4e8 ); }
.gtpws-place:first-child { border-top: 0; }

.gtpws-place-head {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 11px 14px;
	background: #fff;
	cursor: pointer;
}

.gtpws-place-head:hover { background: #fbfcfd; }
.gtpws-place.is-open .gtpws-place-head { background: #f7f9fa; }

.gtpws-place-n {
	width: 22px; height: 22px; flex: 0 0 22px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%; background: #dfe4e8;
	font-size: 12px; font-weight: 700;
}

/* Three states, matching the booking form's pills. */
.gtpws-place.is-named .gtpws-place-n { background: #0a7a3f; color: #fff; }
.gtpws-place.is-part .gtpws-place-n { background: #d9820a; color: #fff; }
.gtpws-place.is-empty .gtpws-place-n { background: #dfe4e8; color: var( --gtpws-ink, #16232b ); }

.gtpws-place-who { font-weight: 600; }
.gtpws-place:not(.is-named) .gtpws-place-who { font-weight: 400; color: #8a5a00; }
.gtpws-place.is-part .gtpws-place-who { font-weight: 600; color: #8a5a00; }
.gtpws-place-mail { color: var( --gtpws-muted, #6b7780 ); font-size: 14px; }
.gtpws-place-act { margin-left: auto; font-size: 13px; color: var( --gtpws-accent, #1a5f7a ); }

.gtpws-place-body { padding: 14px 16px 16px; border-top: 1px solid var( --gtpws-line, #dfe4e8 ); background: #fbfcfd; }
.gtpws-place-remove { margin: 6px 0 0; font-size: 14px; }
.gtpws-place-remove input { width: auto; margin-right: 6px; }

.gtpws-places-readonly { margin: 10px 0 0; padding-left: 20px; }

/* Two ways into a workshop: book it, or read about it first. */
.gtpws-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.gtpws-about-link { margin: 0 0 4px; font-size: 15px; }
.gtpws-info-go { margin-top: 22px; }

/*
 * A compact list of the next few dates, for a home page. One row per
 * date rather than one card per workshop — on a home page the question
 * is "when is the next one", not "what do you run".
 */
.gtpws-upcoming h2 { margin: 0 0 8px; }
.gtpws-upcoming-intro { margin: 0 0 18px; color: var( --gtpws-muted, #6b7780 ); }

.gtpws-upcoming-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.gtpws-upcoming-row {
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-areas: 'when go' 'title go' 'detail go';
	gap: 2px 18px;
	align-items: start;
	padding: 15px 18px;
	border: 1px solid var( --gtpws-line, #dfe4e8 );
	border-radius: 10px;
	background: #fff;
}

.gtpws-upcoming-when { grid-area: when; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gtpws-upcoming-date { font-weight: 700; font-size: 17px; }
.gtpws-upcoming-title { grid-area: title; margin: 2px 0 0; }
.gtpws-upcoming-detail { grid-area: detail; margin: 2px 0 0; color: var( --gtpws-muted, #6b7780 ); font-size: 15px; }

.gtpws-upcoming-go { grid-area: go; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.gtpws-upcoming-price { font-weight: 700; font-size: 17px; white-space: nowrap; }

.gtpws-tag-online { background: #eef4f8; color: #1a5f7a; }
.gtpws-tag-low { background: #fdf6e3; color: #8a5a00; }

.gtpws-upcoming-footer { margin: 16px 0 0; color: var( --gtpws-muted, #6b7780 ); font-size: 15px; }

/* Stacks when the theme's column is narrow, not at a viewport width. */
@supports ( container-type: inline-size ) {
	.gtpws-upcoming { container-type: inline-size; }

	@container ( max-width: 30rem ) {
		.gtpws-upcoming-row { grid-template-columns: 1fr; grid-template-areas: 'when' 'title' 'detail' 'go'; }
		.gtpws-upcoming-go { flex-direction: row; align-items: center; justify-content: space-between; margin-top: 10px; }
	}
}

/*
 * Inputs line up even when a label wraps.
 *
 * "Email — so they get their own joining details" runs to two lines in a
 * narrow column while "Last name" stays on one, so the boxes started at
 * different heights. Making each field a column and pushing its control
 * to the bottom aligns the inputs rather than the labels.
 */
.gtpws-attendee-body > .gtpws-field,
.gtpws-fieldrow > .gtpws-field {
	display: flex;
	flex-direction: column;
}

.gtpws-attendee-body > .gtpws-field > input,
.gtpws-attendee-body > .gtpws-field > select,
.gtpws-attendee-body > .gtpws-field > textarea,
.gtpws-fieldrow > .gtpws-field > input,
.gtpws-fieldrow > .gtpws-field > select,
.gtpws-fieldrow > .gtpws-field > textarea {
	margin-top: auto;
}

/* A hint below the control must not push it back up. */
.gtpws-attendee-body > .gtpws-field > .gtpws-hint,
.gtpws-fieldrow > .gtpws-field > .gtpws-hint { margin-top: 4px; }

/*
 * These carry an explicit display, which beats the browser's own [hidden]
 * rule — so hiding a field in script would do nothing without this.
 */
.gtpws-attendee-body > .gtpws-field[hidden],
.gtpws-fieldrow > .gtpws-field[hidden],
.gtpws-field[hidden] { display: none; }

/*
 * The amount, restated where the decision is made. On a long form the
 * summary has scrolled away by the time somebody reaches the button.
 */
.gtpws-payline {
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding-top: 14px;
	margin-bottom: 14px;
	border-top: 1px solid var( --gtpws-line, #dfe4e8 );
}

.gtpws-payline-amt { font-size: 24px; font-weight: 700; }
.gtpws-payline-who { color: var( --gtpws-muted, #6b7780 ); font-size: 14px; }

/* An explicit display beats the browser's own [hidden] rule. */
.gtpws-payline[hidden] { display: none; }

/* ------------------------------------------------------------------ */
/* Schedules, told apart.                                              */
/*                                                                     */
/* A workshop with a six-week course and four standalone Tuesdays used */
/* to render five rows in one list sorted by date, with nothing saying */
/* which belonged together. The heading only appears when there is more */
/* than one schedule — with one, naming it tells the reader nothing     */
/* they cannot already see.                                             */
/* ------------------------------------------------------------------ */

.gtpws-chooser-note {
	display: block;
	color: var( --gtpws-muted, #6b7780 );
	font-size: 15px;
	margin: -4px 0 4px;
}

.gtpws-group + .gtpws-group {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var( --gtpws-line, #dfe4e8 );
}

.gtpws-group-name {
	margin: 0 0 9px;
	font-size: 16px;
	font-weight: 700;
}

/* Lighter and smaller, so the schedule's own name carries the line and
   the count sits behind it rather than competing. */
.gtpws-group-sub {
	font-weight: 400;
	font-size: 15px;
	color: var( --gtpws-muted, #6b7780 );
}

/* The options inside a group keep their own spacing; the grid gap on
   .gtpws-options would otherwise apply between GROUPS instead. */
.gtpws-group .gtpws-option + .gtpws-option {
	margin-top: 9px;
}
