/*
 * Site-wide shapes (owner 2026-11-30: "если начали скруглять — везде одинаково").
 * Old ThemeREX / WPBakery blocks get the same rounded corners as the new design:
 * cards and boxes 16px (= home search card), media and tables 12px.
 * Only inside the page content (.page_content_wrap) — header and footer are styled elsewhere.
 */
:root { --tgp-rad-card: 16px; --tgp-rad-media: 12px; }

/* Boxes: "Broneeri endale sobiv aeg" (trx_sc_content with shadow), grey section boxes (rows with a background that are not full width). */
.page_content_wrap .sc_content,
.page_content_wrap .vc_row.vc_row-has-fill:not([data-vc-full-width]) {
	border-radius: var(--tgp-rad-card);
}

/* Media: images in content, service photos, post previews, home carousel slides. */
.page_content_wrap .vc_single_image-img,
.page_content_wrap .wpb_text_column img,
.page_content_wrap .post_content img,
.page_content_wrap .wp-post-image,
.page_content_wrap .post_featured,
.page_content_wrap .post_featured .mask,
.page_content_wrap .slider-slide,
.page_content_wrap iframe {
	border-radius: var(--tgp-rad-media);
}
.page_content_wrap .post_featured { overflow: hidden; }

/* Tables (price list, Booked calendar): clip-path keeps border-collapse and the inner lines intact.
   The clip cuts the outer cell borders at the corners, so ::after draws the rounded outline on top (sized to the table,
   so it also works when the price table scrolls sideways on phones). */
.page_content_wrap .wpb_text_column table,
.page_content_wrap table.booked-calendar {
	position: relative;
	clip-path: inset(0 round var(--tgp-rad-media));
}
.page_content_wrap .wpb_text_column table::after,
.page_content_wrap table.booked-calendar::after {
	content: '';
	position: absolute;
	inset: 0;
	border: 1px solid rgba(0, 0, 0, .07);
	border-radius: var(--tgp-rad-media);
	pointer-events: none;
}
/* Calendar: the header (grey month, black weekdays) fills the top corners itself — outline only the bottom corners. */
.page_content_wrap table.booked-calendar::after {
	top: auto;
	height: 40px;
	border-color: #ddd;
	border-top-width: 0;
	border-radius: 0 0 var(--tgp-rad-media) var(--tgp-rad-media);
}

/* Buttons pasted into content with inline styles (sidebar widget "Broneeri aeg", call/WhatsApp buttons) → pills, as the theme buttons. */
.page_content_wrap .widget_text a[style*="background"],
.page_content_wrap a.rz-call,
.page_content_wrap a.rz-whatsapp {
	border-radius: 999px !important;
}

/* Price list (/hinnakiri/ + translations, table.tg): "70 €" must not break into "70" / "€" on phones —
   price cells stay on one line, the table scrolls sideways (wrapper .overflow) instead. Row names (first column) still wrap. */
.page_content_wrap .wpb_text_column table.tg td:not(:first-child) {
	white-space: nowrap;
}
