/* General Admin Container */
.ptiwmm-admin-container {
	max-width: 850px;
	background: linear-gradient(135deg, #ffffff, #f8f8f8);
	padding: 25px;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	margin: 30px auto;
	transition: all 0.3s ease-in-out;
}

.ptiwmm-admin-container:hover {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

/* Title Styling */
.ptiwmm-title {
	font-size: 26px;
	font-weight: 700;
	color: #0073aa;
	text-align: center;
	margin-bottom: 25px;
	text-transform: uppercase;
}

/* Form Table Styling */
.ptiwmm-table {
	width: 100%;
	border-collapse: collapse;
}

.ptiwmm-table th {
	text-align: left;
	width: 35%;
	font-weight: 600;
	padding: 12px 0;
	color: #333;
	font-size: 16px;
}

.ptiwmm-table td {
	padding: 12px 0;
}

/* Input Fields */
.ptiwmm-input,
.ptiwmm-textarea {
	width: 100%;
	padding: 10px;
	border: 2px solid #ccc;
	border-radius: 6px;
	font-size: 14px;
	transition: all 0.3s ease-in-out;
}

.ptiwmm-input:focus,
.ptiwmm-textarea:focus {
	border-color: #0073aa;
	box-shadow: 0 0 8px rgba(0, 115, 170, 0.3);
	outline: none;
}

/* Textarea Styling */
.ptiwmm-textarea {
	height: 120px;
	resize: vertical;
}

/* Color Picker */
.ptiwmm-color-picker {
	max-width: 150px;
	border: 1px solid #ddd;
	border-radius: 5px;
}

/* Submit Button */
.ptiwmm-button {
	background: linear-gradient(135deg, #0073aa, #005177);
	color: white;
	padding: 12px 22px;
	border: none;
	border-radius: 6px;
	font-size: 17px;
	cursor: pointer;
	transition: all 0.3s ease-in-out;
	display: block;
	margin: 20px auto;
	text-transform: uppercase;
	font-weight: 600;
	letter-spacing: 1px;
}

.ptiwmm-button:hover {
	background: linear-gradient(135deg, #005177, #003d5c);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

/* Toggle Switch */
.ptiwmm-switch {
	position: relative;
	display: inline-block;
	width: 55px;
	height: 28px;
}

.ptiwmm-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.ptiwmm-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
}

.ptiwmm-switch {
	position: relative;
	display: inline-block;
	width: 50px;
	height: 24px;
}

.ptiwmm-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.ptiwmm-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	transition: .4s;
	border-radius: 34px;
}

.ptiwmm-slider:before {
	position: absolute;
	content: "";
	height: 18px;
	width: 18px;
	left: 4px;
	bottom: 3px;
	background-color: white;
	transition: .4s;
	border-radius: 50%;
}

input:checked+.ptiwmm-slider {
	background-color: #0073aa;
}

input:checked+.ptiwmm-slider:before {
	transform: translateX(26px);
}

/* Light background with dark text */
.CodeMirror {
	background-color: #f5f5f5;
	/* Light gray background */
	color: black;
	height: 400px;
	font-size: 16px;
	border: 1px solid #ccc;
}

/* Ensure text inside the editor is dark */
.CodeMirror pre {
	color: black !important;
}

/* Syntax Highlighting */
.cm-tag {
	color: blue !important;
}

/* HTML Tags */
.cm-attribute {
	color: darkred !important;
}

/* HTML Attributes */
.cm-string {
	color: green !important;
}

/* Attribute Values */
.cm-comment {
	color: gray !important;
}

/* Comments */

.ptiwmm-admin-container.wrap>h2:first-child {
	font-size: 30px;
}
.template-selection {
	display: flex;
	gap: 15px;
}
.template-option {
	cursor: pointer;
	display: inline-block;
	position: relative;
}
.template-option input[type="radio"] {
	display: none; /* Completely hide the radio button */
}
.template-option img{
	width: 150px;
	height: auto;
	border: 2px solid transparent;
	transition: border-color 0.3s, box-shadow 0.3s;
}
.template-option input[type="radio"]:checked + img {
	border-color: #0073aa;
	box-shadow: 0 0 10px rgba(0, 115, 170, 0.5);
}
label.template-option img {
	width: 180px;
	height: 120px;
}

.image-container {
    position: relative;
    display: block;
    max-width: 300px;
}

.ptiwmm-remove-button {
    position: absolute;
    top: -10px;
    right: -15px;
    background: rgba(255, 255, 255, 0.8); /* Semi-transparent white */
    border: 1px solid ;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.ptiwmm-remove-button svg {
    width: 16px;
    height: 16px;
    stroke: #ff0000; /* Red color for the cross icon */
    transition: stroke 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.ptiwmm-remove-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.ptiwmm-remove-button:hover svg {
    stroke: #d10000; /* Darker red on hover */
}

#ptiwmm_banner_preview {
    max-width: 100%;
    display: block;
    border:1px solid #ddd;
    border-radius: 5px;
    padding: 1px;
    background: #f9f9f9;
}
