.wpquickaddress-wrap{
	position:relative;
	font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

/* =========================
HEADER PICKER
========================= */

.wpquickaddress-trigger{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:12px;
	padding:10px 14px;
	min-width:260px;
	background:#ffffff;
	border:1px solid #ececec;
	border-radius:14px;
	cursor:pointer;
	box-shadow:0 2px 8px rgba(0,0,0,.05);
	font-size:14px;
	font-weight:700;
	color:#111;
}

#wpquickaddressCurrentText{
	flex:1;
	overflow:hidden;
	text-overflow:ellipsis;
	white-space:nowrap;
	text-align:left;
}

/* =========================
MODAL OVERLAY
========================= */

.wpquickaddress-modal[hidden]{
	display:none!important;
}

.wpquickaddress-modal{
	position:fixed;
	inset:0;
	z-index:999999;
	background:rgba(0,0,0,.72);
	display:flex;
	align-items:flex-end;
	justify-content:center;
	padding:0;
}

/* =========================
BOTTOM SHEET
========================= */

.wpquickaddress-modal-inner{
	width:100%;
	max-width:520px;
	height:92vh;
	background:#111318;
	color:#fff;
	border-radius:24px 24px 0 0;
	display:flex;
	flex-direction:column;
	overflow:hidden;
	box-shadow:0 -10px 40px rgba(0,0,0,.35);
}

/* =========================
HEADER
========================= */

.wpquickaddress-modal-header{
	position:relative;
	padding:22px 18px 16px;
	border-bottom:1px solid rgba(255,255,255,.06);
}

.wpquickaddress-modal-header h3{
	margin:0;
	font-size:30px;
	line-height:1.1;
	font-weight:800;
	color:#fff;
}

.wpquickaddress-close{
	position:absolute;
	right:18px;
	top:14px;
	width:44px;
	height:44px;
	border:none;
	border-radius:50%;
	background:#1f232c;
	color:#fff;
	font-size:24px;
	cursor:pointer;
}

/* =========================
BODY
========================= */

.wpquickaddress-modal-body{
	flex:1;
	overflow-y:auto;
	padding:16px;
	-webkit-overflow-scrolling:touch;
}

/* =========================
SEARCH STYLE BUTTON
========================= */

.wpquickaddress-add-new{
	width:100%;
	border:none;
	background:#1d2129;
	color:#9ca3af;
	border-radius:16px;
	padding:16px;
	text-align:left;
	font-size:16px;
	font-weight:600;
	margin-bottom:14px;
	cursor:pointer;
}

.wpquickaddress-add-new::before{
	content:"＋ ";
	color:#22c55e;
	font-weight:900;
}

/* =========================
ADDRESS LIST
========================= */

.wpquickaddress-address-list{
	display:flex;
	flex-direction:column;
	gap:14px;
}

/* =========================
CARD
========================= */

.wpquickaddress-card{
	background:#1a1e26;
	border:1px solid rgba(255,255,255,.04);
	border-radius:18px;
	padding:16px;
	color:#fff;
}

.wpquickaddress-card-title{
	font-size:18px;
	font-weight:800;
	margin-bottom:8px;
}

.wpquickaddress-card div{
	line-height:1.5;
	color:#d1d5db;
}

/* =========================
CARD ACTIONS
========================= */

.wpquickaddress-card-actions{
	display:flex;
	gap:10px;
	margin-top:14px;
}

.wpquickaddress-card-actions button{
	flex:1;
	padding:11px;
	border:none;
	border-radius:12px;
	font-weight:700;
	cursor:pointer;
	font-size:14px;
}

.wpqa-select{
	background:#22c55e;
	color:#fff;
}

.wpqa-delete{
	background:#2b2f38;
	color:#ff6b6b;
}

.wpqa-selected-btn{
	background:#14532d;
	color:#86efac;
}

/* =========================
FORM
========================= */

.wpquickaddress-form{
	color:#fff;
}

.wpquickaddress-grid{
	display:grid;
	grid-template-columns:1fr 1fr;
	gap:12px;
}

.wpquickaddress-field{
	display:flex;
	flex-direction:column;
	gap:6px;
}

.wpquickaddress-field.full{
	grid-column:1/-1;
}

.wpquickaddress-field label{
	font-size:13px;
	color:#cbd5e1;
}

.wpquickaddress-field input,
.wpquickaddress-field select,
.wpquickaddress-field textarea{
	background:#1d2129;
	border:1px solid #2d3440;
	color:#fff;
	border-radius:14px;
	padding:14px;
	font-size:15px;
}

.wpquickaddress-radios{
	display:grid;
	grid-template-columns:1fr 1fr;
	gap:10px;
}

.wpquickaddress-radios label{
	background:#1d2129;
	padding:12px;
	border-radius:12px;
	font-size:14px;
}

/* =========================
FORM BUTTONS
========================= */

.wpquickaddress-form-actions{
	display:flex;
	gap:12px;
	margin-top:18px;
	position:sticky;
	bottom:0;
	background:#111318;
	padding-top:10px;
}

.wpquickaddress-form-actions button{
	flex:1;
	padding:14px;
	border:none;
	border-radius:14px;
	font-size:15px;
	font-weight:800;
	cursor:pointer;
}

.wpquickaddress-form-actions button:first-child{
	background:#2b2f38;
	color:#fff;
}

.wpquickaddress-form-actions button:last-child{
	background:#22c55e;
	color:#fff;
}

/* =========================
LOADING
========================= */

.wpquickaddress-loading,
.wpquickaddress-empty-state{
	padding:30px;
	text-align:center;
	color:#9ca3af;
}

/* =========================
MOBILE
========================= */

@media(max-width:767px){

	.wpquickaddress-modal-inner{
		max-width:100%;
		height:95vh;
	}

	.wpquickaddress-trigger{
		min-width:100%;
		width:100%;
	}

	.wpquickaddress-grid{
		grid-template-columns:1fr;
	}
}

/* =========================
HARD MOBILE OVERFLOW FIX
========================= */

@media(max-width:767px){

	html,
	body{
		overflow-x:hidden !important;
		max-width:100% !important;
	}

	.wpquickaddress-wrap,
	.wpquickaddress-modal,
	.wpquickaddress-modal-inner,
	.wpquickaddress-modal-body,
	.wpquickaddress-list-wrap,
	.wpquickaddress-address-list,
	.wpquickaddress-card{
		box-sizing:border-box;
		max-width:100% !important;
	}

	.wpquickaddress-modal{
		left:0;
		right:0;
		width:100%;
		padding:0 !important;
		margin:0 !important;
		overflow:hidden !important;
	}

	.wpquickaddress-modal-inner{
		width:100% !important;
		max-width:100% !important;
		min-width:100% !important;
		margin:0 !important;
		border-radius:22px 22px 0 0;
	}

	.wpquickaddress-modal-body{
		width:100%;
		overflow-x:hidden !important;
	}

	.wpquickaddress-card,
	.wpquickaddress-add-new,
	.wpquickaddress-trigger{
		width:100%;
		max-width:100%;
		min-width:0;
	}

	.wpquickaddress-close{
		transform:none;
	}
}

/* =========================
FINAL PICKER + BUTTON POLISH
========================= */

/* Picker */
.wpquickaddress-trigger{
	display:flex !important;
	align-items:center !important;
	justify-content:space-between !important;
	gap:10px !important;
	width:100% !important;
	max-width:100% !important;
	overflow:hidden !important;
}

#wpquickaddressCurrentText{
	flex:1 1 auto !important;
	min-width:0 !important;
	overflow:hidden !important;
	white-space:nowrap !important;
	text-overflow:ellipsis !important;
	text-align:left !important;
}

/* Arrow */
.wpquickaddress-trigger span:last-child{
	flex:0 0 auto !important;
	font-size:14px !important;
}

/* Add New Button */
#wpquickaddressShowForm.wpquickaddress-add-new{
	display:flex !important;
	align-items:center !important;
	justify-content:center !important;
	width:100% !important;
	padding:14px !important;
	border-radius:14px !important;
	border:1px solid rgba(34,197,94,.35) !important;
	background:#1a1e26 !important;
	color:#22c55e !important;
	font-size:15px !important;
	font-weight:800 !important;
	margin-top:8px !important;
	cursor:pointer !important;
}

#wpquickaddressShowForm.wpquickaddress-add-new:hover{
	opacity:.95;
}

/* Close Button */
#wpquickaddressClose.wpquickaddress-close{
	width:42px !important;
	height:42px !important;
	border-radius:50% !important;
	border:1px solid rgba(255,255,255,.08) !important;
	background:#262b35 !important;
	color:#ffffff !important;
	font-size:24px !important;
	line-height:1 !important;
	display:flex !important;
	align-items:center !important;
	justify-content:center !important;
	cursor:pointer !important;
	padding:0 !important;
}

/* =========================
PREMIUM PICKER REDESIGN
========================= */

.wpquickaddress-trigger{
	background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%) !important;
	border:1px solid #e5e7eb !important;
	border-radius:16px !important;
	padding:12px 14px !important;
	min-height:54px !important;
	box-shadow:
		0 4px 14px rgba(0,0,0,.06),
		0 1px 2px rgba(0,0,0,.04) !important;
	transition:all .2s ease !important;
}

.wpquickaddress-trigger:hover{
	transform:translateY(-1px);
	box-shadow:
		0 8px 20px rgba(0,0,0,.08),
		0 2px 4px rgba(0,0,0,.04) !important;
	border-color:#d1d5db !important;
}

#wpquickaddressCurrentText{
	color:#111827 !important;
	font-size:15px !important;
	font-weight:800 !important;
	letter-spacing:-0.1px;
}

/* Arrow badge */
.wpquickaddress-trigger span:last-child{
	width:28px !important;
	height:28px !important;
	border-radius:999px !important;
	background:#eef2f7 !important;
	display:flex !important;
	align-items:center !important;
	justify-content:center !important;
	color:#475569 !important;
	font-size:12px !important;
	font-weight:900 !important;
	line-height:1 !important;
}

/* Mobile */
@media(max-width:767px){

	.wpquickaddress-trigger{
		min-height:52px !important;
		padding:11px 13px !important;
		border-radius:15px !important;
	}

	#wpquickaddressCurrentText{
		font-size:14px !important;
	}

	.wpquickaddress-trigger span:last-child{
		width:26px !important;
		height:26px !important;
	}
}

/* =========================
MY ACCOUNT FINAL FIX
========================= */

/* Global font */
.wpquickaddress-myaccount-list,
.wpquickaddress-myaccount-card,
.wpquickaddress-myaccount-card *,
.wpquickaddress-myaccount-topbar,
.wpquickaddress-add-page-btn{
	font-family:'Poppins',sans-serif !important;
}

/* Top bar */
.wpquickaddress-myaccount-topbar{
	display:flex;
	justify-content:space-between;
	align-items:center;
	flex-wrap:wrap;
	gap:12px;
	margin-bottom:22px;
}

.wpquickaddress-myaccount-topbar h2,
.wpquickaddress-myaccount-topbar h3{
	margin:0;
	font-size:34px;
	font-weight:800;
	color:#111827;
	letter-spacing:-0.5px;
}

/* Add new button */
.wpquickaddress-add-page-btn{
	background:none !important;
	border:none !important;
	color:#16a34a !important;
	font-size:20px !important;
	font-weight:700 !important;
	padding:0 !important;
	cursor:pointer;
}

.wpquickaddress-add-page-btn::before{
	content:"+ ";
	font-weight:900;
}

/* List */
.wpquickaddress-myaccount-list{
	display:flex;
	flex-direction:column;
	gap:0;
	border-top:1px solid #eceff3;
}

/* Row */
.wpquickaddress-myaccount-card{
	display:grid;
	grid-template-columns:140px 1fr;
	gap:18px;
	padding:22px 0;
	border-bottom:1px solid #eceff3;
	align-items:start;
	background:none !important;
	border-radius:0 !important;
}

/* Left label */
.wpquickaddress-myaccount-card strong,
.wpquickaddress-myaccount-card h3{
	margin:0;
	font-size:18px;
	font-weight:800;
	color:#111827;
	line-height:1.3;
}

/* Right content text */
.wpquickaddress-myaccount-card p,
.wpquickaddress-myaccount-card div{
	margin:0;
	color:#475569;
	font-size:15px;
	line-height:1.65;
}

/* Action buttons */
.wpquickaddress-myaccount-actions{
	grid-column:2;
	display:flex;
	flex-wrap:wrap;
	gap:10px;
	margin-top:14px;
}

/* Buttons */
.wpquickaddress-myaccount-actions button,
.wpquickaddress-myaccount-actions a,
.wpqa-myaccount-select,
.wpqa-current-selected{
	border:none;
	border-radius:12px;
	padding:10px 16px;
	font-size:14px;
	font-weight:700;
	cursor:pointer;
	text-decoration:none;
	font-family:'Poppins',sans-serif !important;
}

/* Selected */
.wpqa-current-selected{
	background:#dcfce7;
	color:#166534;
}

/* Use address */
.wpqa-myaccount-select{
	background:#16a34a;
	color:#ffffff;
}

/* Edit */
.wpqa-myaccount-edit{
	background:#f8fafc;
	color:#111827;
	border:1px solid #e5e7eb;
}

/* Delete */
.wpqa-myaccount-delete{
	background:#fff1f2;
	color:#e11d48;
	border:1px solid #ffe4e6;
}

/* Remove fake dots/icon leftovers */
.wpquickaddress-myaccount-actions::after,
.wpquickaddress-myaccount-card::before{
	display:none !important;
	content:none !important;
}

/* Mobile */
@media(max-width:767px){

	.wpquickaddress-myaccount-topbar h2,
	.wpquickaddress-myaccount-topbar h3{
		font-size:26px;
	}

	.wpquickaddress-add-page-btn{
		font-size:18px !important;
		width:100%;
		text-align:left;
	}

	.wpquickaddress-myaccount-card{
		grid-template-columns:1fr;
		gap:10px;
		padding:18px 0;
	}

	.wpquickaddress-myaccount-actions{
		grid-column:auto;
		flex-direction:column;
	}

	.wpquickaddress-myaccount-actions button,
	.wpquickaddress-myaccount-actions a,
	.wpqa-myaccount-select,
	.wpqa-current-selected{
		width:100%;
		text-align:center;
	}
}

/* =========================
MOBILE INLINE BUTTON FIX
========================= */

@media(max-width:767px){

	.wpquickaddress-myaccount-actions{
		display:flex !important;
		flex-direction:row !important;
		flex-wrap:wrap !important;
		gap:8px !important;
		margin-top:14px !important;
	}

	.wpquickaddress-myaccount-actions button,
	.wpquickaddress-myaccount-actions a,
	.wpqa-myaccount-select,
	.wpqa-current-selected,
	.wpqa-myaccount-edit,
	.wpqa-myaccount-delete{
		width:auto !important;
		flex:0 0 auto !important;
		display:inline-flex !important;
		align-items:center !important;
		justify-content:center !important;
		padding:10px 14px !important;
		font-size:13px !important;
		line-height:1 !important;
		white-space:nowrap !important;
		margin:0 !important;
	}
}