/**
 * Gift Address (Dioendang) widget: the base look of the Kirim Kado card.
 *
 * The base is the templates' own hand-built card (owner, 2026-10-20): white,
 * 10px radius, soft drop shadow, everything centred, a gift icon on top, the
 * name in bold, the address under it, and a full-width pill button with the
 * copy icon on its right, in the same colour as the bank cards' Salin;
 * widget-styles.json then sets each template's fonts and colours on top
 * (ADR 0013). Nothing here comes from a control default, because a default
 * is printed into every page.
 *
 * 1. No flex `gap`: Chrome 84 / iOS Safari 14.5, above the device floor
 *    these invitations open on (see di-invitation-widgets.css). Space
 *    between items is a margin.
 * 2. See the button block.
 */

@font-face {
	font-family: "Philosopher";
	src: url("../fonts/Philosopher-Regular-latin.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Philosopher";
	src: url("../fonts/Philosopher-Regular-latin-ext.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Plus Jakarta Sans";
	src: url("../fonts/PlusJakartaSans-Variable-latin.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Plus Jakarta Sans";
	src: url("../fonts/PlusJakartaSans-Variable-latin-ext.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

.di-gift {
	color: #252525;
	text-align: center;
}

.di-gift--font-philosopher {
	font-family: "Philosopher", serif;
}

.di-gift--font-plus-jakarta-sans {
	font-family: "Plus Jakarta Sans", sans-serif;
}

/* ------------------------------------------------------------------ card */

.di-gift-card {
	display: flex;
	flex-direction: column;
	/* The alignment control sets --di-gift-align with text-align; the
	   button follows it. */
	align-items: var(--di-gift-align, center);
	padding: 18px;
	border-radius: 10px;
	/* A colour, not a gradient: Elementor's classic background sets only
	   background-color, so a base gradient would show through it. */
	background-color: #fff;
	box-shadow: 0 25px 25px -20px rgba(0, 0, 0, 0.26);
}

/* `center`/`right`/`left` from the control are text-align words; map them
   onto the flex axis. */
.di-gift-card[style*="--di-gift-align: center"],
.di-gift-card[style*="--di-gift-align:center"] {
	align-items: center;
}

.di-gift-body {
	width: 100%;
}

/* The gift icon: a Font Awesome glyph or an inline SVG from the library,
   sized by font-size so one control fits both. */
.di-gift-icon {
	margin-bottom: 10px; /* 1 */
	font-size: 44px;
	line-height: 1;
}

.di-gift-icon i {
	display: block;
}

.di-gift-icon svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.di-gift-title {
	margin-bottom: 8px; /* 1 */
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.04em;
	opacity: 0.85;
}

.di-gift-recipient {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.di-gift-address {
	margin-top: 4px; /* 1 */
	font-size: 14px;
	font-weight: 700; /* bold like the name (owner, 2026-10-20) */
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.di-gift-phone {
	margin-top: 6px;
	font-size: 13px;
	line-height: 1.4;
	font-variant-numeric: tabular-nums;
}

.di-gift-phone-prefix {
	opacity: 0.8;
}

/* ---------------------------------------------------------------- button */

/*
 * 2. The theme (hello-elementor) styles every [type=button] (0,1,0) with a
 *    pink border and a pink hover and focus (0,2,0). `button.di-gift-copy`
 *    (0,1,1) beats the first and its :hover/:focus (0,2,1) the second,
 *    while the widget's own controls ({{WRAPPER}} .di-gift-copy, 0,2,0)
 *    still beat this base. The colours go through custom properties so a
 *    template's normal colour also holds on hover unless it sets a hover one.
 */
button.di-gift-copy {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 100%;
	margin: 16px 0 0;
	padding: 11px 18px;
	border: 0;
	border-radius: 999px;
	background-color: var(--di-gift-btn-bg, rgba(121, 41, 41, 0.89));
	color: var(--di-gift-btn-color, #fff);
	font-family: inherit;
	font-size: 14px;
	font-weight: inherit;
	line-height: 1;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}

button.di-gift-copy:hover,
button.di-gift-copy:focus {
	background-color: var(--di-gift-btn-bg-hover, var(--di-gift-btn-bg, rgba(121, 41, 41, 0.89)));
	color: var(--di-gift-btn-color-hover, var(--di-gift-btn-color, #fff));
}

.di-gift-copy svg {
	display: block;
	flex: none;
	width: 1.1em;
	height: 1.1em;
}

.di-gift-copy-label {
	margin-right: 8px;
}

.di-gift-copy .di-gift-done-icon,
.di-gift-copy.is-copied .di-gift-copy-icon {
	display: none;
}

.di-gift-copy.is-copied .di-gift-done-icon {
	display: block;
}

button.di-gift-copy:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.di-gift-live {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
