/* ADL Bảo hành – trang tra cứu. Dùng biến màu của theme nếu có. */
.adlw-lookup,
.adlw-modal {
	--w-teal: var(--adl-teal, #23a6ab);
	--w-teal-dark: var(--adl-teal-dark, #157c82);
	--w-navy: var(--adl-navy, #234b7c);
	--w-orange: var(--adl-orange, #f39a2b);
	--w-border: var(--adl-border, #dde7ea);
	--w-muted: var(--adl-muted, #6b7a8c);
	--w-radius: var(--adl-radius, 14px);
	width: 100%;
}
.adlw-lookup__form { display: flex; gap: 10px; background: #fff; border: 1px solid var(--w-border); border-radius: 999px; padding: 6px; box-shadow: 0 10px 30px rgba(35, 75, 124, 0.08); }
.adlw-lookup__form input {
	flex: 1;
	min-width: 0;
	border: 0 !important;
	background: transparent !important;
	padding: 12px 20px !important;
	font-size: 1.15rem !important;
	font-weight: 600;
	letter-spacing: 0.12em;
	color: var(--w-navy);
	box-shadow: none !important;
	outline: none;
}
.adlw-lookup__form input::placeholder { letter-spacing: normal; font-weight: 400; color: #9aa8b6; font-size: 1rem; }
.adlw-lookup__form button {
	border: 0;
	border-radius: 999px;
	background: var(--w-orange);
	color: #fff;
	font-weight: 700;
	padding: 12px 30px;
	cursor: pointer;
	font-size: 1rem;
	transition: background-color 0.2s ease;
	white-space: nowrap;
}
.adlw-lookup__form button:hover { background: var(--adl-orange-dark, #d9801a); }
.adlw-lookup__form button:disabled { opacity: 0.7; cursor: wait; }
.adlw-lookup.is-loading .adlw-lookup__result { opacity: 0.5; transition: opacity 0.2s; }
.adlw-lookup__result:not(:empty) { margin-top: 28px; }

.adlw-result { background: #fff; border: 1px solid var(--w-border); border-radius: var(--w-radius); overflow: hidden; box-shadow: 0 10px 30px rgba(35, 75, 124, 0.08); text-align: left; }
.adlw-result p { margin: 0; }
.adlw-result--notice, .adlw-result--notfound, .adlw-result--cancelled { padding: 22px 26px; }
.adlw-result--notfound { border-left: 5px solid var(--w-orange); }
.adlw-result--cancelled { border-left: 5px solid #c0392b; }
.adlw-result--notice { border-left: 5px solid var(--w-teal); }
.adlw-result__title { font-weight: 700; color: var(--w-navy); font-size: 1.1rem; margin-bottom: 6px !important; }

.adlw-result__head { display: flex; align-items: center; gap: 12px; padding: 18px 26px; background: linear-gradient(120deg, var(--w-teal), var(--w-teal-dark)); color: #fff; flex-wrap: wrap; }
.adlw-result--expired .adlw-result__head { background: linear-gradient(120deg, #8a96a3, #5d6b7a); }
.adlw-result__head .adlw-result__title { color: #fff; margin: 0 !important; flex: 1; min-width: 200px; }
.adlw-result__icon { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.2) center / 18px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='white' d='M256 0c4.6 0 9.2 1 13.4 2.9L457.8 82.8c22 9.3 38.4 31 38.3 57.2-.5 99.2-41.3 280.7-213.6 363.2-16.7 8-36.1 8-52.8 0C57.3 420.7 16.5 239.2 16 140 15.9 113.8 32.3 92.1 54.3 82.8L242.7 2.9C246.8 1 251.4 0 256 0zm0 66.8l0 378.1C394 378 431.1 230.1 432 141.4L256 66.8z'/%3E%3C/svg%3E"); flex: 0 0 auto; }

.adlw-pill { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; background: #fff; line-height: 1.2; white-space: nowrap; }
.adlw-pill--active { color: #17663a; }
.adlw-pill--expired { color: #8a5300; }
.adlw-pill--sm { font-size: 12px; padding: 3px 9px; margin-left: 6px; vertical-align: 1px; }
.adlw-pill--sm.adlw-pill--active { background: #e7f7ee; }
.adlw-pill--sm.adlw-pill--expired { background: #fff4e0; }

.adlw-result__foot { padding: 14px 26px 20px; color: var(--w-muted); font-size: 0.92rem; background: var(--adl-bg-alt, #f2f8f8); }

@media (max-width: 600px) {
	.adlw-lookup__form { flex-direction: column; border-radius: 18px; }
	.adlw-lookup__form button { width: 100%; }
	.adlw-result__head, .adlw-details, .adlw-result__foot { padding-left: 18px; padding-right: 18px; }
}

/* ==========================================================================
   Popup tra cứu bảo hành
   ========================================================================== */
.adlw-modal-open { overflow: hidden; }
.adlw-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px 24px; overflow-y: auto; }
.adlw-modal[hidden] { display: none; }
.adlw-modal__overlay { position: fixed; inset: 0; background: rgba(24, 53, 89, 0.55); backdrop-filter: blur(2px); }
.adlw-modal__box { position: relative; width: 100%; max-width: 680px; background: #fff; border-radius: 16px; padding: 40px 36px 32px; box-shadow: 0 30px 70px rgba(24, 53, 89, 0.35); animation: adlw-pop 0.2s ease-out; }
@keyframes adlw-pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .adlw-modal__box { animation: none; } }
.adlw-modal__close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; background: none; font-size: 30px; line-height: 1; color: #6b7a8c; cursor: pointer; border-radius: 50%; padding: 0; }
.adlw-modal__close:hover { background: #f2f8f8; color: #234b7c; }
.adlw-modal__title { text-align: center; text-transform: uppercase; color: var(--adl-teal, #23a6ab) !important; font-size: clamp(1.4rem, 3.4vw, 2rem) !important; line-height: 1.3 !important; font-weight: 700 !important; margin: 0 0 24px !important; }
.adlw-modal__form { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.adlw-modal__form input { width: 100%; border: 1.5px solid #cfdde1 !important; border-radius: 10px !important; padding: 14px 18px !important; font-size: 1.1rem; color: #234b7c; background: #fff !important; }
.adlw-modal__form input:focus { border-color: var(--adl-teal, #23a6ab) !important; box-shadow: 0 0 0 3px rgba(35, 166, 171, 0.18); outline: none; }
.adlw-modal__form button { min-width: 200px; border: 0; border-radius: 10px; padding: 14px 32px; background: var(--adl-teal, #23a6ab); color: #fff; font-weight: 700; font-size: 1.05rem; cursor: pointer; transition: background-color 0.2s; }
.adlw-modal__form button:hover { background: var(--adl-teal-dark, #157c82); }
.adlw-modal__form button:disabled { opacity: 0.7; cursor: wait; }
.adlw-modal.is-loading .adlw-modal__result { opacity: 0.5; }
.adlw-modal__result:not(:empty) { margin-top: 24px; }
.adlw-modal__result .adlw-result { box-shadow: none; }
@media (max-width: 600px) {
	.adlw-modal { padding-top: 16px; }
	.adlw-modal__box { padding: 34px 18px 22px; }
	.adlw-modal__form button { width: 100%; }
	.adlw-modal__result .adlw-result__head, .adlw-modal__result .adlw-details, .adlw-modal__result .adlw-result__foot { padding-left: 16px; padding-right: 16px; }
}

/* ==========================================================================
   Thông tin thẻ: 2 cột, mỗi dòng biểu tượng + nhãn + giá trị
   ========================================================================== */
.adlw-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; padding: 10px 26px 14px; }
.adlw-details__row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--w-border); min-width: 0; }
.adlw-details dt { display: flex; align-items: center; gap: 8px; flex: 0 0 168px; white-space: nowrap; margin: 0; color: var(--w-muted); font-weight: 500; font-size: 0.95rem; }
.adlw-details dd { margin: 0; color: var(--w-orange); font-weight: 700; font-size: 1rem; text-transform: uppercase; overflow-wrap: anywhere; }
.adlw-result--expired .adlw-details dd { color: #5d6b7a; }
.adlw-ico { flex: 0 0 18px; width: 18px; height: 18px; background: var(--w-muted); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.adlw-ico--card { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 10h18M7 15h4'/%3E%3C/svg%3E"); }
.adlw-ico--user { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 4-6 8-6s8 2 8 6'/%3E%3C/svg%3E"); }
.adlw-ico--tooth { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.5 3C5 3 3.5 5 3.5 7.5c0 2.6 1 4.6 1.7 7 .6 2.2.8 6.5 2.8 6.5s1.7-4.5 4-4.5 2 4.5 4 4.5 2.2-4.3 2.8-6.5c.7-2.4 1.7-4.4 1.7-7C20.5 5 19 3 16.5 3c-2 0-3 1-4.5 1S9.5 3 7.5 3z'/%3E%3C/svg%3E"); }
.adlw-ico--calendar { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4M8.5 15l2.5 2.5 4.5-4.5'/%3E%3C/svg%3E"); }
.adlw-ico--clock { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4M12 13v3l2 1.5'/%3E%3C/svg%3E"); }
.adlw-ico--lab { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h6M10 3v6l-5.6 9.4A2 2 0 0 0 6.1 21.5h11.8a2 2 0 0 0 1.7-3.1L14 9V3M7.5 15h9'/%3E%3C/svg%3E"); }
.adlw-ico--list { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6h12M9 12h12M9 18h12M4 6h.01M4 12h.01M4 18h.01'/%3E%3C/svg%3E"); }
.adlw-ico--layers { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l9 5-9 5-9-5 9-5z'/%3E%3Cpath d='M3 13l9 5 9-5'/%3E%3C/svg%3E"); }
@media (max-width: 760px) {
	.adlw-details { grid-template-columns: 1fr; }
	.adlw-details dt { flex-basis: 150px; }
}
@media (max-width: 400px) {
	.adlw-details__row { gap: 10px; }
	.adlw-details dt { flex-basis: 152px; font-size: 0.88rem; gap: 6px; }
	.adlw-details dd { font-size: 0.92rem; }
}
