/* Open & Close Hours — admin settings UI */

.woch-settings-wrap form.woch-settings-form{
	max-width: 1100px;
}

div.woch-notice-card{
	background-image: url('../images/bg_image.png');
	border: 1px solid #c3c4c7;
	padding: 12px 22px;
}

div.woch-notice-card h2, div.woch-notice-card p, div.woch-notice-card a{
	color: #ffffff;
}

div.woch-notice-card p.e-note{
	margin-top: 11px;
}
	
div.woch-notice-card .woch-notice-actions a.button-secondary{
	margin-right: 6px;
	border-color: #fff !important; 
}
	
div.woch-notice-card .button-link{
    color: #FFFFFF !important;
    background-color: #54375E;
    border-color: #54375E !important;
    text-decoration: none !important;
}

div.woch-notice-card .button-secondary:hover {
    color: #FFFFFF !important;
}
	
div.woch-notice-card .button{
	box-shadow: none;
	color: #fff;
	display: inline-block;
	text-decoration: none;
	font-size: 13px;
	line-height: 2.15384615;
	min-height: 30px;
	margin: 0;
	padding: 0 10px;
	cursor: pointer;
	border-width: 1px;
	border-style: solid;
	-webkit-appearance: none;
	border-radius: 3px;
	white-space: nowrap;
	box-sizing: border-box;
}
	

/* Cards */
.woch-card {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
	margin-bottom: 20px;
}

.woch-card__header {
	border-bottom: 1px solid #dcdcde;
	padding: 16px 20px;
}

.woch-card__header h2 {
	font-size: 1.1em;
	font-weight: 600;
	margin: 0 0 4px;
}

.woch-card__header .description {
	margin: 0;
}

.woch-card__body {
	padding: 0;
}

.woch-card--compact .woch-card__body {
	padding: 16px 20px;
}

/* Schedule table */
.woch-schedule-table {
	border: none;
	border-collapse: collapse;
	margin: 0;
	width: 100%;
}

.woch-schedule-table thead th {
	background: #f6f7f7;
	border-bottom: 1px solid #dcdcde;
	color: #1d2327;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	padding: 12px 16px;
	text-transform: uppercase;
}

.woch-schedule-table tbody td {
	border-bottom: 1px solid #f0f0f1;
	padding: 14px 16px;
	vertical-align: middle;
}

.woch-schedule-table tbody tr:last-child td {
	border-bottom: none;
}

.woch-schedule-table tbody tr:hover td {
	background: #f9f9f9;
}

.woch-day-name {
	color: #1d2327;
	font-size: 14px;
	font-weight: 600;
}

.woch-col-day {
	width: 120px;
}

.woch-col-status {
	min-width: 200px;
	width: 28%;
}

.woch-col-time {
	width: 140px;
}

.woch-col-error {
	min-width: 160px;
}

/* Form fields */
.woch-field,
#ajx_opncloseform .woch-field {
	box-sizing: border-box;
	max-width: 100%;
	width: 100%;
}

.woch-field select,
.woch-field input[type="text"],
.woch-field input[type="url"],
#ajx_opncloseform select.woch-field {
	background: #fff;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	box-shadow: 0 0 0 transparent;
	color: #1d2327;
	font-size: 14px;
	line-height: 1.4;
	margin: 0;
	min-height: 36px;
	padding: 6px 10px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.woch-field:focus,
#ajx_opncloseform select.woch-field:focus,
#ajx_opncloseform input.woch-field:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
	outline: 2px solid transparent;
}

.woch-field-time {
	max-width: 120px;
	text-align: center;
}

.woch-field-wide {
	max-width: 520px;
}

.woch-field-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 6px;
}

.woch-col-time.not-allowed-wrapper .woch-field-time {
	background: #f6f7f7;
	border-color: #dcdcde;
	color: #a7aaad;
	cursor: not-allowed;
	opacity: 0.85;
}

/* Redirection */
.woch-redirection-panel {
	padding: 20px;
}

.woch-segmented-control,
ul#redirection_options.woch-segmented-control {
	display: inline-flex;
	gap: 0;
	list-style: none;
	margin: 0 0 20px;
	padding: 4px;
	background: #f0f0f1;
	border-radius: 4px;
	border: 1px solid #dcdcde;
}

.woch-segmented-control li,
ul#redirection_options li {
	background: transparent;
	border: none;
	border-radius: 3px;
	color: #50575e;
	cursor: pointer;
	font-size: 13px;
	font-weight: 500;
	margin: 0;
	padding: 8px 18px;
	transition: background 0.15s ease, color 0.15s ease;
}

.woch-segmented-control li:hover,
ul#redirection_options li:hover {
	color: #1d2327;
}

.woch-segmented-control li.active,
ul#redirection_options li.active {
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
	color: #2271b1;
}

.woch-redirection-field,
form#ajx_opncloseform .redirect_option_Section {
	display: none;
	margin-bottom: 8px;
}

.woch-redirection-field.active_section,
form#ajx_opncloseform .redirect_option_Section.active_section {
	display: block;
}

.woch-redirection-messages {
	margin-top: 8px;
}

/* Timezone */
.woch-inline-title {
	font-size: 1em;
	margin: 0 0 8px;
}

.woch-timezone-panel p {
	margin: 0 0 8px;
}

.woch-timezone-panel .current_timezone {
	color: #50575e;
	font-size: 13px;
	margin: 0;
}

.woch-timezone-sep {
	color: #c3c4c7;
	margin: 0 6px;
}

/* Footer / save */
.woch-form-footer {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 8px;
	padding: 8px 0 24px;
}

.woch-form-footer .button-hero {
	min-height: 40px;
	padding-left: 24px;
	padding-right: 24px;
}

.woch-save-notice {
	font-size: 14px;
	font-weight: 500;
}

.woch-save-notice.is-success {
	color: #00a32a;
}

/* Errors */
.website_error_message.error {
	background: #fcf0f1;
	border: 1px solid #d63638;
	border-left-width: 4px;
	border-radius: 4px;
	color: #8a2424;
	display: none;
	font-size: 14px;
	margin-bottom: 16px;
	padding: 12px 16px;
}

#ajx_opncloseform .error_message {
	color: #d63638;
	display: block;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
	min-height: 18px;
}

#ajx_opncloseform .error_message.active {
	background: #fcf0f1;
	border-radius: 3px;
	padding: 4px 8px;
}

.woch-inline-error {
	color: #d63638;
	display: block;
	font-size: 13px;
	margin-top: 4px;
}

/* Legacy selectors (backward compatibility) */
.btn-open-close {
	display: none;
}

#RefererValue {
	width: 100%;
}

#updated h2 {
	display: none;
}

/* Responsive */
@media screen and (max-width: 782px) {
	.woch-schedule-table thead {
		display: none;
	}

	.woch-schedule-table tbody tr.woch-schedule-row {
		display: block;
		border-bottom: 1px solid #dcdcde;
		padding: 12px 16px;
	}

	.woch-schedule-table tbody td {
		border: none;
		display: block;
		padding: 6px 0;
		width: 100% !important;
	}

	.woch-schedule-table tbody td::before {
		color: #646970;
		content: attr(data-label);
		display: block;
		font-size: 11px;
		font-weight: 600;
		margin-bottom: 4px;
		text-transform: uppercase;
	}

	.woch-field-time {
		max-width: none;
	}

	.woch-segmented-control,
	ul#redirection_options {
		display: flex;
		flex-direction: column;
		width: 100%;
	}

	.woch-segmented-control li,
	ul#redirection_options li {
		text-align: center;
	}
}
