.lem-dynamic-options-wrapper {
	margin: 1rem 0;
	padding: 1rem;
	border: 1px solid #ececec;
	border-radius: 6px;
	background: #fafafa;
}

.lem-dynamic-options__row {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin-bottom: 0.75rem;
}

.lem-style-picker {
	position: relative;
	width: 100%;
}

.lem-style-picker__trigger {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid #d7d7d7;
    border-radius: 10px;
    background: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 0.5rem;
    color: #333333;
    box-shadow: none;
}

.lem-style-picker__trigger:hover:not(:disabled),
.lem-style-picker__trigger.is-active {
    border-color: #0073aa;
    box-shadow: 0 6px 18px rgba(0, 115, 170, 0.18);
}

.lem-style-picker__trigger:disabled {
	cursor: not-allowed;
	opacity: 0.6;
}

.lem-style-picker__panel {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    z-index: 999;
    width: min(720px, 100%);
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #c3e2f3;
    box-shadow: 0 18px 36px rgba(79, 159, 190, 0.22);
    padding: 1.1rem 1.2rem;
    display: none;
}

.lem-style-picker__panel.is-open {
	display: block;
}

.lem-style-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.35rem;
}

.lem-style-section {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    padding: 0.45rem 0.55rem 0.6rem;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    --lem-style-glow: rgba(180, 180, 180, 0.25);
}

.lem-style-section__title {
    display: inline-block;
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
    background: linear-gradient(120deg, #c9edcf, #dcf6e0);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #2f6c38;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.lem-style-section__grid {
	display: flex;
	flex-direction: column;
	gap: 0.24rem;
}

.lem-style-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.32rem 0.5rem;
    border-radius: 6px;
    border: 1px solid #dcdcdc;
    background: #ffffff;
    cursor: pointer;
    text-align: left;
    font-size: 0.75rem;
    color: #333333;
    transition: all 0.2s ease;
    overflow: hidden;
}

.lem-style-option::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: conic-gradient(from 0deg, var(--lem-style-glow), transparent 45%, transparent 55%, var(--lem-style-glow));
    animation: lem-style-glow 6s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lem-style-option:hover::before,
.lem-style-option.is-active::before {
    opacity: 1;
}

.lem-style-option::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 5px;
    background: inherit;
    z-index: 0;
}

.lem-style-option > * {
    position: relative;
    z-index: 1;
}

.lem-style-option:hover {
    border-color: #7ea0b5;
    background: #f5fbff;
}

.lem-style-option.is-active {
    border-color: #4f88a5;
    background: linear-gradient(120deg, #e5f3ff, #d9ecff);
    color: #1f4b60;
    box-shadow: 0 6px 12px rgba(79, 136, 165, 0.2);
}

.lem-style-option__label {
	font-size: 0.75rem;
	font-weight: 500;
	color: inherit;
}

.lem-style-option__meta {
	display: none;
}

.lem-style-select {
	display: none !important;
}

.lem-dynamic-options__row label {
	font-weight: 600;
}

.lem-dynamic-options__row select {
	padding: 0.5rem;
	font-size: 0.95rem;
	display: block;
	width: 100%;
}

.lem-dynamic-options__price {
	font-weight: 600;
	font-size: 1.1rem;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.35rem;
}

.lem-price {
	display: flex;
	align-items: baseline;
	gap: 0.4rem;
}

.lem-price__label {
	font-weight: 600;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: #666666;
	min-width: 3.25rem;
}

.lem-price--regular {
	color: #777777;
	text-decoration: line-through;
}

.lem-price--sale {
	color: #d54e21;
	font-weight: 700;
}

.lem-price--single {
	color: #222222;
	font-weight: 700;
}

.lem-summary-price--hidden {
	display: none !important;
}

.lem-summary-price {
	display: block;
}

.lem-summary-price--sale {
	font-weight: 700;
	color: #222222;
}

.lem-summary-price--regular {
	color: #777777;
	text-decoration: line-through;
	margin-top: 0.15rem;
}

.lem-dynamic-options-active .summary p.price {
	display: none !important;
}

.lem-dynamic-options-active .nbw-single-price {
	display: none !important;
}

.lem-color-picker {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.lem-color-picker__trigger {
	padding: 0.5rem 1rem;
	border: 1px solid #d7d7d7;
	background-color: #ffffff;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.95rem;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.lem-color-picker__trigger:disabled,
.lem-color-picker.is-disabled .lem-color-picker__trigger {
	cursor: not-allowed;
	opacity: 0.6;
}

.lem-color-picker__trigger:not(:disabled):hover {
	background-color: #f4f4f4;
	border-color: #c0c0c0;
}

.lem-color-picker__preview {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.25rem;
	padding: 0.25rem 0.5rem;
	border-radius: 4px;
	background-color: #f7f7f7;
}

.lem-color-picker__preview-swatch {
	display: inline-block;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 4px;
	border: 1px solid #d7d7d7;
	background-color: #d7d7d7;
}

.lem-color-picker__preview-label {
	font-size: 0.9rem;
	font-weight: 500;
}

.lem-color-select--hidden {
	display: none !important;
}

.lem-color-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
}

.lem-color-modal.is-open {
	display: block;
}

.lem-color-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.lem-color-modal__dialog {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #ffffff;
	border-radius: 8px;
	padding: 1.5rem;
	max-width: 640px;
	width: calc(100% - 2rem);
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.25);
}

.lem-color-modal__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
}

.lem-color-modal__title {
	margin: 0;
	font-size: 1.25rem;
}

.lem-color-modal__close {
	background: none;
	border: none;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	padding: 0.25rem;
}

.lem-color-modal__body {
	max-height: 60vh;
	overflow-y: auto;
}

.lem-color-modal__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 0.75rem;
}

.lem-color-modal__empty {
	font-size: 0.95rem;
	color: #666666;
	margin: 0 0 1rem;
}

.lem-color-swatch {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	border: 1px solid transparent;
	border-radius: 6px;
	padding: 0.75rem 0.5rem;
	cursor: pointer;
	background-color: #f9f9f9;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.lem-color-swatch:hover {
	border-color: #0073aa;
	transform: translateY(-2px);
}

.lem-color-swatch.is-selected {
	border-color: #0073aa;
	box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.lem-color-swatch__chip {
	width: 48px;
	height: 48px;
	border-radius: 6px;
	border: 1px solid rgba(0, 0, 0, 0.1);
}

.lem-color-swatch__label {
	font-size: 0.9rem;
	text-align: center;
}

body.lem-color-modal-open {
	overflow: hidden;
}

@keyframes lem-style-glow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.lem-style-section[data-category-key="adult"] {
    border: 1px solid #f6dba0;
    background: #fffdf4;
    --lem-style-glow: rgba(255, 204, 122, 0.35);
}

.lem-style-section[data-category-key="adult"] .lem-style-section__title {
    background: linear-gradient(120deg, #ffe4a1, #fff0c7);
    color: #6d4c12;
}

.lem-style-section[data-category-key="youth"] {
    border: 1px solid #cfead6;
    background: #f7fff7;
    --lem-style-glow: rgba(150, 219, 160, 0.35);
}

.lem-style-section[data-category-key="youth"] .lem-style-section__title {
    background: linear-gradient(120deg, #d4f3da, #e6faea);
    color: #2f6c38;
}

.lem-style-section[data-category-key="youth"] .lem-style-option {
    border: 1px solid #d5f0db;
    background: #f9fff9;
    color: #2b6a32;
}

.lem-style-section[data-category-key="youth"] .lem-style-option:hover {
    border-color: #7fcf8b;
    background: #edfbee;
}

.lem-style-section[data-category-key="youth"] .lem-style-option.is-active {
    border-color: #58b867;
    background: linear-gradient(120deg, #dff8e4, #d0f2d6);
    color: #1f5226;
    box-shadow: 0 6px 12px rgba(88, 184, 103, 0.18);
}

.lem-style-section[data-category-key="adult"] .lem-style-option {
    border-color: #f0cf7f;
    background: #fffef6;
    color: #4a3610;
}

.lem-style-section[data-category-key="adult"] .lem-style-option:hover {
    border-color: #e4a52e;
    background: #fff4d0;
}

.lem-style-section[data-category-key="adult"] .lem-style-option.is-active {
    border-color: #d98b15;
    background: linear-gradient(120deg, #ffe9b0, #ffe19a);
    color: #3a2a0a;
    box-shadow: 0 6px 12px rgba(217, 139, 21, 0.25);
}

.lem-dynamic-options__row--personalization textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid #d7d7d7;
    border-radius: 8px;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 3.5rem;
}

.lem-dynamic-options__row--personalization textarea:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 1px rgba(0, 115, 170, 0.25);
    outline: none;
}

.lem-size-chart-button {
    margin-top: 0.35rem;
    align-self: flex-start;
    padding: 0.18rem 0.28rem;
    border: 1px solid #0073aa;
    border-radius: 4px;
    background: #ffffff;
    font-size: 0.6rem;
    font-weight: 600;
    color: #0073aa;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.1;
    letter-spacing: 0.03em;
}

.lem-size-chart-button:disabled {
    cursor: not-allowed;
    opacity: 0.4;
    border-color: #cccccc;
    color: #999999;
}

.lem-size-chart-button:not(:disabled):hover {
    background: #0073aa;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.25);
}

.lem-size-chart-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.lem-size-chart-modal.is-open {
    display: block;
}

.lem-size-chart-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.lem-size-chart-modal__dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 12px;
    max-width: min(720px, 90vw);
    max-height: 80vh;
    width: 100%;
    padding: 1.2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
}

.lem-size-chart-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.lem-size-chart-modal__title {
    margin: 0;
    font-size: 1.1rem;
}

.lem-size-chart-modal__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.lem-size-chart-modal__body {
    overflow: auto;
}

.lem-size-chart {
    margin-bottom: 1.5rem;
}

.lem-size-chart h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.lem-size-chart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.lem-size-chart-table th,
.lem-size-chart-table td {
    border: 1px solid #e0e0e0;
    padding: 0.45rem;
    text-align: center;
}

.lem-size-chart-table thead th {
    background: #f4f4f4;
    font-weight: 600;
}

.lem-size-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
}

.lem-size-row .lem-select--size {
    flex: 1 1 auto;
}

.lem-size-row .lem-size-chart-button {
    flex: 0 0 auto;
}

