/* ShipShape Partners — Partner page frontend overrides
 *
 * Scoped to single partner posts so other pages using the same blocks are
 * untouched. Loaded only on `is_singular('partners')` and inside the wizard
 * preview iframe.
 */

.single-partners .wp-block-shipstation-cards-v2 .card.card-icon .icon,
.shipmate-preview .wp-block-shipstation-cards-v2 .card.card-icon .icon {
	background: #fff;
	border-radius: 8px;
	width: 64px;
	height: 64px;
	padding: 12px;
	box-sizing: border-box;
}

/* Hero image on partner pages is the partner logo by default — frame it with
 * a subtle border so a transparent-PNG logo reads as a logo, not a floating
 * graphic. Center the logo within the media slot vertically and horizontally. */
.single-partners .wp-block-shipstation-hero .hero-media,
.shipmate-preview .wp-block-shipstation-hero .hero-media {
	display: flex;
	align-items: center;
	justify-content: center;
}

.single-partners .wp-block-shipstation-hero .container .hero .hero-media img,
.shipmate-preview .wp-block-shipstation-hero .container .hero .hero-media img {
	border: 1px solid #e2e2e7;
	border-radius: 16px;
	background: #fff;
	padding: 24px;
	box-sizing: border-box;
	width: 100%;
	max-width: 480px;
	aspect-ratio: 4 / 3;
	height: auto;
	max-height: none;
	object-fit: contain;
	object-position: center;
	display: block;
}

.single-partners .wp-block-shipstation-cards-v2 .card.card-icon .icon img,
.single-partners .wp-block-shipstation-cards-v2 .card.card-icon .icon svg,
.shipmate-preview .wp-block-shipstation-cards-v2 .card.card-icon .icon img,
.shipmate-preview .wp-block-shipstation-cards-v2 .card.card-icon .icon svg {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
