/* Product Documents Frontend Styles */

.bcc-product-documents-widget {
	position: relative;
	display: inline-block;
	width: 100%;
}

.bcc-documents-button {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	border: none;
	background: transparent;
	padding: 12px 16px;
	width: 100%;
	text-align: left;
	font-size: 16px;
	font-weight: 500;
	color: #1e3a5f;
	background-color: #e8f4f8;
	border-radius: 4px;
	transition: background-color 0.2s ease;
}

.bcc-documents-button-icon-left {
	justify-content: flex-start;
}

.bcc-documents-button-icon-right {
	justify-content: space-between;
}

.bcc-documents-button:hover {
	background-color: #d0e8f0;
}

.bcc-documents-button:focus {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

.bcc-documents-button-text {
	flex: 1;
}

.bcc-documents-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	line-height: 1;
}

.bcc-documents-icon i,
.bcc-documents-icon svg {
	display: inline-block;
	vertical-align: middle;
}

.bcc-documents-popover {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	margin-top: 8px;
	z-index: 1000;
	min-width: 300px;
	overflow: hidden;
}

.bcc-documents-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bcc-document-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	text-decoration: none;
	color: #333;
	border-bottom: 1px solid #f0f0f0;
	transition: background-color 0.2s ease;
	cursor: pointer;
}

.bcc-document-item:last-child {
	border-bottom: none;
}

.bcc-document-item:hover {
	background-color: #f5f5f5;
	text-decoration: none;
	color: #333;
}

.bcc-document-name {
	flex: 1;
	font-size: 14px;
	color: #333;
	word-break: break-word;
}

.bcc-document-download-icon {
	font-size: 16px;
	color: #666;
	margin-left: 12px;
	flex-shrink: 0;
}

.bcc-download-all-btn {
	width: 100%;
	padding: 12px 16px;
	border: none;
	background: transparent;
	color: #333;
	font-size: 14px;
	cursor: pointer;
	text-align: left;
	border-top: 1px solid #f0f0f0;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.bcc-download-all-btn:hover {
	background-color: #f5f5f5;
	color: #000;
}

.bcc-download-all-btn:focus {
	outline: 2px solid #2271b1;
	outline-offset: -2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.bcc-documents-popover {
		left: 0;
		right: 0;
		min-width: auto;
	}
}

/* Popover header styling (if needed) */
.bcc-documents-popover-header {
	padding: 12px 16px;
	border-bottom: 1px solid #f0f0f0;
	font-weight: 600;
	color: #666;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

