/* Printo Product Configurator — frontend (chips + modal).
   Kept minimal & neutral so it blends with the theme. */

/* selected finishing chips */
.ppc-fin-selected { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.ppc-chip {
	display: flex; align-items: center; justify-content: space-between;
	border: 1px solid #d1d5db; border-radius: 4px; padding: 8px 12px;
	font-size: 13px; background: #fff;
}
.ppc-chip-x {
	background: none; border: none; cursor: pointer; font-size: 18px;
	line-height: 1; color: #6b7280; padding: 0 4px;
}
.ppc-chip-x:hover { color: #b32d2e; }

/* modal */
.ppc-modal {
	position: fixed; inset: 0; z-index: 99999;
	background: rgba(0,0,0,0.45);
	align-items: center; justify-content: center;
	display: none; padding: 20px;
}
.ppc-modal-box {
	background: #fff; border-radius: 10px; padding: 28px;
	max-width: 760px; width: 100%; max-height: 88vh; overflow: auto;
	position: relative; box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.ppc-modal-close {
	position: absolute; top: 10px; right: 12px;
	width: 32px; height: 32px; border-radius: 50%;
	border: none; background: #9ca3af; color: #fff;
	font-size: 20px; line-height: 1; cursor: pointer;
}
.ppc-modal-title { font-size: 20px; margin: 0 0 16px; }
.ppc-modal-note { color: #dc6b6b; font-size: 14px; font-weight: 400; margin-left: 8px; }
.ppc-modal-selectors { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.ppc-modal-selectors label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; flex: 1 1 220px; }
.ppc-modal-selectors select { border: 1px solid #d1d5db; padding: 8px; border-radius: 4px; }

.ppc-modal-cards {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px;
}
.ppc-card {
	border: 1px solid #e5e7eb; border-radius: 8px; padding: 18px 12px;
	text-align: center; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.ppc-card:hover { border-color: #f97316; box-shadow: 0 4px 14px rgba(0,0,0,0.08); }
.ppc-card-label { font-weight: 600; margin-bottom: 6px; }
.ppc-card-meta { color: #dc6b6b; font-size: 13px; }
.ppc-card-meta span { color: #dc6b6b; }

.ppc-card-img { margin-bottom: 8px; display: flex; justify-content: center; align-items: center; min-height: 70px; }
.ppc-card-img img { max-width: 100%; max-height: 90px; object-fit: contain; }

/* ---- Round Corner Visual — v2.0.0 ---- */
.ppc-rc-visual { display: flex; flex-direction: column; align-items: center; padding: 20px 0; }

.ppc-rc-wrap {
	position: relative;
	width: 180px;
	height: 220px;
	display: grid;
	grid-template-columns: 36px 1fr 36px;
	grid-template-rows: 36px 1fr 36px;
	gap: 0;
}

.ppc-rc-card-preview {
	grid-column: 1 / 4;
	grid-row: 1 / 4;
	border: 2px solid #b8975a;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 0;
	transition: border-radius 0.2s ease;
	z-index: 1;
}

.ppc-rc-corner {
	position: absolute;
	width: 36px;
	height: 36px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	background: #f0f0f0;
	border: 2px solid #ccc;
	border-radius: 4px;
	transition: background 0.15s, border-color 0.15s;
}
.ppc-rc-corner.active  { background: #b8975a; border-color: #b8975a; color: #fff; }
.ppc-rc-corner:hover   { border-color: #b8975a; }
.ppc-rc-check { font-size: 14px; font-weight: bold; }

.ppc-rc-tl { top: 0;    left: 0;  }
.ppc-rc-tr { top: 0;    right: 0; }
.ppc-rc-bl { bottom: 0; left: 0;  }
.ppc-rc-br { bottom: 0; right: 0; }

.ppc-rc-price-label { font-size: 12px; color: #b8975a; font-weight: 600; text-align: center; }

.ppc-rc-confirm {
	background: #b8975a !important;
	border-color: #b8975a !important;
	color: #fff !important;
	padding: 8px 24px !important;
	border-radius: 4px !important;
	cursor: pointer;
}
