.btn-default:focus,
.btn-default:active,
.btn-default:hover {
	outline: none;
}

#r-subscription-settings {
    margin: auto;
    width: 50%;
    min-width: 700px;
}

.r-plan-type-label, .r-subscription-type-label, .r-expiration-date-label, .r-card-details-label, .r-last-charge-label {
	font-weight: bold;
}

.r-settings-header, .nav-tabs,
.r-edit-subscription, .r-cancel-subscription,
.r-cancel-change, .r-change-subscription, .r-change-plan-wrapper,
.r-next-billing-wrapper {
    margin: 1em;
}

.r-next-billing-wrapper {
    margin-left: 0;
}

.r-settings-icon {
	position: absolute;
    right: 0.5em;
    bottom: 0.25em;
    font-size: 2em;
    color: #fff;
    cursor: pointer;
}

.r-settings-overlay, 
.r-settings-overlay .container, 
.r-settings-overlay .container .row, 
.r-settings-overlay .container .row .r-settings-wrapper {
    width: 100%;
    height: 0;
    z-index: 100;
    background-color: #FFF;
    -webkit-transition: all .5s;
	transition: all .5s;
}

.r-settings-overlay .container .row .r-settings-wrapper form {
	display: none;
}

.r-settings-overlay.open, 
.r-settings-overlay.open .container, 
.r-settings-overlay.open .container .row, 
.r-settings-overlay.open .container .row .r-settings-wrapper {
	height: calc(100vh - 45px);
}

.r-settings-overlay.open .container .row .r-settings-wrapper form {
	display: flex;
}

.r-settings-overlay.open {
	overflow: hidden;
    overflow-y: scroll;
}

.r-settings-overlay .container .row {
	margin: 0;
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: start;
	-webkit-align-items: flex-start;
	-ms-flex-align: start;
	align-items: flex-start;
	-webkit-box-pack: center;
	-webkit-justify-content: center;
	-ms-flex-pack: center;
	justify-content: center;
}

.r-settings-overlay .container .row .r-settings-wrapper {
	width: 50%;
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: center;
	-webkit-justify-content: center;
	-ms-flex-pack: center;
	justify-content: center;
}

.r-settings-overlay .container .row .r-settings-wrapper form {
	-webkit-box-align: center;
	-webkit-align-items: center;
	-ms-flex-align: center;
	-ms-grid-row-align: center;
	align-items: center;
	-webkit-box-pack: start;
	-webkit-justify-content: flex-start;
	-ms-flex-pack: start;
	justify-content: flex-start;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-webkit-flex-direction: column;
	-ms-flex-direction: column;
	flex-direction: column;
	width: 100%;
	padding: 1em;
}

.r-settings-overlay .container .row .r-settings-wrapper form .form-group {
	width: 80%;
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: horizontal;
	-webkit-box-direction: normal;
	-webkit-flex-direction: row;
	-ms-flex-direction: row;
	flex-direction: row;
	-webkit-box-pack: start;
	-webkit-justify-content: start;
	-ms-flex-pack: justify;
	justify-content: flex-start;
	-webkit-box-align: center;
	-webkit-align-items: center;
	-ms-flex-align: center;
	align-items: center;
	margin: 5px 0;
    height: auto;
}

.r-settings-overlay .container .row .r-settings-wrapper form .form-group:last-child {
	-webkit-box-pack: end;
	-webkit-justify-content: flex-end;
	-ms-flex-pack: end;
	justify-content: flex-end;
}

.r-settings-overlay .container .row .r-settings-wrapper form .form-group:last-child button {
	margin-left: 1em;
}

.r-settings-overlay .container .row .r-settings-wrapper form .form-group input {
	width: 75%;
}

.r-settings-overlay .container .row .r-settings-wrapper form .form-group img {
	height: 10vh !important;
    margin-right: 1em;
    object-fit: contain;
}

.r-settings-overlay .container .row .r-settings-wrapper form .form-group img + input {
	width: 40%;
}

@media only screen and (max-width: 767px) and (orientation: portrait) {
	.r-settings-overlay.open .container {
		padding: 0;
	}

	.r-settings-overlay .container .row .r-settings-wrapper {
		width: 100%;
	}
}

.r-subscription-panel {
    margin-bottom: 20px;
    background-color: #fff;
    border: 1px solid #DDD;
    border-radius: 4px;
    -webkit-box-shadow: 0 1px 1px rgba(0,0,0,.05);
    box-shadow: 0 1px 1px rgba(0,0,0,.05);
    width: 100%;
    min-width: 700px;
}

.r-subscription-panel-heading {
    color: #333;
    background-color: #f5f5f5;
    border-color: #ddd;
    padding: 10px 15px;
    border-bottom: 1px solid transparent;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

.r-subscription-panel-title {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 16px;
    color: inherit;
}

.r-subscription-panel-body {
    padding: 15px;
}

.r-settings-wrapper button, .r-subscription-panel button {
	color: #333;
    background-color: #fff;
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.r-settings-wrapper button:hover, .r-subscription-panel button:hover {
	outline: none;
	color: #333;
    background-color: #e6e6e6;
    border-color: #adadad;
}

.r-settings-wrapper label {
    color: #333;
    width: 25%;
}