
/************************************************************************* FedEx Registration Page ******************************************************************************/
.ph_fedex_registration .notice {
	display: none;
}

.ph_fedex_registration .ph_fedex_logo_header {
	display: block;
	text-align: center;
}

.ph_fedex_registration .ph_fedex_logo_header .ph_logo {
	width: 250px;
	height: 50px;
}

.ph_fedex_registration .ph_fedex_registration_consent, .ph_fedex_account_migration {
	
	background: white;
	text-align: center;
	padding: 15px 20px;
	width: 80%;
	margin: auto;
}

.ph_fedex_registration_consent .ph_fedex_registration_consent_data {

	border: 1px solid black !important;
	padding: 15px !important;
	text-align: left;
}

.ph_fedex_registration_consent_data span::before {

	content: ' \27A5';
	font-size: x-large;
	vertical-align: sub;
	float: left;
	margin-right: 5px !important;
}

.ph_fedex_registration_consent .ph_fedex_registration_agreement_check {

	display: block;
	text-align: left;
}

.ph_fedex_registration_agreement_check #ph_fedex_registration_agreement {

	vertical-align: sub;
}

#ph_fedex_registration_consent_form,
#ph_fedex_account_migration_form {
	padding: 10px 18px;
	cursor: pointer;
	color: #ffffff;
	background-color: #009cbf;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 500;
	transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

#ph_fedex_registration_consent_form:hover,
#ph_fedex_account_migration_form:hover {
	background-color: #007e9f;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/********************************************************************* Successful FedEx Connection ***********************************************************************/
/* Wrapper */
.ph_fedex_connection_success_wrapper {
	font-family: 'Segoe UI', sans-serif;
	padding: 20px;
	background-color: #f3f3f3;
}

/* Checkmark */
.ph_fedex_checkmark::before {
	content: ' \2714';
	font-size: x-large;
	vertical-align: sub;
	color: #28a745;
	margin-right: 3px;
}

/* X mark */
.ph_fedex_xmark::before {
	content: ' \00D7'; /* Unicode for × */
	font-size: x-large;
	vertical-align: sub;
	margin-right: 6px;
	color: #c62828;
	font-weight: 1000;
}

/* Bullet point */
.ph_fedex_bullet_list {
    list-style-type: disc;
    padding-left: 20px;
}

/* Success Box - modern green styling */
.ph_fedex_connection_success_box {
    background-color: #E6F7E6;
    border: 1px solid #A8D5A8;
	border-radius: 14px;
	padding: 20px;
	max-width: 700px;
	margin: 0 auto 40px;
	text-align: center;
	line-height: 1.4;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

/* Optional top green accent bar */
.ph_fedex_connection_success_box::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 6px;
	background-color: #2e7d32;
	opacity: 0.5;
	border-top-left-radius: 14px;
	border-top-right-radius: 14px;
}

/* Headline inside box */
.ph_fedex_connection_success_box h3 {
	color: #2e7d32;
	margin-bottom: 20px;
	font-weight: 600;
	font-size: 18px;
}

.ph_fedex_connection_success_box p,
.ph_fedex_connection_success_box h1,
.ph_fedex_connection_success_box h2,
.ph_fedex_connection_success_box h3 {
	margin-top: 0.3em;
	margin-bottom: 0.3em;
}

/* Divider */
.ph_fedex_connection_divider {
	width: 1px;
	background-color: #ccc;
	align-self: stretch;
}

/* Connection Details */
.ph_fedex_connection_details {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 40px;
	margin: 20px auto;
	text-align: left;
	width: 70%;
}

.ph_fedex_connection_labels,
.ph_fedex_connection_values {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-weight: 600;
}

/* Types of connection - base style without gradient */
.ph_fedex_connection_types {
    background-color: #E3F2FD;
    border: 1px solid #90CAF9;
	border-radius: 14px;
	padding: 25px 30px 30px;
	max-width: 1000px;
	margin: 0 auto 40px;
	text-align: center;
	transition: all 0.3s ease-in-out;
	position: relative;
	overflow: hidden;
}

/* Optional top highlight bar */
.ph_fedex_connection_types::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 6px;
	background-color: #2d8cff;
	opacity: 0.5;
	border-top-left-radius: 14px;
	border-top-right-radius: 14px;
}

/* FedEx Compatible Logo */
.ph_fedex_compatible_logo img {
	width: 160px;
	margin: 10px auto;
	display: block;
}

/* Columns */
.ph_fedex_connection_type_wrapper {
	display: flex;
	justify-content: center; /* Ensures centering */
	gap: 40px; /* Provides consistent spacing */
	flex-wrap: wrap;
}

/* Individual connection card */
.ph_fedex_connection_type_column {
	flex: 1;
	min-width: 300px;
	text-align: left;
	background: #ffffff10;
	margin: 0;
	padding: 30px 40px;
	border: 1px solid #ccc;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
}

/* Active connection highlight */
.ph_fedex_active_connection {
	border: 1px solid #2d8cff;
	box-shadow: 0 6px 20px rgba(45, 140, 255, 0.3);
}

/* Card heading */
.ph_fedex_connection_type_column h4 {
	font-size: 18px;
	margin: 10px;
	margin-bottom: 20px;
	padding-bottom: 10px;
	font-weight: 600;
	text-align: center;
}

/* Feature lists */
.ph_fedex_connection_type_column ul {
	margin: 0 0 20px;
	padding-left: 20px;
}

.ph_fedex_connection_type_column li {
	margin-bottom: 8px;
}

/* Features container */
.ph_fedex_connection_type_features {
	min-height: 70px;
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.ph_fedex_feature_column {
	flex: 1;
	min-width: 150px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

.ph_fedex_feature_column ul {
	padding-left: 20px;
	margin: 0;
}

.ph_fedex_feature_column li {
	margin-bottom: 8px;
}

/* Form/button container */
.ph_fedex_connection_type_column form {
	margin-top: auto;
	margin-bottom: 10px;
}

/* Connection button */
.ph_connection_type_button {
    background-color: #2d2c70;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 80px;
    cursor: pointer;
    font-size: 14px;
    margin: 20px auto 0;
    display: block;
    transition: background-color 0.3s ease;
}

.ph_connection_type_button:hover {
	background-color: #4c4ba0;
}

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

  .ph_fedex_connection_types {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 20px 10px 30px !important;
    box-sizing: border-box;
  }

  /* Stack & stretch cards vertically */
  .ph_fedex_connection_type_wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    padding: 0;
    align-items: stretch;
  }

  /* Full-width card styling */
  .ph_fedex_connection_type_column {
    width: 100%;
    margin: 0;
    padding: 15px;
    box-sizing: border-box;
  }

  /* Full-width buttons */
  .ph_connection_type_button {
    width: 100%;
    padding: 12px 0;
  }
}

/* Responsive tweaks */
@media (max-width: 850px) {
	.ph_fedex_connection_type_column br {
		display: none;
	}
	
	.ph_fedex_connection_details {
		width: 90%;
	}
}

@media (max-width: 1310px) {
	.ph_connection_type_button {
		padding: 10px 75px;
	}
}

/* Beta ribbon container */
.ph_fedex_rest_block {
    position: relative;
    overflow: hidden;
}

/* Beta ribbon pseudo-element */
.ph_fedex_rest_block::after {
    content: 'BETA Version';
    position: absolute;
    top: 82px;
    left: -23px;
    width: 150px;
    background: #ffc107;
    color: #000;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    padding: 4px 0;
    transform: rotate(-45deg);
    transform-origin: top left;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 1;
    text-transform: uppercase;
}

/************************************************************************* FedEx Registration Dialog Box ******************************************************************************/
/* Modal Container: matches REST/SOAP connection box background and border */
.ph-fedex-modal.ui-dialog {
  background: #e3f2fd;
  border-radius: 14px;
  border: 1px solid #90CAF9;
  box-shadow: 0 6px 24px rgba(45,140,255,0.10);
  font-family: 'Segoe UI', sans-serif;
  font-size: 16px;
  padding: 0;
}

/* Modal Title Bar: accent blue (matches box top accent bar) */
.ph-fedex-modal .ui-dialog-titlebar {
  background: #2d8cff;
  color: #fff;
  font-weight: 600;
  padding: 16px 28px;
  border-radius: 14px 14px 0 0;
  border: none;
  font-size: 18px;
  letter-spacing: 0.2px;
  position: relative;
  min-height: 38px;
  display: flex;
  align-items: center;
}

.ph-fedex-modal .ui-dialog-titlebar-close {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  border-radius: 4px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  
  /* Hide the literal "Close" text by pushing it off screen */
  text-indent: -9999px;
  overflow: hidden;
  white-space: nowrap;
  color: transparent !important;

  /* Optionally to reset font size/color for fallback */
  font-size: 0;
  transition: background 0.2s, color 0.2s;
}

.ph-fedex-modal .ui-dialog-titlebar-close::before {
  content: "×";
  text-indent: 0;
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  width: 100%;
  text-align: center;
  line-height: 1;
  display: block;
  position: absolute; /* optional if you want centered overlay */
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.ph-fedex-modal .ui-dialog-titlebar-close:hover {
  background: #1996ff;
  color: #fff !important;
}

/* Show the close button’s icon span if you want */
.ph-fedex-modal .ui-dialog-titlebar-close .ui-icon {
  display: none !important; /* hide original sprite/icon as you replaced with × */
}

/* Modal Content */
.ph-fedex-modal .ui-dialog-content {
  padding: 32px 34px 18px 34px;
  line-height: 1.7;
  background: #e3f2fd !important;
}

/* Message Area */
.ph-fedex-modal .ph-fedex-modal-message {
  margin-bottom: 26px;
}

/* Input Wrapper */
.ph-fedex-modal .ph-fedex-input-wrap {
  margin: 18px 0;
}

/* Input Field */
.ph-fedex-modal .ph-fedex-input {
  width: 100%;
  padding: 14px 14px;
  font-size: 16px;
  border: 1.5px solid #90CAF9;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.ph-fedex-modal .ph-fedex-input:focus {
  border-color: #2d8cff;
  background: #f6faff;
  box-shadow: 0 0 0 2px #bbe3ff;
  outline: none;
}

/* Button Container (Footer): slightly deeper blue for contrast */
.ph-fedex-modal .ui-dialog-buttonpane {
  padding: 15px 30px;
  background: #d2e7fa;
  border-top: 1px solid #90CAF9;
  border-radius: 0 0 14px 14px;
  text-align: right;
}

/* Buttons: match connection button style */
.ph-fedex-modal .ui-dialog-buttonpane button {
  min-width: 130px;
  height: 44px;
  padding: 0 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px !important;
  border: none !important;
  cursor: pointer;
  margin-left: 16px;
  background: #2d2c70 !important;
  color: #fff !important;
  background-image: none !important;
  box-shadow: none !important;
  line-height: 1.5;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  transition: background 0.2s, color 0.2s;
}
.ph-fedex-modal .ui-dialog-buttonpane button:first-child:hover {
  background: #4c4ba0 !important;
}

/* Cancel Button: soft classic gray */
.ph-fedex-modal .ui-dialog-buttonpane button:last-child {
  background: #ededed !important;
  color: #2d2c70 !important;
  border: 1px solid #ccc !important;
}
.ph-fedex-modal .ui-dialog-buttonpane button:last-child:hover {
  background: #dbdbdb !important;
  color: #2d2c70 !important;
}

/* Keyboard accessibility for focus state */
.ph-fedex-modal .ui-dialog-buttonpane button:focus {
  outline: 2px solid #2d8cff;
  outline-offset: 1px;
}